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:	Tue, 17 Jan 2012 13:33:01 -0000
From:	"David Laight" <David.Laight@...LAB.COM>
To:	<abirvalg@...abit.com>, <netdev@...r.kernel.org>
Subject: RE: /proc/net/tcp6 inconsistent line length

 
> My application parses /proc/net/tcp6 at least 4 times per 
> second, so the overhead of figuring out the length of each 
> line and subtracting the offset is quite expensive.

I'd be surprised if you can detect the cost of calling
strchr(buf, '\n') on each line at the frequency.

It is probably far less than the other processing you
do on the line.

	David


--
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