/net/netfilter/ |
H A D | xt_connlabel.c | 22 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 D | xt_LOG.c | 32 log_tg(struct sk_buff *skb, const struct xt_action_param *par) argument 34 const struct xt_log_info *loginfo = par->targinfo; 36 struct net *net = dev_net(par->in ? par->in : par->out); 42 nf_log_packet(net, par->family, par->hooknum, skb, par->in, par->out, 47 static int log_tg_check(const struct xt_tgchk_param *par) argument 67 log_tg_destroy(const struct xt_tgdtor_param *par) argument [all...] |
H A D | xt_CONNSECMARK.c | 67 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 D | xt_NFLOG.c | 25 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 D | xt_devgroup.c | 22 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 D | xt_connmark.c | 39 connmark_tg(struct sk_buff *skb, const struct xt_action_param *par) argument 41 const struct xt_connmark_tginfo1 *info = par->targinfo; 76 static int connmark_tg_check(const struct xt_tgchk_param *par) argument 80 ret = nf_ct_l3proto_try_module_get(par->family); 83 par->family); 87 static void connmark_tg_destroy(const struct xt_tgdtor_param *par) argument 89 nf_ct_l3proto_module_put(par->family); 93 connmark_mt(const struct sk_buff *skb, struct xt_action_param *par) argument 95 const struct xt_connmark_mtinfo1 *info = par->matchinfo; 106 static int connmark_mt_check(const struct xt_mtchk_param *par) argument 117 connmark_mt_destroy(const struct xt_mtdtor_param *par) argument [all...] |
H A D | xt_state.c | 24 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 D | xt_CT.c | 40 const struct xt_action_param *par) 42 const struct xt_ct_target_info *info = par->targinfo; 49 const struct xt_action_param *par) 51 const struct xt_ct_target_info_v1 *info = par->targinfo; 57 static u8 xt_ct_find_proto(const struct xt_tgchk_param *par) argument 59 if (par->family == NFPROTO_IPV4) { 60 const struct ipt_entry *e = par->entryinfo; 65 } else if (par->family == NFPROTO_IPV6) { 66 const struct ip6t_entry *e = par->entryinfo; 77 const struct xt_tgchk_param *par) 39 xt_ct_target_v0(struct sk_buff *skb, const struct xt_action_param *par) argument 48 xt_ct_target_v1(struct sk_buff *skb, const struct xt_action_param *par) argument 76 xt_ct_set_helper(struct nf_conn *ct, const char *helper_name, const struct xt_tgchk_param *par) argument 119 xt_ct_set_timeout(struct nf_conn *ct, const struct xt_tgchk_param *par, const char *timeout_name) argument 184 xt_ct_tg_check(const struct xt_tgchk_param *par, struct xt_ct_target_info_v1 *info) argument 244 xt_ct_tg_check_v0(const struct xt_tgchk_param *par) argument 269 xt_ct_tg_check_v1(const struct xt_tgchk_param *par) argument 279 xt_ct_tg_check_v2(const struct xt_tgchk_param *par) argument 307 xt_ct_tg_destroy(const struct xt_tgdtor_param *par, struct xt_ct_target_info_v1 *info) argument 325 xt_ct_tg_destroy_v0(const struct xt_tgdtor_param *par) argument 340 xt_ct_tg_destroy_v1(const struct xt_tgdtor_param *par) argument 381 notrack_tg(struct sk_buff *skb, const struct xt_action_param *par) argument 394 notrack_chk(const struct xt_tgchk_param *par) argument [all...] |
H A D | xt_cpu.c | 28 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 D | xt_helper.c | 27 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 D | xt_bpf.c | 23 static int bpf_mt_check(const struct xt_mtchk_param *par) argument 25 struct xt_bpf_info *info = par->matchinfo; 39 static bool bpf_mt(const struct sk_buff *skb, struct xt_action_param *par) argument 41 const struct xt_bpf_info *info = par->matchinfo; 46 static void bpf_mt_destroy(const struct xt_mtdtor_param *par) argument 48 const struct xt_bpf_info *info = par->matchinfo;
|
H A D | xt_nfacct.c | 22 static bool nfacct_mt(const struct sk_buff *skb, struct xt_action_param *par) argument 25 const struct xt_nfacct_match_info *info = par->targinfo; 35 nfacct_mt_checkentry(const struct xt_mtchk_param *par) argument 37 struct xt_nfacct_match_info *info = par->matchinfo; 51 nfacct_mt_destroy(const struct xt_mtdtor_param *par) argument 53 const struct xt_nfacct_match_info *info = par->matchinfo;
|
H A D | xt_set.c | 32 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; 84 index = ip_set_nfnl_get_byindex(par->net, info->match_set.index); 93 ip_set_nfnl_put(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 104 set_match_v0_destroy(const struct xt_mtdtor_param *par) argument 114 set_match_v1(const struct sk_buff *skb, struct xt_action_param *par) argument 128 set_match_v1_checkentry(const struct xt_mtchk_param *par) argument 150 set_match_v1_destroy(const struct xt_mtdtor_param *par) argument 178 set_match_v3(const struct sk_buff *skb, struct xt_action_param *par) argument 206 set_target_v0(struct sk_buff *skb, const struct xt_action_param *par) argument 223 set_target_v0_checkentry(const struct xt_tgchk_param *par) argument 265 set_target_v0_destroy(const struct xt_tgdtor_param *par) argument 278 set_target_v1(struct sk_buff *skb, const struct xt_action_param *par) argument 295 set_target_v1_checkentry(const struct xt_tgchk_param *par) argument 333 set_target_v1_destroy(const struct xt_tgdtor_param *par) argument 346 set_target_v2(struct sk_buff *skb, const struct xt_action_param *par) argument 372 set_target_v3(struct sk_buff *skb, const struct xt_action_param *par) argument 415 set_target_v3_checkentry(const struct xt_tgchk_param *par) argument 490 set_target_v3_destroy(const struct xt_tgdtor_param *par) argument [all...] |
H A D | xt_NFQUEUE.c | 31 nfqueue_tg(struct sk_buff *skb, const struct xt_action_param *par) argument 33 const struct xt_NFQ_info *tinfo = par->targinfo; 39 nfqueue_tg_v1(struct sk_buff *skb, const struct xt_action_param *par) argument 41 const struct xt_NFQ_info_v1 *info = par->targinfo; 46 par->family, jhash_initval); 52 nfqueue_tg_v2(struct sk_buff *skb, const struct xt_action_param *par) argument 54 const struct xt_NFQ_info_v2 *info = par->targinfo; 55 unsigned int ret = nfqueue_tg_v1(skb, par); 62 static int nfqueue_tg_check(const struct xt_tgchk_param *par) argument 64 const struct xt_NFQ_info_v3 *info = par 88 nfqueue_tg_v3(struct sk_buff *skb, const struct xt_action_param *par) argument [all...] |
H A D | xt_ecn.c | 30 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 D | xt_esp.c | 39 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 D | xt_ipcomp.c | 42 static bool comp_mt(const struct sk_buff *skb, struct xt_action_param *par) argument 46 const struct xt_ipcomp *compinfo = par->matchinfo; 49 if (par->fragoff != 0) 52 chdr = skb_header_pointer(skb, par->thoff, sizeof(_comphdr), &_comphdr); 58 par->hotdrop = true; 67 static int comp_mt_check(const struct xt_mtchk_param *par) argument 69 const struct xt_ipcomp *compinfo = par->matchinfo;
|
H A D | xt_dscp.c | 28 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)
|
/net/bridge/netfilter/ |
H A D | ebt_nflog.c | 23 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 D | ebt_redirect.c | 19 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); 31 ether_addr_copy(eth_hdr(skb)->h_dest, par->in->dev_addr); 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 D | ebt_dnat.c | 18 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 D | ebt_pkttype.c | 16 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 D | ip6t_REJECT.c | 40 reject_tg6(struct sk_buff *skb, const struct xt_action_param *par) argument 42 const struct ip6t_reject_info *reject = par->targinfo; 43 struct net *net = dev_net((par->in != NULL) ? par->in : par->out); 48 nf_send_unreach6(net, skb, ICMPV6_NOROUTE, par->hooknum); 51 nf_send_unreach6(net, skb, ICMPV6_ADM_PROHIBITED, par->hooknum); 54 nf_send_unreach6(net, skb, ICMPV6_NOT_NEIGHBOUR, par->hooknum); 57 nf_send_unreach6(net, skb, ICMPV6_ADDR_UNREACH, par->hooknum); 60 nf_send_unreach6(net, skb, ICMPV6_PORT_UNREACH, par 76 reject_tg6_check(const struct xt_tgchk_param *par) argument [all...] |
H A D | ip6t_mh.c | 35 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 D | ipt_ah.c | 33 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;
|