Nmap Development mailing list archives

Re: CIDR range capabilities for ipOps (NSE Leftovers - Part 3)


From: David Fifield <david () bamsoftware com>
Date: Thu, 6 Sep 2012 13:31:18 -0700

On Tue, Aug 21, 2012 at 05:57:44PM -0400, Brendan Byrd wrote:
(This is a split of a larger patch here:
http://seclists.org/nmap-dev/2011/q4/558)

Lots of new functions to ipOps to beef up its CIDR range capabilities.  Maybe
some day, it can be converted to pure C code, but this should work for now.

Thanks for splitting up this patch.

I still find it hard to see what is going on here. This is partly
because it seems to contain a whole lot of unrealted stylistic changes,
for example
-  elseif ip:sub(1,3) == '10.' then
+  elseif sub(ip,1,3) == '10.' then
Maybe you made the patch against an old version of the library or
something? At any rate, please remove all those changes if you want the
patch to be considered.

What is a specific use case for this CIDR range capability? How do you
see it being used in a script? Is it necessary for the SNMP changes you
earlier proposed?

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: