diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-04-14 11:15:42 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-14 11:15:42 +0200 |
commit | 72b72949db9aabaafd791a9077f02188a866824d (patch) | |
tree | 5621ea59664345cf4be6db5d9f328995f3c4b229 /net/ipv4/netfilter/nf_nat_core.c | |
parent | 58c0fb0ddd92e5105d61fc85b6e7af7b1f669067 (diff) | |
download | kernel_samsung_smdk4412-72b72949db9aabaafd791a9077f02188a866824d.tar.gz kernel_samsung_smdk4412-72b72949db9aabaafd791a9077f02188a866824d.tar.bz2 kernel_samsung_smdk4412-72b72949db9aabaafd791a9077f02188a866824d.zip |
[NETFILTER]: annotate rest of nf_nat_* with const
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4/netfilter/nf_nat_core.c')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c index 0d5fa3a54d0..9c8aa8df2d5 100644 --- a/net/ipv4/netfilter/nf_nat_core.c +++ b/net/ipv4/netfilter/nf_nat_core.c @@ -150,9 +150,9 @@ find_appropriate_src(const struct nf_conntrack_tuple *tuple, const struct nf_nat_range *range) { unsigned int h = hash_by_src(tuple); - struct nf_conn_nat *nat; - struct nf_conn *ct; - struct hlist_node *n; + const struct nf_conn_nat *nat; + const struct nf_conn *ct; + const struct hlist_node *n; rcu_read_lock(); hlist_for_each_entry_rcu(nat, n, &bysource[h], bysource) { @@ -426,7 +426,7 @@ int nf_nat_icmp_reply_translation(struct nf_conn *ct, struct icmphdr icmp; struct iphdr ip; } *inside; - struct nf_conntrack_l4proto *l4proto; + const struct nf_conntrack_l4proto *l4proto; struct nf_conntrack_tuple inner, target; int hdrlen = ip_hdrlen(skb); enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); |