lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 16 Dec 2010 11:18:52 -0800
From:	Joe Perches <joe@...ches.com>
To:	Kristian Larsson <kristian@...itelink.net>
Cc:	"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: pktgen IP address stepping

On Thu, 2010-12-16 at 19:30 +0100, Kristian Larsson wrote:
> > I suggest using actual ipv4 addresses (and ipv6 if you ever
> > need it) as increment/mask.
> Not sure I follow you, should the stepping be specified as
> 0.0.0.213 if I would like to increase with 213 or 0.0.255.255 if
> I want to increase by a /16 at a time?

More like:

Initial IPv4 address:	0.0.0.1
Step:			0.1.0.0
Mask:			127.0.0.1

addr = (addr + step) & mask;

Cycles through all /16's below 128



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ