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
Post a Comment