error: argument ‘size’ doesn’t match prototype

https://github.com/hailinzeng/Unix-Network-Programming/issues/2

size_t size-> socklen_t size

fatal error: net/if_dl.h: No such file or directory

https://github.com/ryuever/unix-network-programming-v3/issues/1
https://stackoverflow.com/questions/1520649/what-package-do-i-need-to-install-for-using-routing-sockets

  1. yum provides if_dl.h
  1. sudo apt-get install apt-file
  2. sudo apt-file update
  3. apt-file search if_dl.h

centos中没有找到if_dl.h