From 73f72f541ac4dab538d4d418b9bbf1707b31342b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 3 Jul 2000 10:17:57 +0000 Subject: Aligning matchsize and targetsize now responsibility of extension writers (PPC fix). --- extensions/libipt_udp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/libipt_udp.c') diff --git a/extensions/libipt_udp.c b/extensions/libipt_udp.c index 507937b1..06c61c51 100644 --- a/extensions/libipt_udp.c +++ b/extensions/libipt_udp.c @@ -203,7 +203,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) const struct ipt_udp *udpinfo = (struct ipt_udp *)match->data; if (udpinfo->spts[0] != 0 - && udpinfo->spts[1] != 0xFFFF) { + || udpinfo->spts[1] != 0xFFFF) { if (udpinfo->invflags & IPT_UDP_INV_SRCPT) printf("! "); if (udpinfo->spts[0] @@ -217,7 +217,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) } if (udpinfo->dpts[0] != 0 - && udpinfo->dpts[1] != 0xFFFF) { + || udpinfo->dpts[1] != 0xFFFF) { if (udpinfo->invflags & IPT_UDP_INV_DSTPT) printf("! "); if (udpinfo->dpts[0] @@ -235,8 +235,8 @@ struct iptables_match udp = { NULL, "udp", NETFILTER_VERSION, - sizeof(struct ipt_udp), - sizeof(struct ipt_udp), + IPT_ALIGN(sizeof(struct ipt_udp)), + IPT_ALIGN(sizeof(struct ipt_udp)), &help, &init, &parse, -- cgit v1.2.3