[Bro-Dev] IP address class

Robin Sommer robin at icir.org
Sun Jan 22 21:42:32 PST 2012

I've drafted an interface for a new class that wraps both IPv4 and
IPv6 addresses (plus another one for IP prefixes). It's committed to
src/IPAddr.h in branch topic/v6-addr.

This is completely untested and doesn't have an implementation yet (no
compiler has even looked at the code yet :-). For now, it's really
just to nail down the interface.

I looked at quite a bit of the "ifdef BROv6" and I believe this should
generally work as a replacement (with a bit more tweaking here and
there I'm sure).

Jon, do you think this is something you could use as starting point to
begin removing the configure switch and replace current IP address
code with uses of this wrapper?


Robin Sommer * Phone +1 (510) 722-6541 * robin at icir.org
ICSI/LBNL    * Fax   +1 (510) 666-2956 *   www.icir.org

More information about the bro-dev mailing list