#include #include #include #include #include #include #include #include #include #include #include #include #include #include /* for the glibc version number */ #include #include /* the L2 protocols */int set_promisc_dev(int sSocket, char *dev, int flag) { int res; struct ifreq ifr; strncpy(ifr.ifr_name, dev, 16); if(ioctl(sSocket, SIOCGIFFLAGS, &ifr) < 0) return -2; if(!flag) ifr.ifr_flags |= I..