Patch for libiptc
Hello.
Patch for function is_same() in libiptc4.c (in libiptc6.c all ok)
Best Wishes
Alexander Pazdnikov
*** /usr/src/redhat/BUILD/iptables-1.2.5/libiptc/libip4tc.c Fri Jan 5 20:22:59 2001
--- /usr/src/redhat/BUILD/PATCHED/iptables-1.2.5/libiptc/libip4tc.c Wed Nov 20 21:33:30 2002
*************** is_same(const STRUCT_ENTRY *a, const STR *** 191,201 ****
/* Always compare head structures: ignore mask here. */ if (a->ip.src.s_addr != b->ip.src.s_addr
|| a->ip.dst.s_addr != b->ip.dst.s_addr || a->ip.smsk.s_addr != b->ip.smsk.s_addr - || a->ip.smsk.s_addr != b->ip.smsk.s_addr || a->ip.proto != b->ip.proto || a->ip.flags != b->ip.flags || a->ip.invflags != b->ip.invflags)
return 0;
--- 191,201 ----
/* Always compare head structures: ignore mask here. */ if (a->ip.src.s_addr != b->ip.src.s_addr
|| a->ip.dst.s_addr != b->ip.dst.s_addr || a->ip.smsk.s_addr != b->ip.smsk.s_addr + || a->ip.dmsk.s_addr != b->ip.dmsk.s_addr || a->ip.proto != b->ip.proto || a->ip.flags != b->ip.flags || a->ip.invflags != b->ip.invflags)
return 0;
Quoted 2 lines · Alexander Pazdnikov
Hello.
Patch for functionis_same()inlibiptc4.c(inlibiptc6.call ok)
Has already been fixed in the latest release (see
http://cvs.netfilter.org/cgi-bin/cvsweb/netfilter/userspace/libiptc/libip4tc.c.diff?r1=1.14&r2=1.15)
Quoted 2 lines
Best Wishes
Alexander Pazdnikov
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)