Dans un message du 23 Feb �  4:11, Phil Dibowitz �crivait :
> I've written software to help you see what states are on your firewall. 
> Based on the idea of IP Filter's "statetop" feature, IP Tables State 
> displays states in your firewall in a top-like format, in real-time.
> The software is posted here:
> 
> http://home.earthlink.net/~jaymzh666/iptstate/

I've already contacted the author but forgot to send a copy to the list.
iptstate has a little bug which makes it unsuable on big endian archs.

Here is the (trivial) patch which fixes the bug

--- iptstate.cc.old     Sun Feb 24 17:55:57 2002
+++ iptstate.cc Sun Feb 24 17:56:20 2002
@@ -80,9 +80,9 @@
 // Variables
 string line, src, dst, srcpt, dstpt, proto, code, type, state, 
        ttl, mins, secs, hrs, sorting, crap;
-char min[5], sec[5], hr[5], c;
+char min[5], sec[5], hr[5];
 vector<table> stable(50);
-int seconds=0, minutes=0, hours=0, num, maxx, maxy, temp, sortby=0, rate;
+int seconds=0, minutes=0, hours=0, num, maxx, maxy, temp, sortby=0, rate, c;
 vector<string> fields(50);
 fd_set readfd;
 bool are_hours = false, single = false, gotsort=false, reverse=false;;

-- 
Guillaume Morin <[EMAIL PROTECTED]>

      A part of me left that only you knew will never be understood (RHCP)

Reply via email to