Skip Menu |

This queue is for tickets about the IPTables-IPv4 CPAN distribution.

Report information
The Basics
Id: 36561
Status: new
Priority: 0/
Queue: IPTables-IPv4

People
Owner: Nobody in particular
Requestors: boot [...] ngs.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: I find bug and fix (?) it in unpacker.c
Date: Fri, 30 May 2008 07:48:59 +0700
To: bug-IPTables-IPv4 [...] rt.cpan.org
From: Igor Krasnov <boot [...] ngs.ru>
Hello, bug-IPTables-IPv4 ! I have this problem: where i execute @rules=$table->list_rules($chain_name); foreach $rule (@rules){ a hash reference $rule containts "bcnt", but not containts "destination" or "source". I fix this problem very dumb: in unpacker.c i comment lines 129, 133, 136, 140. /* Ok, let's break this down point by point. First off, the source * address... */ // if(entry->nfcache & NFC_IPx_SRC) { sv = addr_and_mask_to_sv(ENTRY_ADDR(entry).src, ENTRY_ADDR(entry).smsk, ENTRY_ADDR(entry).invflags & INV_SRCIP); hv_store(hash, "source", 6, sv, 0); // } /* Now, the destination address */ // if(entry->nfcache & NFC_IPx_DST) { sv = addr_and_mask_to_sv(ENTRY_ADDR(entry).dst, ENTRY_ADDR(entry).dmsk, ENTRY_ADDR(entry).invflags & INV_DSTIP); hv_store(hash, "destination", 11, sv, 0); // } This problem found (and fixed) in distribs: ASPLinux 11.2 (kernel 2.6.17-1.2157.1asp, perl perl-5.8.6-24) Debian 4.0 (kernel 2.6.18-6-686, perl ???) Bye ! # Igor Krasnov # Internet Club sysadmin. # # Work phone: +7-383-291-8841 # Cell. phone: +7-905-952-6964 # ICQ: 780672 # E-Mail: boot@ngs.ru # WWW: http://www.boot.net.ru/ --- * Origin: Everything dies ... (c) X-Files