Re: [Fwd: Re: Shortcuts to counting rules?]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jesper Dangaard Brouer wrote:
On Sat, 1 Nov 2008, Jan Engelhardt wrote:

On Friday 2008-10-31 19:54, Rick Jones wrote:


iptables-save | grep ^- | wc -l


Here is where I cop to being a luddite who prefers straight C to calling
system() :)


But there is no C library. And libiptc is so strongly internal that
it does not fall under libraries-to-use.


I don't see why not to use libiptc. Its been one of the most stable / less-changed through the years...

I wouldn't mind using libiptc, but it seems to be something the maintainers don't want mere mortals using. Also, and perhaps as a result, it isn't entirely clear that even installing an iptables-dev package (on which I'd rather not have netperf rely if I can avoid it) actually gives a libiptc everywhere.

That leaves deciphering at least some of what the existing libiptc code does and mimmicing it in netperf :(

rick jones


I'm using libiptc quite extensivly in IPTables::libiptc Perl CPAN module.

Hilsen
  Jesper Brouer

--
-------------------------------------------------------------------
MSc. Master of Computer Science
Dept. of Computer Science, University of Copenhagen
Author of http://www.adsl-optimizer.dk
-------------------------------------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux