Home page logo
/

nmap-dev logo 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/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]