diff options
author | Al Viro | 2006-09-28 23:22:02 +0200 |
---|---|---|
committer | David S. Miller | 2006-09-29 03:03:01 +0200 |
commit | a76b11dd25957287af12ce6855be6d7fd415b3a9 (patch) | |
tree | f85569f37e1c05d9b946e7df4b826d401dc1d593 /net/ipv4/netfilter/ip_nat_snmp_basic.c | |
parent | [NETFILTER]: conntrack annotations (diff) | |
download | kernel-qcow2-linux-a76b11dd25957287af12ce6855be6d7fd415b3a9.tar.gz kernel-qcow2-linux-a76b11dd25957287af12ce6855be6d7fd415b3a9.tar.xz kernel-qcow2-linux-a76b11dd25957287af12ce6855be6d7fd415b3a9.zip |
[NETFILTER]: NAT annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/ip_nat_snmp_basic.c')
-rw-r--r-- | net/ipv4/netfilter/ip_nat_snmp_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_nat_snmp_basic.c b/net/ipv4/netfilter/ip_nat_snmp_basic.c index 18b7fbdccb61..168f45fa1898 100644 --- a/net/ipv4/netfilter/ip_nat_snmp_basic.c +++ b/net/ipv4/netfilter/ip_nat_snmp_basic.c @@ -1211,7 +1211,7 @@ static int snmp_translate(struct ip_conntrack *ct, struct sk_buff **pskb) { struct iphdr *iph = (*pskb)->nh.iph; - struct udphdr *udph = (struct udphdr *)((u_int32_t *)iph + iph->ihl); + struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); u_int16_t udplen = ntohs(udph->len); u_int16_t paylen = udplen - sizeof(struct udphdr); int dir = CTINFO2DIR(ctinfo); |