summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorJan Engelhardt2008-01-31 13:52:29 +0100
committerDavid S. Miller2008-02-01 04:28:11 +0100
commitda3f13c95a4c6e275a9b568f358c0c120ad83ecb (patch)
treefd91e478362628b863da54db706ede33061f729b /net/ipv4
parent[NETFILTER]: nf_{conntrack,nat}_proto_tcp: constify and annotate TCP modules (diff)
downloadkernel-qcow2-linux-da3f13c95a4c6e275a9b568f358c0c120ad83ecb.tar.gz
kernel-qcow2-linux-da3f13c95a4c6e275a9b568f358c0c120ad83ecb.tar.xz
kernel-qcow2-linux-da3f13c95a4c6e275a9b568f358c0c120ad83ecb.zip
[NETFILTER]: nf_{conntrack,nat}_proto_udp{,lite}: annotate with const
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/nf_nat_proto_udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_nat_proto_udp.c b/net/ipv4/netfilter/nf_nat_proto_udp.c
index 10df4db078af..4b8f49910ff2 100644
--- a/net/ipv4/netfilter/nf_nat_proto_udp.c
+++ b/net/ipv4/netfilter/nf_nat_proto_udp.c
@@ -91,7 +91,7 @@ udp_manip_pkt(struct sk_buff *skb,
const struct nf_conntrack_tuple *tuple,
enum nf_nat_manip_type maniptype)
{
- struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff);
+ const struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff);
struct udphdr *hdr;
unsigned int hdroff = iphdroff + iph->ihl*4;
__be32 oldip, newip;