The patch does not work. the glibc is 2.1.1-15mdk SOL_PACKET is defined in <bits/socket.h>
It silently fails on Linux Redhat 7.2 with kernel 2.4.7-10smp (glibc-2.2.4-13) too! > We may have to do the same for PACKET_MR_PROMISC, PACKET_MR_ALLMULTI, > and PACKET_ADD_MEMBERSHIP, but so it goes. the compiler doesn't give any warnings about undeclared variables... anyway, let's try it! it's strange, the setsockopt() fails to do the work without returning -1 Here is a piece of my code: static pcap_t *pcap_d = NULL; /* pcap descriptor */ static char interface[256]; /* interface to sniff */ int main( /* ... */ ) { /* ... */ strncpy(interface, argv[1], sizeof(interface)); /* ... */ /* open interface and set promiscuous mode */ pcap_d = pcap_open_live(interface, 2048, 1, 0, pcap_err); if (! pcap_d) { fprintf(stderr, "%s: %s\n", interface, pcap_err); exit(1); } /* ... */ } - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe