mausezahn: Allow IPv6 ranges to be specified for source and dest addresses
commit196fc0351c1e5b39697091c845c73d04510e070e
authorTommy Beadle <tbeadle@gmail.com>
Mon, 29 Feb 2016 14:29:48 +0000 (29 09:29 -0500)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 29 Mar 2016 08:08:38 +0000 (29 10:08 +0200)
treed4fe5100574e7ac58733b103fcdcf579bd926f40
parent070337f8cb27c1c4d77217879a3e1a1f193cef8f
mausezahn: Allow IPv6 ranges to be specified for source and dest addresses

This allows a user to pass a range of IPv6 addresses, either like:
fec0:5000::1-fec0:5000::100
or in CIDR notation:
fec0:5000::0/112
These can be used for the -A and/or -B command-line options.
The largest range that can be used is a /64.  In other words, if using CIDR
notation, the masklen must be <= 128 and >= 64.

Signed-off-by: Tommy Beadle <tbeadle@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
staging/mausezahn.c
staging/modifications.c
staging/mz.h
staging/send.c
staging/tools.c