pcap https://blog.csdn.net/htttw/article/details/7521053 https://www.cnblogs.com/coder2012/archive/2013/04/13/3012390.html raw socket https://www.opensourceforu.com/2015/03/a-guide-to-using-raw-sockets/ http://www.microhowto.info/howto/capture_ethernet_frames_using_an_af_packet_socket_in_c.html