|
Re: [NSE] Raw sockets support: msg#00069security.nmap.devel
On Fri, Dec 15, 2006 at 09:45:14PM +0100, majek04 wrote: > > Integrating some pcap/dnet features into nsock makes sense only if pcap > descriptors > could be used in the same 'select()' as nsock descriptors. > > If I'm not wrong we're left with only two options > - running pcap_next in other thread than nsock_loop or > - running pcap_next after nsock_loop with very short timeouts. > The problem here is that pcap timeouts are broken. The alternative > would be to set pcap descriptor in nonblocking mode. But I don't > know if it's portable. Nmap tends to avoid threads (doesn't use them for anything else). So I'd use #2 (on those platforms which aren't select()able), and select on those that are (like the Nmap readip_pcap code does). Cheers, -F _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [PATCH] Dramatically reduce # of fopen()s and fclose()s in nbase_rnd.c: 00069, Fyodor |
|---|---|
| Next by Date: | Re: vnsprintf returned -1 in log_vwrite -- bizarre. Quitting.: 00069, Fyodor |
| Previous by Thread: | Re: [NSE] Raw sockets supporti: 00069, majek04 |
| Next by Thread: | [PATCH] Make TCPIP_DEBUGGING tested by preprocessor: 00069, Kris Katterjohn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |