Skip to contentSkip to conversation

: xt_tcpudp: fix wrong struct in udp_checkentry

NETFILTER Applied Patrick McHardy 2 participants 2 messages Aug 30, 2007 – Aug 31, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Dave,

the attached patch fixes an incorrectly used structure in xt_tcpudp, which apparently causes problems on CRIS.

Please apply, thanks.

[NETFILTER]: xt_tcpudp: fix wrong struct in udp_checkentry

It doesn't seem to have any effect on the x86 architecture but it does have effect on the Axis CRIS architecture.

Signed-off-by Jesper Bengtsson <jesper.bengtsson_at_axis.com>

---
commit 91574ca32eb052b31c976581e9723735e9acb53f
tree 1dbeb1356c2ec6051460d5db3f29635d24716d74
parent b07d68b5ca4d55a16fab223d63d5fb36f89ff42f
author Patrick McHardy <[email protected]> Thu, 30 Aug 2007 08:47:23 +0200 committer Patrick McHardy <[email protected]> Thu, 30 Aug 2007 08:47:23 +0200

 net/netfilter/xt_tcpudp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/xt_tcpudp.c +1 -1
index ab7d845..223f9bd 100644
@@ -188,7 +188,7 @@ udp_checkentry(const char *tablename,
 	       void *matchinfo,
 	       unsigned int hook_mask)
 {
-	const struct xt_tcp *udpinfo = matchinfo;
+	const struct xt_udp *udpinfo = matchinfo;
 
 	/* Must specify no unknown invflags */
 	return !(udpinfo->invflags & ~XT_UDP_INV_MASK);
maintainer Applied
#1 lore raw

From: Patrick McHardy <[email protected]>
Date: Thu, 30 Aug 2007 09:04:09 +0200

Quoted 6 lines

Hi Dave,

the attached patch fixes an incorrectly used structure in xt_tcpudp, which apparently causes problems on CRIS.

Please apply, thanks.

Applied, thanks Patrick.