c - What is the principle of pcap_setdirection? -


i want use libpcap capture incoming ethernet frame. here problem. use pf_packet , raw socket revise mac header. remove mac address header specific implementation. use pcap_setdirection capture incoming packets errors cannot understand. want know how libpcap distinguish incoming of outgoing packets? judge mac address or can directly receiving buffer on duplex mode. os linux, centos 5.5. nic set promiscuous mode.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -