diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-01-31 04:53:05 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 19:28:12 -0800 |
commit | 7cc3864d39837549c5ccb33c5b85183d6e6986bc (patch) | |
tree | 6eea6059e6e133f82e8998664af789ab50ee7d39 /net/ipv4/netfilter/nf_nat_proto_icmp.c | |
parent | dc35dc5a4c8e7752c82643ff2ad442685331ab28 (diff) | |
download | op-kernel-dev-7cc3864d39837549c5ccb33c5b85183d6e6986bc.zip op-kernel-dev-7cc3864d39837549c5ccb33c5b85183d6e6986bc.tar.gz |
[NETFILTER]: nf_{conntrack,nat}_icmp: constify and annotate
Constify a few data tables use const qualifiers on variables where
possible in the nf_conntrack_icmp* sources.
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/netfilter/nf_nat_proto_icmp.c')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_proto_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_nat_proto_icmp.c b/net/ipv4/netfilter/nf_nat_proto_icmp.c index a0e44c9..03a0296 100644 --- a/net/ipv4/netfilter/nf_nat_proto_icmp.c +++ b/net/ipv4/netfilter/nf_nat_proto_icmp.c @@ -57,7 +57,7 @@ icmp_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 icmphdr *hdr; unsigned int hdroff = iphdroff + iph->ihl*4; |