Commit 3876d22dba62ebf6582f33e1ef2160eeb95e1129
Committed by
Pablo Neira Ayuso
1 parent
44a6f0df03
Exists in
master
and in
16 other branches
netfilter: nf_tables: rename nft_do_chain_pktinfo() to nft_do_chain()
We don't encode argument types into function names and since besides nft_do_chain() there are only AF-specific versions, there is no risk of confusion. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Showing 10 changed files with 12 additions and 12 deletions Side-by-side Diff
- include/net/netfilter/nf_tables.h
- net/bridge/netfilter/nf_tables_bridge.c
- net/ipv4/netfilter/nf_tables_arp.c
- net/ipv4/netfilter/nf_tables_ipv4.c
- net/ipv4/netfilter/nft_chain_nat_ipv4.c
- net/ipv4/netfilter/nft_chain_route_ipv4.c
- net/ipv6/netfilter/nf_tables_ipv6.c
- net/ipv6/netfilter/nft_chain_nat_ipv6.c
- net/ipv6/netfilter/nft_chain_route_ipv6.c
- net/netfilter/nf_tables_core.c
include/net/netfilter/nf_tables.h
... | ... | @@ -447,8 +447,8 @@ |
447 | 447 | return container_of(chain, struct nft_base_chain, chain); |
448 | 448 | } |
449 | 449 | |
450 | -unsigned int nft_do_chain_pktinfo(struct nft_pktinfo *pkt, | |
451 | - const struct nf_hook_ops *ops); | |
450 | +unsigned int nft_do_chain(struct nft_pktinfo *pkt, | |
451 | + const struct nf_hook_ops *ops); | |
452 | 452 | |
453 | 453 | /** |
454 | 454 | * struct nft_table - nf_tables table |
net/bridge/netfilter/nf_tables_bridge.c
net/ipv4/netfilter/nf_tables_arp.c
net/ipv4/netfilter/nf_tables_ipv4.c
net/ipv4/netfilter/nft_chain_nat_ipv4.c
net/ipv4/netfilter/nft_chain_route_ipv4.c
net/ipv6/netfilter/nf_tables_ipv6.c
net/ipv6/netfilter/nft_chain_nat_ipv6.c
net/ipv6/netfilter/nft_chain_route_ipv6.c
... | ... | @@ -47,7 +47,7 @@ |
47 | 47 | /* flowlabel and prio (includes version, which shouldn't change either */ |
48 | 48 | flowlabel = *((u32 *)ipv6_hdr(skb)); |
49 | 49 | |
50 | - ret = nft_do_chain_pktinfo(&pkt, ops); | |
50 | + ret = nft_do_chain(&pkt, ops); | |
51 | 51 | if (ret != NF_DROP && ret != NF_QUEUE && |
52 | 52 | (memcmp(&ipv6_hdr(skb)->saddr, &saddr, sizeof(saddr)) || |
53 | 53 | memcmp(&ipv6_hdr(skb)->daddr, &daddr, sizeof(daddr)) || |
net/netfilter/nf_tables_core.c
... | ... | @@ -116,7 +116,7 @@ |
116 | 116 | } |
117 | 117 | |
118 | 118 | unsigned int |
119 | -nft_do_chain_pktinfo(struct nft_pktinfo *pkt, const struct nf_hook_ops *ops) | |
119 | +nft_do_chain(struct nft_pktinfo *pkt, const struct nf_hook_ops *ops) | |
120 | 120 | { |
121 | 121 | const struct nft_chain *chain = ops->priv; |
122 | 122 | const struct nft_rule *rule; |
... | ... | @@ -216,7 +216,7 @@ |
216 | 216 | |
217 | 217 | return nft_base_chain(chain)->policy; |
218 | 218 | } |
219 | -EXPORT_SYMBOL_GPL(nft_do_chain_pktinfo); | |
219 | +EXPORT_SYMBOL_GPL(nft_do_chain); | |
220 | 220 | |
221 | 221 | int __init nf_tables_core_module_init(void) |
222 | 222 | { |