I see when I create the socket:
socket(PF_PACKET,SOCK_RAW,htons(ETH_P_ALL));
and I set the netcard to PROMISC,I can receive
all packet including ether,but I want to
receive packet IP,including ICMP,UDP,TCP,not ether,
how to create the socket?and how to set it up?



LinkBack URL
About LinkBacks



