Home
last modified time | relevance | path

Searched refs:nf_hook_ops (Results 1 – 51 of 51) sorted by relevance

/linux-4.1.27/include/net/netfilter/
Dnf_nat_l3proto.h46 unsigned int nf_nat_ipv4_in(const struct nf_hook_ops *ops, struct sk_buff *skb,
48 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
53 unsigned int nf_nat_ipv4_out(const struct nf_hook_ops *ops, struct sk_buff *skb,
55 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
60 unsigned int nf_nat_ipv4_local_fn(const struct nf_hook_ops *ops,
63 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
68 unsigned int nf_nat_ipv4_fn(const struct nf_hook_ops *ops, struct sk_buff *skb,
70 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
79 unsigned int nf_nat_ipv6_in(const struct nf_hook_ops *ops, struct sk_buff *skb,
81 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
[all …]
Dnf_queue.h14 struct nf_hook_ops *elem;
28 struct nf_hook_ops *ops);
Dnf_tables_ipv6.h9 const struct nf_hook_ops *ops, in nft_set_pktinfo_ipv6()
Dnf_tables_ipv4.h9 const struct nf_hook_ops *ops, in nft_set_pktinfo_ipv4()
Dnf_tables.h19 const struct nf_hook_ops *ops;
28 const struct nf_hook_ops *ops, in nft_set_pktinfo()
796 struct nf_hook_ops ops[NFT_HOOK_OPS_MAX];
810 const struct nf_hook_ops *ops);
852 void (*hook_ops_init)(struct nf_hook_ops *,
/linux-4.1.27/net/ipv4/netfilter/
Dnft_chain_nat_ipv4.c29 static unsigned int nft_nat_do_chain(const struct nf_hook_ops *ops, in nft_nat_do_chain()
41 static unsigned int nft_nat_ipv4_fn(const struct nf_hook_ops *ops, in nft_nat_ipv4_fn()
48 static unsigned int nft_nat_ipv4_in(const struct nf_hook_ops *ops, in nft_nat_ipv4_in()
55 static unsigned int nft_nat_ipv4_out(const struct nf_hook_ops *ops, in nft_nat_ipv4_out()
62 static unsigned int nft_nat_ipv4_local_fn(const struct nf_hook_ops *ops, in nft_nat_ipv4_local_fn()
Diptable_nat.c31 static unsigned int iptable_nat_do_chain(const struct nf_hook_ops *ops, in iptable_nat_do_chain()
41 static unsigned int iptable_nat_ipv4_fn(const struct nf_hook_ops *ops, in iptable_nat_ipv4_fn()
48 static unsigned int iptable_nat_ipv4_in(const struct nf_hook_ops *ops, in iptable_nat_ipv4_in()
55 static unsigned int iptable_nat_ipv4_out(const struct nf_hook_ops *ops, in iptable_nat_ipv4_out()
62 static unsigned int iptable_nat_ipv4_local_fn(const struct nf_hook_ops *ops, in iptable_nat_ipv4_local_fn()
69 static struct nf_hook_ops nf_nat_ipv4_ops[] __read_mostly = {
Dnf_nat_l3proto_ipv4.c258 nf_nat_ipv4_fn(const struct nf_hook_ops *ops, struct sk_buff *skb, in nf_nat_ipv4_fn()
260 unsigned int (*do_chain)(const struct nf_hook_ops *ops, in nf_nat_ipv4_fn()
348 nf_nat_ipv4_in(const struct nf_hook_ops *ops, struct sk_buff *skb, in nf_nat_ipv4_in()
350 unsigned int (*do_chain)(const struct nf_hook_ops *ops, in nf_nat_ipv4_in()
368 nf_nat_ipv4_out(const struct nf_hook_ops *ops, struct sk_buff *skb, in nf_nat_ipv4_out()
370 unsigned int (*do_chain)(const struct nf_hook_ops *ops, in nf_nat_ipv4_out()
410 nf_nat_ipv4_local_fn(const struct nf_hook_ops *ops, struct sk_buff *skb, in nf_nat_ipv4_local_fn()
412 unsigned int (*do_chain)(const struct nf_hook_ops *ops, in nf_nat_ipv4_local_fn()
Darptable_filter.c30 arptable_filter_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in arptable_filter_hook()
39 static struct nf_hook_ops *arpfilter_ops __read_mostly;
Diptable_raw.c23 iptable_raw_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in iptable_raw_hook()
38 static struct nf_hook_ops *rawtable_ops __read_mostly;
Diptable_security.c40 iptable_security_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in iptable_security_hook()
56 static struct nf_hook_ops *sectbl_ops __read_mostly;
Diptable_filter.c36 iptable_filter_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in iptable_filter_hook()
51 static struct nf_hook_ops *filter_ops __read_mostly;
Dnf_defrag_ipv4.c64 static unsigned int ipv4_conntrack_defrag(const struct nf_hook_ops *ops, in ipv4_conntrack_defrag()
94 static struct nf_hook_ops ipv4_defrag_ops[] = {
Dnf_tables_ipv4.c21 static unsigned int nft_do_chain_ipv4(const struct nf_hook_ops *ops, in nft_do_chain_ipv4()
32 static unsigned int nft_ipv4_output(const struct nf_hook_ops *ops, in nft_ipv4_output()
Dnf_conntrack_l3proto_ipv4.c95 static unsigned int ipv4_helper(const struct nf_hook_ops *ops, in ipv4_helper()
122 static unsigned int ipv4_confirm(const struct nf_hook_ops *ops, in ipv4_confirm()
146 static unsigned int ipv4_conntrack_in(const struct nf_hook_ops *ops, in ipv4_conntrack_in()
153 static unsigned int ipv4_conntrack_local(const struct nf_hook_ops *ops, in ipv4_conntrack_local()
166 static struct nf_hook_ops ipv4_conntrack_ops[] __read_mostly = {
Diptable_mangle.c83 iptable_mangle_hook(const struct nf_hook_ops *ops, in iptable_mangle_hook()
97 static struct nf_hook_ops *mangle_ops __read_mostly;
Dnft_chain_route_ipv4.c24 static unsigned int nf_route_table_hook(const struct nf_hook_ops *ops, in nf_route_table_hook()
Dnf_tables_arp.c18 nft_do_chain_arp(const struct nf_hook_ops *ops, in nft_do_chain_arp()
Dipt_SYNPROXY.c301 static unsigned int ipv4_synproxy_hook(const struct nf_hook_ops *ops, in ipv4_synproxy_hook()
432 static struct nf_hook_ops ipv4_synproxy_ops[] __read_mostly = {
Dipt_CLUSTERIP.c505 arp_mangle(const struct nf_hook_ops *ops, in arp_mangle()
558 static struct nf_hook_ops cip_arp_ops __read_mostly = {
/linux-4.1.27/net/ipv6/netfilter/
Dnft_chain_nat_ipv6.c27 static unsigned int nft_nat_do_chain(const struct nf_hook_ops *ops, in nft_nat_do_chain()
39 static unsigned int nft_nat_ipv6_fn(const struct nf_hook_ops *ops, in nft_nat_ipv6_fn()
46 static unsigned int nft_nat_ipv6_in(const struct nf_hook_ops *ops, in nft_nat_ipv6_in()
53 static unsigned int nft_nat_ipv6_out(const struct nf_hook_ops *ops, in nft_nat_ipv6_out()
60 static unsigned int nft_nat_ipv6_local_fn(const struct nf_hook_ops *ops, in nft_nat_ipv6_local_fn()
Dip6table_nat.c33 static unsigned int ip6table_nat_do_chain(const struct nf_hook_ops *ops, in ip6table_nat_do_chain()
43 static unsigned int ip6table_nat_fn(const struct nf_hook_ops *ops, in ip6table_nat_fn()
50 static unsigned int ip6table_nat_in(const struct nf_hook_ops *ops, in ip6table_nat_in()
57 static unsigned int ip6table_nat_out(const struct nf_hook_ops *ops, in ip6table_nat_out()
64 static unsigned int ip6table_nat_local_fn(const struct nf_hook_ops *ops, in ip6table_nat_local_fn()
71 static struct nf_hook_ops nf_nat_ipv6_ops[] __read_mostly = {
Dnf_nat_l3proto_ipv6.c265 nf_nat_ipv6_fn(const struct nf_hook_ops *ops, struct sk_buff *skb, in nf_nat_ipv6_fn()
267 unsigned int (*do_chain)(const struct nf_hook_ops *ops, in nf_nat_ipv6_fn()
356 nf_nat_ipv6_in(const struct nf_hook_ops *ops, struct sk_buff *skb, in nf_nat_ipv6_in()
358 unsigned int (*do_chain)(const struct nf_hook_ops *ops, in nf_nat_ipv6_in()
376 nf_nat_ipv6_out(const struct nf_hook_ops *ops, struct sk_buff *skb, in nf_nat_ipv6_out()
378 unsigned int (*do_chain)(const struct nf_hook_ops *ops, in nf_nat_ipv6_out()
417 nf_nat_ipv6_local_fn(const struct nf_hook_ops *ops, struct sk_buff *skb, in nf_nat_ipv6_local_fn()
419 unsigned int (*do_chain)(const struct nf_hook_ops *ops, in nf_nat_ipv6_local_fn()
Dip6table_raw.c22 ip6table_raw_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip6table_raw_hook()
30 static struct nf_hook_ops *rawtable_ops __read_mostly;
Dip6table_security.c39 ip6table_security_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip6table_security_hook()
48 static struct nf_hook_ops *sectbl_ops __read_mostly;
Dip6table_filter.c35 ip6table_filter_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip6table_filter_hook()
43 static struct nf_hook_ops *filter_ops __read_mostly;
Dnf_defrag_ipv6_hooks.c55 static unsigned int ipv6_defrag(const struct nf_hook_ops *ops, in ipv6_defrag()
85 static struct nf_hook_ops ipv6_defrag_ops[] = {
Dnf_tables_ipv6.c19 static unsigned int nft_do_chain_ipv6(const struct nf_hook_ops *ops, in nft_do_chain_ipv6()
32 static unsigned int nft_ipv6_output(const struct nf_hook_ops *ops, in nft_ipv6_output()
Dnf_conntrack_l3proto_ipv6.c98 static unsigned int ipv6_helper(const struct nf_hook_ops *ops, in ipv6_helper()
134 static unsigned int ipv6_confirm(const struct nf_hook_ops *ops, in ipv6_confirm()
168 static unsigned int ipv6_conntrack_in(const struct nf_hook_ops *ops, in ipv6_conntrack_in()
175 static unsigned int ipv6_conntrack_local(const struct nf_hook_ops *ops, in ipv6_conntrack_local()
187 static struct nf_hook_ops ipv6_conntrack_ops[] __read_mostly = {
Dip6table_mangle.c79 ip6table_mangle_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip6table_mangle_hook()
92 static struct nf_hook_ops *mangle_ops __read_mostly;
Dnft_chain_route_ipv6.c25 static unsigned int nf_route_table_hook(const struct nf_hook_ops *ops, in nf_route_table_hook()
Dip6t_SYNPROXY.c316 static unsigned int ipv6_synproxy_hook(const struct nf_hook_ops *ops, in ipv6_synproxy_hook()
455 static struct nf_hook_ops ipv6_synproxy_ops[] __read_mostly = {
/linux-4.1.27/net/netfilter/
Dcore.c65 int nf_register_hook(struct nf_hook_ops *reg) in nf_register_hook()
67 struct nf_hook_ops *elem; in nf_register_hook()
83 void nf_unregister_hook(struct nf_hook_ops *reg) in nf_unregister_hook()
96 int nf_register_hooks(struct nf_hook_ops *reg, unsigned int n) in nf_register_hooks()
115 void nf_unregister_hooks(struct nf_hook_ops *reg, unsigned int n) in nf_unregister_hooks()
125 struct nf_hook_ops **elemp) in nf_iterate()
163 struct nf_hook_ops *elem; in nf_hook_slow()
171 struct nf_hook_ops, list); in nf_hook_slow()
Dnf_internals.h17 struct nf_hook_state *state, struct nf_hook_ops **elemp);
20 int nf_queue(struct sk_buff *skb, struct nf_hook_ops *elem,
22 void nf_queue_nf_hook_drop(struct nf_hook_ops *ops);
Dnf_queue.c108 void nf_queue_nf_hook_drop(struct nf_hook_ops *ops) in nf_queue_nf_hook_drop()
130 struct nf_hook_ops *elem, in nf_queue()
192 struct nf_hook_ops *elem = entry->elem; in nf_reinject()
202 elem = list_entry(elem->list.prev, struct nf_hook_ops, list); in nf_reinject()
Dnf_tables_inet.c19 static void nft_inet_hook_ops_init(struct nf_hook_ops *ops, unsigned int n) in nft_inet_hook_ops_init()
Dnft_compat.c157 const struct nf_hook_ops *ops = &basechain->ops[0]; in nft_target_set_tgchk_param()
292 const struct nf_hook_ops *ops = &basechain->ops[0]; in nft_target_validate()
373 const struct nf_hook_ops *ops = &basechain->ops[0]; in nft_match_set_mtchk_param()
473 const struct nf_hook_ops *ops = &basechain->ops[0]; in nft_match_validate()
Dnf_tables_core.c114 nft_do_chain(struct nft_pktinfo *pkt, const struct nf_hook_ops *ops) in nft_do_chain()
Dx_tables.c1193 struct nf_hook_ops *xt_hook_link(const struct xt_table *table, nf_hookfn *fn) in xt_hook_link()
1198 struct nf_hook_ops *ops; in xt_hook_link()
1232 void xt_hook_unlink(const struct xt_table *table, struct nf_hook_ops *ops) in xt_hook_unlink()
Dnfnetlink_queue_core.c829 return entry->elem == (struct nf_hook_ops *)ops_ptr; in nf_hook_cmp()
832 static void nfqnl_nf_hook_drop(struct net *net, struct nf_hook_ops *hook) in nfqnl_nf_hook_drop()
Dnf_tables_api.c947 const struct nf_hook_ops *ops = &basechain->ops[0]; in nf_tables_fill_chain_info()
1296 struct nf_hook_ops *ops; in nf_tables_newchain()
/linux-4.1.27/security/smack/
Dsmack_netfilter.c24 static unsigned int smack_ipv6_output(const struct nf_hook_ops *ops, in smack_ipv6_output()
41 static unsigned int smack_ipv4_output(const struct nf_hook_ops *ops, in smack_ipv4_output()
57 static struct nf_hook_ops smack_nf_ops[] = {
/linux-4.1.27/net/bridge/netfilter/
Debtable_filter.c60 ebt_in_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in ebt_in_hook()
68 ebt_out_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, in ebt_out_hook()
75 static struct nf_hook_ops ebt_ops_filter[] __read_mostly = {
Debtable_nat.c60 ebt_nat_in(const struct nf_hook_ops *ops, struct sk_buff *skb, in ebt_nat_in()
68 ebt_nat_out(const struct nf_hook_ops *ops, struct sk_buff *skb, in ebt_nat_out()
75 static struct nf_hook_ops ebt_ops_nat[] __read_mostly = {
Dnf_tables_bridge.c68 const struct nf_hook_ops *ops, in nft_bridge_set_pktinfo_ipv4()
79 const struct nf_hook_ops *ops, in nft_bridge_set_pktinfo_ipv6()
92 nft_do_chain_bridge(const struct nf_hook_ops *ops, in nft_do_chain_bridge()
/linux-4.1.27/include/linux/
Dnetfilter.h46 struct nf_hook_ops;
77 typedef unsigned int nf_hookfn(const struct nf_hook_ops *ops,
81 struct nf_hook_ops { struct
119 int nf_register_hook(struct nf_hook_ops *reg);
120 void nf_unregister_hook(struct nf_hook_ops *reg);
121 int nf_register_hooks(struct nf_hook_ops *reg, unsigned int n);
122 void nf_unregister_hooks(struct nf_hook_ops *reg, unsigned int n);
/linux-4.1.27/net/decnet/netfilter/
Ddn_rtmsg.c90 static unsigned int dnrmg_hook(const struct nf_hook_ops *ops, in dnrmg_hook()
116 static struct nf_hook_ops dnrmg_ops __read_mostly = {
/linux-4.1.27/net/bridge/
Dbr_netfilter.c569 static unsigned int br_nf_pre_routing_ipv6(const struct nf_hook_ops *ops, in br_nf_pre_routing_ipv6()
618 static unsigned int br_nf_pre_routing(const struct nf_hook_ops *ops, in br_nf_pre_routing()
680 static unsigned int br_nf_local_in(const struct nf_hook_ops *ops, in br_nf_local_in()
724 static unsigned int br_nf_forward_ip(const struct nf_hook_ops *ops, in br_nf_forward_ip()
784 static unsigned int br_nf_forward_arp(const struct nf_hook_ops *ops, in br_nf_forward_arp()
884 static unsigned int br_nf_post_routing(const struct nf_hook_ops *ops, in br_nf_post_routing()
933 static unsigned int ip_sabotage_in(const struct nf_hook_ops *ops, in ip_sabotage_in()
990 static struct nf_hook_ops br_nf_ops[] __read_mostly = {
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_core.c1286 ip_vs_reply4(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_reply4()
1297 ip_vs_local_reply4(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_local_reply4()
1311 ip_vs_reply6(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_reply6()
1322 ip_vs_local_reply6(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_local_reply6()
1779 ip_vs_remote_request4(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_remote_request4()
1790 ip_vs_local_request4(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_local_request4()
1803 ip_vs_remote_request6(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_remote_request6()
1814 ip_vs_local_request6(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_local_request6()
1833 ip_vs_forward_icmp(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_forward_icmp()
1854 ip_vs_forward_icmp_v6(const struct nf_hook_ops *ops, struct sk_buff *skb, in ip_vs_forward_icmp_v6()
[all …]
/linux-4.1.27/include/linux/netfilter/
Dx_tables.h354 struct nf_hook_ops *xt_hook_link(const struct xt_table *, nf_hookfn *);
355 void xt_hook_unlink(const struct xt_table *, struct nf_hook_ops *);
/linux-4.1.27/security/selinux/
Dhooks.c4849 static unsigned int selinux_ipv4_forward(const struct nf_hook_ops *ops, in selinux_ipv4_forward()
4857 static unsigned int selinux_ipv6_forward(const struct nf_hook_ops *ops, in selinux_ipv6_forward()
4907 static unsigned int selinux_ipv4_output(const struct nf_hook_ops *ops, in selinux_ipv4_output()
5082 static unsigned int selinux_ipv4_postroute(const struct nf_hook_ops *ops, in selinux_ipv4_postroute()
5090 static unsigned int selinux_ipv6_postroute(const struct nf_hook_ops *ops, in selinux_ipv6_postroute()
6112 static struct nf_hook_ops selinux_nf_ops[] = {