Release 4.16 net/ipv6/netfilter/nf_tables_ipv6.c
/*
* Copyright (c) 2008 Patrick McHardy <kaber@trash.net>
* Copyright (c) 2012-2013 Pablo Neira Ayuso <pablo@netfilter.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Development of this code funded by Astaro AG (http://www.astaro.com/)
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/ipv6.h>
#include <linux/netfilter_ipv6.h>
#include <net/netfilter/nf_tables.h>
#include <net/netfilter/nf_tables_ipv6.h>
static unsigned int nft_do_chain_ipv6(void *priv,
struct sk_buff *skb,
const struct nf_hook_state *state)
{
struct nft_pktinfo pkt;
nft_set_pktinfo(&pkt, skb, state);
nft_set_pktinfo_ipv6(&pkt, skb);
return nft_do_chain(&pkt, priv);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| Patrick McHardy | 33 | 62.26% | 3 | 37.50% |
| Pablo Neira Ayuso | 14 | 26.42% | 3 | 37.50% |
| Eric W. Biedermann | 3 | 5.66% | 1 | 12.50% |
| David S. Miller | 3 | 5.66% | 1 | 12.50% |
| Total | 53 | 100.00% | 8 | 100.00% |
static const struct nf_chain_type filter_ipv6 = {
.name = "filter",
.type = NFT_CHAIN_T_DEFAULT,
.family = NFPROTO_IPV6,
.owner = THIS_MODULE,
.hook_mask = (1 << NF_INET_LOCAL_IN) |
(1 << NF_INET_LOCAL_OUT) |
(1 << NF_INET_FORWARD) |
(1 << NF_INET_PRE_ROUTING) |
(1 << NF_INET_POST_ROUTING),
.hooks = {
[NF_INET_LOCAL_IN] = nft_do_chain_ipv6,
[NF_INET_LOCAL_OUT] = nft_do_chain_ipv6,
[NF_INET_FORWARD] = nft_do_chain_ipv6,
[NF_INET_PRE_ROUTING] = nft_do_chain_ipv6,
[NF_INET_POST_ROUTING] = nft_do_chain_ipv6,
},
};
static int __init nf_tables_ipv6_init(void)
{
return nft_register_chain_type(&filter_ipv6);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| Patrick McHardy | 13 | 81.25% | 1 | 33.33% |
| Pablo Neira Ayuso | 2 | 12.50% | 1 | 33.33% |
| Gao Feng | 1 | 6.25% | 1 | 33.33% |
| Total | 16 | 100.00% | 3 | 100.00% |
static void __exit nf_tables_ipv6_exit(void)
{
nft_unregister_chain_type(&filter_ipv6);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| Patrick McHardy | 9 | 60.00% | 1 | 50.00% |
| Pablo Neira Ayuso | 6 | 40.00% | 1 | 50.00% |
| Total | 15 | 100.00% | 2 | 100.00% |
module_init(nf_tables_ipv6_init);
module_exit(nf_tables_ipv6_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>");
MODULE_ALIAS_NFT_CHAIN(AF_INET6, "filter");
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| Pablo Neira Ayuso | 114 | 50.44% | 8 | 47.06% |
| Patrick McHardy | 105 | 46.46% | 6 | 35.29% |
| Eric W. Biedermann | 3 | 1.33% | 1 | 5.88% |
| David S. Miller | 3 | 1.33% | 1 | 5.88% |
| Gao Feng | 1 | 0.44% | 1 | 5.88% |
| Total | 226 | 100.00% | 17 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.