Hello, All! I need to add port and protocol accounting to ACC module. http://lists.netfilter.org/pipermail/netfilter-devel/2001-March/000719.html Original patch: http://zzz.corg.ru/u/Members/dmitry/iptables-1.2-acc.patch/view I added some code, but I get broken port nubers on incoming traffic. I'm new in netfilter/iptables programming and can't find a mistake. Help me please, what do I need to correct to make it work? Sources are attached to this letter. ipacc output: # 1069835594 1069835643 0 1 ## Wed Nov 26 11:33:14 2003 ## Wed Nov 26 11:34:03 2003 192.168.10.202 1920 216.180.243.82 20480 6 3 1 1177 216.180.243.82 69 192.168.10.202 15360 6 1 2 180 216.180.243.82 69 192.168.10.202 13312 6 1 2 624 216.180.243.82 69 192.168.10.202 23557 6 1 2 36000 216.180.243.82 69 192.168.10.202 2563 6 1 2 906 192.168.10.202 2176 216.180.243.82 20480 6 3 1 3718 216.180.243.82 69 192.168.10.202 18693 6 1 2 1481 216.180.243.82 69 192.168.10.202 18176 6 1 2 199 192.168.10.202 2432 216.180.243.82 20480 6 3 1 2218 216.180.243.82 69 192.168.10.202 24836 6 1 2 1249 216.180.243.82 69 192.168.10.202 15876 6 1 2 1086 216.180.243.82 69 192.168.10.202 24580 6 1 2 1248 216.180.243.82 69 192.168.10.202 31490 6 1 2 635 216.180.243.82 69 192.168.10.202 6402 6 1 2 537 216.180.243.82 69 192.168.10.202 5889 6 1 2 279 216.180.243.82 69 192.168.10.202 1537 6 1 2 262 216.180.243.82 69 192.168.10.202 13316 6 1 2 1076 216.180.243.82 69 192.168.10.202 25604 6 1 2 2504 216.180.243.82 69 192.168.10.202 22273 6 1 2 471 192.168.10.202 2688 207.171.179.30 20480 6 3 1 814 207.171.179.30 69 192.168.10.202 15360 6 1 2 60 207.171.179.30 69 192.168.10.202 13312 6 1 2 52 207.171.179.30 69 192.168.10.202 23557 6 1 2 1500 207.171.179.30 69 192.168.10.202 1027 6 1 2 900 192.168.10.202 2944 207.171.183.19 20480 6 3 1 886 192.168.10.202 3200 207.171.183.19 20480 6 3 1 784 207.171.183.19 69 192.168.10.202 15360 6 1 2 120 207.171.183.19 69 192.168.10.202 13312 6 1 2 104 207.171.183.19 69 192.168.10.202 23557 6 1 2 4500 207.171.183.19 69 192.168.10.202 30468 6 1 2 1271 207.171.183.19 69 192.168.10.202 15105 6 1 2 315 207.171.183.19 69 192.168.10.202 24324 6 1 2 1119 -- Stanislav Bogatyrev Kenjitsu mailto: s.bogatyrev@kenjitsu.net