Nmap Development mailing list archives
Re: Port scanning behind proxies: my experiments with making ultra_scan work with nsock
From: David Fifield <david () bamsoftware com>
Date: Wed, 1 Jul 2015 08:54:37 -0700
I looked over the patch and it looks like a nice reasonable approach. I didn't try it in depth. On Tue, Jun 30, 2015 at 08:07:28PM +0200, Jacek Wielemborek wrote:
+/* Sets connection lingering options to apply before connect(). It makes a copy + * of the options, so you can free() yours if necessary. This copy is freed + * when the iod is destroyed */ +int nsock_iod_set_linger(nsock_iod nsi, struct linger* lingeropts); + ... + /* structure used to trigger connection lingering */ + struct linger *lingeropts;
It looks like struct linger is just two ints. Maybe you could just statically allocate it and not need to allocate and free memory dynamically. _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: Port scanning behind proxies: my experiments with making ultra_scan work with nsock David Fifield (Jul 01)
- Re: Port scanning behind proxies: my experiments with making ultra_scan work with nsock Jacek Wielemborek (Jul 01)
- Re: Port scanning behind proxies: my experiments with making ultra_scan work with nsock David Fifield (Jul 01)
- Re: Port scanning behind proxies: my experiments with making ultra_scan work with nsock Jacek Wielemborek (Jul 01)
- Re: Port scanning behind proxies: my experiments with making ultra_scan work with nsock David Fifield (Jul 01)
- Re: Port scanning behind proxies: my experiments with making ultra_scan work with nsock Jacek Wielemborek (Jul 01)
- Re: Port scanning behind proxies: my experiments with making ultra_scan work with nsock David Fifield (Jul 01)
- Re: Port scanning behind proxies: my experiments with making ultra_scan work with nsock Jacek Wielemborek (Jul 01)