* [PATCH] ip6tables-save and udp port range
@ 2003-09-23 9:21 Thomas Woerner
2003-10-02 19:47 ` Harald Welte
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Woerner @ 2003-09-23 9:21 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
Hello,
ip6tables-save is not saving an udp port range if one of the ports is
0x0 or 0xFFFF. This is aleady fixed in the ipv4 version.
I have attached the patch.
Thanks in advance
Thomas Woerner
--
Thomas Woerner, Software Engineer Phone: +49-711-96437-0
Red Hat GmbH Fax : +49-711-96437-111
Hauptstaetterstr. 58 Email: twoerner@redhat.com
D-70178 Stuttgart Web : http://www.redhat.de/
[-- Attachment #2: iptables-1.2.8-save_ports.patch --]
[-- Type: text/plain, Size: 676 bytes --]
--- iptables-1.2.8/extensions/libip6t_udp.c.save_ports 2003-09-17 16:11:40.000000000 +0200
+++ iptables-1.2.8/extensions/libip6t_udp.c 2003-09-17 16:27:17.000000000 +0200
@@ -205,7 +205,7 @@
const struct ip6t_udp *udpinfo = (struct ip6t_udp *)match->data;
if (udpinfo->spts[0] != 0
- && udpinfo->spts[1] != 0xFFFF) {
+ || udpinfo->spts[1] != 0xFFFF) {
if (udpinfo->invflags & IP6T_UDP_INV_SRCPT)
printf("! ");
if (udpinfo->spts[0]
@@ -219,7 +219,7 @@
}
if (udpinfo->dpts[0] != 0
- && udpinfo->dpts[1] != 0xFFFF) {
+ || udpinfo->dpts[1] != 0xFFFF) {
if (udpinfo->invflags & IP6T_UDP_INV_DSTPT)
printf("! ");
if (udpinfo->dpts[0]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-02 19:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-23 9:21 [PATCH] ip6tables-save and udp port range Thomas Woerner
2003-10-02 19:47 ` Harald Welte
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.