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_tcp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/libipt_tcp.c') diff --git a/extensions/libipt_tcp.c b/extensions/libipt_tcp.c index 276d0e2a..47336f6c 100644 --- a/extensions/libipt_tcp.c +++ b/extensions/libipt_tcp.c @@ -374,7 +374,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) const struct ipt_tcp *tcpinfo = (struct ipt_tcp *)match->data; if (tcpinfo->spts[0] != 0 - && tcpinfo->spts[1] != 0xFFFF) { + || tcpinfo->spts[1] != 0xFFFF) { if (tcpinfo->invflags & IPT_TCP_INV_SRCPT) printf("! "); if (tcpinfo->spts[0] @@ -388,7 +388,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) } if (tcpinfo->dpts[0] != 0 - && tcpinfo->dpts[1] != 0xFFFF) { + || tcpinfo->dpts[1] != 0xFFFF) { if (tcpinfo->invflags & IPT_TCP_INV_DSTPT) printf("! "); if (tcpinfo->dpts[0] @@ -425,8 +425,8 @@ struct iptables_match tcp = { NULL, "tcp", NETFILTER_VERSION, - sizeof(struct ipt_tcp), - sizeof(struct ipt_tcp), + IPT_ALIGN(sizeof(struct ipt_tcp)), + IPT_ALIGN(sizeof(struct ipt_tcp)), &help, &init, &parse, -- cgit v1.2.3