search for: mr_ifindex

Displaying 1 result from an estimated 1 matches for "mr_ifindex".

Did you mean: imr_ifindex
2006 Aug 02
0
no PROMISC mode ..
...more this mode, it will just request to be removed to that membership, decreasing the counter. The code nowadays is fairly close to this : ----- struct packet_mreq mr; [.....] memset(&mr,0,sizeof(mr)); mr.mr_ifindex = ifr.ifr_ifindex; mr.mr_type = PACKET_MR_PROMISC; setsockopt(sock, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr, sizeof(mr)); ----- That would explain why I can''t see it with ip or older ifconfig, any call set by ioctl(SIOCGIFFLAGS) can...