how do i make my ethernet interface in promiscous mode so that i could capture all the packets by recv
thanx
Printable View
how do i make my ethernet interface in promiscous mode so that i could capture all the packets by recv
thanx
id = socket(PF_RAW, SOCK_RAW, RAWPROTO_SNOOP);
This is for IRIX 6.5 operating system. It should be the same or similair for you system. Check the socket man page.