search for: packet_add_membership

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

2006 Aug 02
0
no PROMISC mode ..
...ly 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 only bee seen by the same call family. I''ve checked pcap, and seems to do the right thing by setting it : ---- set...