Searched refs:par (Results 1 - 25 of 126) sorted by relevance

123456

/net/netfilter/
H A Dxt_connlabel.c22 connlabel_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
24 const struct xt_connlabel_mtinfo *info = par->matchinfo;
39 static int connlabel_mt_check(const struct xt_mtchk_param *par) argument
43 struct xt_connlabel_mtinfo *info = par->matchinfo;
55 ret = nf_ct_l3proto_try_module_get(par->family);
58 par->family);
62 par->net->ct.labels_used++;
64 if (words > par->net->ct.label_words)
65 par->net->ct.label_words = words;
70 static void connlabel_mt_destroy(const struct xt_mtdtor_param *par) argument
[all...]
H A Dxt_CONNSECMARK.c67 connsecmark_tg(struct sk_buff *skb, const struct xt_action_param *par) argument
69 const struct xt_connsecmark_target_info *info = par->targinfo;
87 static int connsecmark_tg_check(const struct xt_tgchk_param *par) argument
89 const struct xt_connsecmark_target_info *info = par->targinfo;
92 if (strcmp(par->table, "mangle") != 0 &&
93 strcmp(par->table, "security") != 0) {
95 "or \'security\' tables, not \'%s\'.\n", par->table);
109 ret = nf_ct_l3proto_try_module_get(par->family);
112 par->family);
116 static void connsecmark_tg_destroy(const struct xt_tgdtor_param *par) argument
[all...]
H A Dxt_NFLOG.c25 nflog_tg(struct sk_buff *skb, const struct xt_action_param *par) argument
27 const struct xt_nflog_info *info = par->targinfo;
29 struct net *net = dev_net(par->in ? par->in : par->out);
36 nfulnl_log_packet(net, par->family, par->hooknum, skb, par->in,
37 par->out, &li, info->prefix);
41 static int nflog_tg_check(const struct xt_tgchk_param *par) argument
[all...]
H A Dxt_devgroup.c22 static bool devgroup_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
24 const struct xt_devgroup_info *info = par->matchinfo;
27 (((info->src_group ^ par->in->group) & info->src_mask ? 1 : 0) ^
32 (((info->dst_group ^ par->out->group) & info->dst_mask ? 1 : 0) ^
39 static int devgroup_mt_checkentry(const struct xt_mtchk_param *par) argument
41 const struct xt_devgroup_info *info = par->matchinfo;
48 par->hook_mask & ~((1 << NF_INET_PRE_ROUTING) |
54 par->hook_mask & ~((1 << NF_INET_FORWARD) |
H A Dxt_connmark.c40 connmark_tg(struct sk_buff *skb, const struct xt_action_param *par) argument
42 const struct xt_connmark_tginfo1 *info = par->targinfo;
77 static int connmark_tg_check(const struct xt_tgchk_param *par) argument
81 ret = nf_ct_l3proto_try_module_get(par->family);
84 par->family);
88 static void connmark_tg_destroy(const struct xt_tgdtor_param *par) argument
90 nf_ct_l3proto_module_put(par->family);
94 connmark_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
96 const struct xt_connmark_mtinfo1 *info = par->matchinfo;
107 static int connmark_mt_check(const struct xt_mtchk_param *par) argument
118 connmark_mt_destroy(const struct xt_mtdtor_param *par) argument
[all...]
H A Dxt_state.c24 state_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
26 const struct xt_state_info *sinfo = par->matchinfo;
42 static int state_mt_check(const struct xt_mtchk_param *par) argument
46 ret = nf_ct_l3proto_try_module_get(par->family);
49 par->family);
53 static void state_mt_destroy(const struct xt_mtdtor_param *par) argument
55 nf_ct_l3proto_module_put(par->family);
H A Dxt_CT.c37 const struct xt_action_param *par)
39 const struct xt_ct_target_info *info = par->targinfo;
46 const struct xt_action_param *par)
48 const struct xt_ct_target_info_v1 *info = par->targinfo;
54 static u8 xt_ct_find_proto(const struct xt_tgchk_param *par) argument
56 if (par->family == NFPROTO_IPV4) {
57 const struct ipt_entry *e = par->entryinfo;
62 } else if (par->family == NFPROTO_IPV6) {
63 const struct ip6t_entry *e = par->entryinfo;
74 const struct xt_tgchk_param *par)
36 xt_ct_target_v0(struct sk_buff *skb, const struct xt_action_param *par) argument
45 xt_ct_target_v1(struct sk_buff *skb, const struct xt_action_param *par) argument
73 xt_ct_set_helper(struct nf_conn *ct, const char *helper_name, const struct xt_tgchk_param *par) argument
116 xt_ct_set_timeout(struct nf_conn *ct, const struct xt_tgchk_param *par, const char *timeout_name) argument
181 xt_ct_tg_check(const struct xt_tgchk_param *par, struct xt_ct_target_info_v1 *info) argument
245 xt_ct_tg_check_v0(const struct xt_tgchk_param *par) argument
270 xt_ct_tg_check_v1(const struct xt_tgchk_param *par) argument
280 xt_ct_tg_check_v2(const struct xt_tgchk_param *par) argument
308 xt_ct_tg_destroy(const struct xt_tgdtor_param *par, struct xt_ct_target_info_v1 *info) argument
326 xt_ct_tg_destroy_v0(const struct xt_tgdtor_param *par) argument
341 xt_ct_tg_destroy_v1(const struct xt_tgdtor_param *par) argument
382 notrack_tg(struct sk_buff *skb, const struct xt_action_param *par) argument
395 notrack_chk(const struct xt_tgchk_param *par) argument
[all...]
H A Dxt_cpu.c28 static int cpu_mt_check(const struct xt_mtchk_param *par) argument
30 const struct xt_cpu_info *info = par->matchinfo;
37 static bool cpu_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
39 const struct xt_cpu_info *info = par->matchinfo;
H A Dxt_helper.c27 helper_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
29 const struct xt_helper_info *info = par->matchinfo;
57 static int helper_mt_check(const struct xt_mtchk_param *par) argument
59 struct xt_helper_info *info = par->matchinfo;
62 ret = nf_ct_l3proto_try_module_get(par->family);
65 par->family);
72 static void helper_mt_destroy(const struct xt_mtdtor_param *par) argument
74 nf_ct_l3proto_module_put(par->family);
H A Dxt_bpf.c23 static int bpf_mt_check(const struct xt_mtchk_param *par) argument
25 struct xt_bpf_info *info = par->matchinfo;
38 static bool bpf_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
40 const struct xt_bpf_info *info = par->matchinfo;
45 static void bpf_mt_destroy(const struct xt_mtdtor_param *par) argument
47 const struct xt_bpf_info *info = par->matchinfo;
H A Dxt_nfacct.c22 static bool nfacct_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
24 const struct xt_nfacct_match_info *info = par->targinfo;
32 nfacct_mt_checkentry(const struct xt_mtchk_param *par) argument
34 struct xt_nfacct_match_info *info = par->matchinfo;
48 nfacct_mt_destroy(const struct xt_mtdtor_param *par) argument
50 const struct xt_nfacct_match_info *info = par->matchinfo;
H A Dxt_ecn.c30 static bool match_tcp(const struct sk_buff *skb, struct xt_action_param *par) argument
32 const struct xt_ecn_info *einfo = par->matchinfo;
39 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
73 static bool ecn_mt4(const struct sk_buff *skb, struct xt_action_param *par) argument
75 const struct xt_ecn_info *info = par->matchinfo;
81 !match_tcp(skb, par))
87 static int ecn_mt_check4(const struct xt_mtchk_param *par) argument
89 const struct xt_ecn_info *info = par->matchinfo;
90 const struct ipt_ip *ip = par->entryinfo;
115 static bool ecn_mt6(const struct sk_buff *skb, struct xt_action_param *par) argument
129 ecn_mt_check6(const struct xt_mtchk_param *par) argument
[all...]
H A Dxt_esp.c39 static bool esp_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
43 const struct xt_esp *espinfo = par->matchinfo;
46 if (par->fragoff != 0)
49 eh = skb_header_pointer(skb, par->thoff, sizeof(_esp), &_esp);
55 par->hotdrop = true;
63 static int esp_mt_check(const struct xt_mtchk_param *par) argument
65 const struct xt_esp *espinfo = par->matchinfo;
H A Dxt_dscp.c28 dscp_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
30 const struct xt_dscp_info *info = par->matchinfo;
37 dscp_mt6(const struct sk_buff *skb, struct xt_action_param *par) argument
39 const struct xt_dscp_info *info = par->matchinfo;
45 static int dscp_mt_check(const struct xt_mtchk_param *par) argument
47 const struct xt_dscp_info *info = par->matchinfo;
57 static bool tos_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
59 const struct xt_tos_match_info *info = par->matchinfo;
61 if (par->family == NFPROTO_IPV4)
H A Dxt_NFQUEUE.c34 nfqueue_tg(struct sk_buff *skb, const struct xt_action_param *par) argument
36 const struct xt_NFQ_info *tinfo = par->targinfo;
80 nfqueue_hash(const struct sk_buff *skb, const struct xt_action_param *par) argument
82 const struct xt_NFQ_info_v1 *info = par->targinfo;
85 if (par->family == NFPROTO_IPV4)
88 else if (par->family == NFPROTO_IPV6)
96 nfqueue_tg_v1(struct sk_buff *skb, const struct xt_action_param *par) argument
98 const struct xt_NFQ_info_v1 *info = par->targinfo;
102 queue = nfqueue_hash(skb, par);
108 nfqueue_tg_v2(struct sk_buff *skb, const struct xt_action_param *par) argument
118 nfqueue_tg_check(const struct xt_tgchk_param *par) argument
146 nfqueue_tg_v3(struct sk_buff *skb, const struct xt_action_param *par) argument
[all...]
H A Dxt_tcpudp.c65 static bool tcp_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
69 const struct xt_tcp *tcpinfo = par->matchinfo;
71 if (par->fragoff != 0) {
78 if (par->fragoff == 1) {
80 par->hotdrop = true;
88 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
93 par->hotdrop = true;
111 par->hotdrop = true;
114 if (!tcp_find_option(tcpinfo->option, skb, par->thoff,
117 &par
123 tcp_mt_check(const struct xt_mtchk_param *par) argument
131 udp_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
158 udp_mt_check(const struct xt_mtchk_param *par) argument
[all...]
H A Dxt_CHECKSUM.c26 checksum_tg(struct sk_buff *skb, const struct xt_action_param *par) argument
34 static int checksum_tg_check(const struct xt_tgchk_param *par) argument
36 const struct xt_CHECKSUM_info *einfo = par->targinfo;
H A Dxt_REDIRECT.c33 redirect_tg6(struct sk_buff *skb, const struct xt_action_param *par) argument
35 const struct nf_nat_range *range = par->targinfo;
42 if (par->hooknum == NF_INET_LOCAL_OUT)
73 static int redirect_tg6_checkentry(const struct xt_tgchk_param *par) argument
75 const struct nf_nat_range *range = par->targinfo;
83 static int redirect_tg4_check(const struct xt_tgchk_param *par) argument
85 const struct nf_nat_ipv4_multi_range_compat *mr = par->targinfo;
99 redirect_tg4(struct sk_buff *skb, const struct xt_action_param *par) argument
104 const struct nf_nat_ipv4_multi_range_compat *mr = par->targinfo;
107 NF_CT_ASSERT(par
[all...]
H A Dxt_set.c32 const struct xt_action_param *par,
35 if (ip_set_test(index, skb, par, opt))
52 set_match_v0(const struct sk_buff *skb, struct xt_action_param *par) argument
54 const struct xt_set_info_match_v0 *info = par->matchinfo;
55 ADT_OPT(opt, par->family, info->match_set.u.compat.dim,
58 return match_set(info->match_set.index, skb, par, &opt,
79 set_match_v0_checkentry(const struct xt_mtchk_param *par) argument
81 struct xt_set_info_match_v0 *info = par->matchinfo;
105 set_match_v0_destroy(const struct xt_mtdtor_param *par) argument
107 struct xt_set_info_match_v0 *info = par
31 match_set(ip_set_id_t index, const struct sk_buff *skb, const struct xt_action_param *par, struct ip_set_adt_opt *opt, int inv) argument
113 set_target_v0(struct sk_buff *skb, const struct xt_action_param *par) argument
130 set_target_v0_checkentry(const struct xt_tgchk_param *par) argument
173 set_target_v0_destroy(const struct xt_tgdtor_param *par) argument
186 set_match_v1(const struct sk_buff *skb, struct xt_action_param *par) argument
200 set_match_v1_checkentry(const struct xt_mtchk_param *par) argument
223 set_match_v1_destroy(const struct xt_mtdtor_param *par) argument
231 set_target_v1(struct sk_buff *skb, const struct xt_action_param *par) argument
248 set_target_v1_checkentry(const struct xt_tgchk_param *par) argument
287 set_target_v1_destroy(const struct xt_tgdtor_param *par) argument
300 set_target_v2(struct sk_buff *skb, const struct xt_action_param *par) argument
344 set_match_v3(const struct sk_buff *skb, struct xt_action_param *par) argument
[all...]
/net/bridge/netfilter/
H A Debt_nflog.c23 ebt_nflog_tg(struct sk_buff *skb, const struct xt_action_param *par) argument
25 const struct ebt_nflog_info *info = par->targinfo;
27 struct net *net = dev_net(par->in ? par->in : par->out);
34 nf_log_packet(net, PF_BRIDGE, par->hooknum, skb, par->in,
35 par->out, &li, "%s", info->prefix);
39 static int ebt_nflog_tg_check(const struct xt_tgchk_param *par) argument
41 struct ebt_nflog_info *info = par
[all...]
H A Debt_redirect.c19 ebt_redirect_tg(struct sk_buff *skb, const struct xt_action_param *par) argument
21 const struct ebt_redirect_info *info = par->targinfo;
26 if (par->hooknum != NF_BR_BROUTING)
29 br_port_get_rcu(par->in)->br->dev->dev_addr, ETH_ALEN);
31 memcpy(eth_hdr(skb)->h_dest, par->in->dev_addr, ETH_ALEN);
36 static int ebt_redirect_tg_check(const struct xt_tgchk_param *par) argument
38 const struct ebt_redirect_info *info = par->targinfo;
44 hook_mask = par->hook_mask & ~(1 << NF_BR_NUMHOOKS);
45 if ((strcmp(par->table, "nat") != 0 ||
47 (strcmp(par
[all...]
H A Debt_dnat.c18 ebt_dnat_tg(struct sk_buff *skb, const struct xt_action_param *par) argument
20 const struct ebt_nat_info *info = par->targinfo;
29 static int ebt_dnat_tg_check(const struct xt_tgchk_param *par) argument
31 const struct ebt_nat_info *info = par->targinfo;
37 hook_mask = par->hook_mask & ~(1 << NF_BR_NUMHOOKS);
38 if ((strcmp(par->table, "nat") != 0 ||
41 (strcmp(par->table, "broute") != 0 ||
H A Debt_pkttype.c16 ebt_pkttype_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
18 const struct ebt_pkttype_info *info = par->matchinfo;
23 static int ebt_pkttype_mt_check(const struct xt_mtchk_param *par) argument
25 const struct ebt_pkttype_info *info = par->matchinfo;
/net/ipv6/netfilter/
H A Dip6t_mh.c35 static bool mh_mt6(const struct sk_buff *skb, struct xt_action_param *par) argument
39 const struct ip6t_mh *mhinfo = par->matchinfo;
42 if (par->fragoff != 0)
45 mh = skb_header_pointer(skb, par->thoff, sizeof(_mh), &_mh);
50 par->hotdrop = true;
57 par->hotdrop = true;
65 static int mh_mt6_check(const struct xt_mtchk_param *par) argument
67 const struct ip6t_mh *mhinfo = par->matchinfo;
/net/ipv4/netfilter/
H A Dipt_ah.c33 static bool ah_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
37 const struct ipt_ah *ahinfo = par->matchinfo;
40 if (par->fragoff != 0)
43 ah = skb_header_pointer(skb, par->thoff, sizeof(_ahdr), &_ahdr);
49 par->hotdrop = true;
58 static int ah_mt_check(const struct xt_mtchk_param *par) argument
60 const struct ipt_ah *ahinfo = par->matchinfo;

Completed in 187 milliseconds

123456