Dear All,
I am writing a small packet sniffing application to perform some operations. The following call
SOCKET_ID = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
works fine on my Linux kernel 2.6.20 but it returns a negative value on Linux kernel 2.4.26.
I am running my application with root privileges.
Is PF_PACKET & SOCK_RAW available to kernel 2.6 or other kernel versions as well
Any ideas?


Reply With Quote
