Nmap Development mailing list archives
Re: [Nsock] Scalable event handling
From: Henri Doreau <henri.doreau () gmail com>
Date: Fri, 26 Jul 2013 09:30:08 +0200
2013/7/25 Henri Doreau <henri.doreau () gmail com>:
That's it nodeq is for everything but pcap and nodeq2 is for pcap only. The thing is that nsock has this strange "BSD hack mode" where pcap events are added to both "read" and "pcap_read" event lists. This requires a second gh_lnode_t handle. Having it always (not only in BSD_HACK_MODE) used for "pcap_read" events makes the code lighter.
The actual name is PCAP_BSD_SELECT_HACK. The patch attached (to be applied on top of the initial one) defines nodeq and nodeq2 in a struct if PCAP_BSD_SELECT_HACK is set and in a union otherwise. Let me know what you think. Regards -- Henri
Attachment:
0001-Nsock-memory-optimization.patch
Description:
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: [Nsock] Scalable event handling Henri Doreau (Jul 24)
- <Possible follow-ups>
- Re: [Nsock] Scalable event handling David Fifield (Jul 25)
- Re: [Nsock] Scalable event handling Henri Doreau (Jul 25)
- Re: [Nsock] Scalable event handling Henri Doreau (Jul 26)
- Re: [Nsock] Scalable event handling David Fifield (Aug 06)
- Re: [Nsock] Scalable event handling Henri Doreau (Aug 10)
- Re: [Nsock] Scalable event handling David Fifield (Aug 10)
- Re: [Nsock] Scalable event handling Henri Doreau (Aug 11)
- Re: [Nsock] Scalable event handling Henri Doreau (Jul 25)
- Re: [Nsock] Scalable event handling David Fifield (Aug 06)
- Re: [Nsock] Scalable event handling Henri Doreau (Aug 07)
- Re: [Nsock] Scalable event handling Henri Doreau (Aug 10)