Subject: Re: faster ipnat -l
To: Wojciech Puchar <email@example.com>
From: Martin Husemann <firstname.lastname@example.org>
Date: 02/14/2005 23:56:57
On Mon, Feb 14, 2005 at 10:58:59PM +0100, Wojciech Puchar wrote:
> can it be made faster - or is there better way to read NAT table? my ident
> program for NAT needs ipnat -l which takes 16 seconds with 20000 nat table
> on Pentium 133.
I guess you only need information for a single nat table entry at a time?
I think ioctl(SIOCGNATL, ..) is your friend.