Home
last modified time | relevance | path

Searched refs:zone (Results 1 – 20 of 20) sorted by relevance

/net/netfilter/
Dnf_conncount.c44 struct nf_conntrack_zone zone; member
105 found = nf_conntrack_find_get(net, &conn->zone, &conn->tuple); in find_or_evict()
128 const struct nf_conntrack_zone *zone) in __nf_conncount_add() argument
145 nf_ct_zone_id(&conn->zone, conn->zone.dir) == in __nf_conncount_add()
146 nf_ct_zone_id(zone, zone->dir)) in __nf_conncount_add()
157 nf_ct_zone_equal(found_ct, zone, zone->dir)) { in __nf_conncount_add()
188 conn->zone = *zone; in __nf_conncount_add()
199 const struct nf_conntrack_zone *zone) in nf_conncount_add() argument
205 ret = __nf_conncount_add(net, list, tuple, zone); in nf_conncount_add()
306 const struct nf_conntrack_zone *zone) in insert_tree() argument
[all …]
Dxt_CT.c142 struct nf_conntrack_zone zone; in xt_ct_tg_check() local
153 if (info->zone || info->flags & (XT_CT_ZONE_DIR_ORIG | in xt_ct_tg_check()
163 memset(&zone, 0, sizeof(zone)); in xt_ct_tg_check()
164 zone.id = info->zone; in xt_ct_tg_check()
165 zone.dir = xt_ct_flags_to_dir(info); in xt_ct_tg_check()
167 zone.flags |= NF_CT_FLAG_MARK; in xt_ct_tg_check()
169 ct = nf_ct_tmpl_alloc(par->net, &zone, GFP_KERNEL); in xt_ct_tg_check()
225 .zone = info->zone, in xt_ct_tg_check_v0()
288 .zone = info->zone, in xt_ct_tg_destroy_v0()
Dnf_conntrack_netlink.c148 const struct nf_conntrack_zone *zone, int dir) in ctnetlink_dump_zone_id() argument
150 if (zone->id == NF_CT_DEFAULT_ZONE_ID || zone->dir != dir) in ctnetlink_dump_zone_id()
152 if (nla_put_be16(skb, attrtype, htons(zone->id))) in ctnetlink_dump_zone_id()
565 const struct nf_conntrack_zone *zone; in ctnetlink_fill_info() local
578 zone = nf_ct_zone(ct); in ctnetlink_fill_info()
585 if (ctnetlink_dump_zone_id(skb, CTA_TUPLE_ZONE, zone, in ctnetlink_fill_info()
595 if (ctnetlink_dump_zone_id(skb, CTA_TUPLE_ZONE, zone, in ctnetlink_fill_info()
600 if (ctnetlink_dump_zone_id(skb, CTA_ZONE, zone, in ctnetlink_fill_info()
717 const struct nf_conntrack_zone *zone; in ctnetlink_conntrack_event() local
754 zone = nf_ct_zone(ct); in ctnetlink_conntrack_event()
[all …]
Dnf_conntrack_core.c218 unsigned int zone; in hash_conntrack_raw() member
231 combined.zone = zoneid; in hash_conntrack_raw()
580 const struct nf_conntrack_zone *zone, in nf_ct_tmpl_alloc() argument
604 nf_ct_zone_add(tmpl, zone); in nf_ct_tmpl_alloc()
733 const struct nf_conntrack_zone *zone, in nf_ct_key_equal() argument
742 nf_ct_zone_equal(ct, zone, NF_CT_DIRECTION(h)) && in nf_ct_key_equal()
777 ____nf_conntrack_find(struct net *net, const struct nf_conntrack_zone *zone, in ____nf_conntrack_find() argument
798 if (nf_ct_key_equal(h, tuple, zone, net)) in ____nf_conntrack_find()
816 __nf_conntrack_find_get(struct net *net, const struct nf_conntrack_zone *zone, in __nf_conntrack_find_get() argument
824 h = ____nf_conntrack_find(net, zone, tuple, hash); in __nf_conntrack_find_get()
[all …]
Dxt_connlimit.c36 const struct nf_conntrack_zone *zone = &nf_ct_zone_dflt; in connlimit_mt() local
45 zone = nf_ct_zone(ct); in connlimit_mt()
62 key[4] = zone->id; in connlimit_mt()
69 key[1] = zone->id; in connlimit_mt()
73 zone); in connlimit_mt()
Dnf_nat_core.c154 const struct nf_conntrack_zone *zone, in hash_by_src() argument
162 u32 zone; in hash_by_src() member
175 if (zone->dir == NF_CT_DEFAULT_ZONE_DIR) in hash_by_src()
176 combined.zone = zone->id; in hash_by_src()
277 const struct nf_conntrack_zone *zone, in find_appropriate_src() argument
282 unsigned int h = hash_by_src(net, zone, tuple); in find_appropriate_src()
288 nf_ct_zone_equal(ct, zone, IP_CT_DIR_ORIGINAL)) { in find_appropriate_src()
308 find_best_ips_proto(const struct nf_conntrack_zone *zone, in find_best_ips_proto() argument
349 0 : (__force u32)tuple->dst.u3.all[max] ^ zone->id); in find_best_ips_proto()
510 const struct nf_conntrack_zone *zone; in get_unique_tuple() local
[all …]
Dnf_conntrack_expect.c111 const struct nf_conntrack_zone *zone, in nf_ct_exp_equal() argument
116 nf_ct_zone_equal_any(i->master, zone); in nf_ct_exp_equal()
132 const struct nf_conntrack_zone *zone, in __nf_ct_expect_find() argument
144 if (nf_ct_exp_equal(tuple, i, zone, net)) in __nf_ct_expect_find()
154 const struct nf_conntrack_zone *zone, in nf_ct_expect_find_get() argument
160 i = __nf_ct_expect_find(net, zone, tuple); in nf_ct_expect_find_get()
173 const struct nf_conntrack_zone *zone, in nf_ct_find_expectation() argument
186 nf_ct_exp_equal(tuple, i, zone, net)) { in nf_ct_find_expectation()
Dnft_ct.c168 const struct nf_conntrack_zone *zone = nf_ct_zone(ct); in nft_ct_get_eval() local
172 zoneid = nf_ct_zone_id(zone, priv->dir); in nft_ct_get_eval()
174 zoneid = zone->id; in nft_ct_get_eval()
236 struct nf_conntrack_zone zone = { .dir = NF_CT_DEFAULT_ZONE_DIR }; in nft_ct_set_zone_eval() local
247 zone.id = value; in nft_ct_set_zone_eval()
251 zone.dir = NF_CT_ZONE_DIR_ORIG; in nft_ct_set_zone_eval()
254 zone.dir = NF_CT_ZONE_DIR_REPL; in nft_ct_set_zone_eval()
264 nf_ct_zone_add(ct, &zone); in nft_ct_set_zone_eval()
269 ct = nf_ct_tmpl_alloc(nft_net(pkt), &zone, GFP_ATOMIC); in nft_ct_set_zone_eval()
366 struct nf_conntrack_zone zone = { .id = 0 }; in nft_ct_tmpl_alloc_pcpu() local
[all …]
Dnft_connlimit.c27 const struct nf_conntrack_zone *zone = &nf_ct_zone_dflt; in nft_connlimit_do_eval() local
39 zone = nf_ct_zone(ct); in nft_connlimit_do_eval()
46 if (nf_conncount_add(nft_net(pkt), priv->list, tuple_ptr, zone)) { in nft_connlimit_do_eval()
Dnf_conntrack_proto_icmp.c113 const struct nf_conntrack_zone *zone; in nf_conntrack_inet_error() local
121 zone = nf_ct_zone_tmpl(tmpl, skb, &tmp); in nf_conntrack_inet_error()
133 h = nf_conntrack_find_get(state->net, zone, &innertuple); in nf_conntrack_inet_error()
Dnf_conntrack_pptp.c153 const struct nf_conntrack_zone *zone; in destroy_sibling_or_exp() local
160 zone = nf_ct_zone(ct); in destroy_sibling_or_exp()
161 h = nf_conntrack_find_get(net, zone, t); in destroy_sibling_or_exp()
171 exp = nf_ct_expect_find_get(net, zone, t); in destroy_sibling_or_exp()
Dnf_conntrack_standalone.c200 const struct nf_conntrack_zone *zone = nf_ct_zone(ct); in ct_show_zone() local
202 if (zone->dir != dir) in ct_show_zone()
204 switch (zone->dir) { in ct_show_zone()
206 seq_printf(s, "zone=%u ", zone->id); in ct_show_zone()
209 seq_printf(s, "zone-orig=%u ", zone->id); in ct_show_zone()
212 seq_printf(s, "zone-reply=%u ", zone->id); in ct_show_zone()
/net/sched/
Dact_connmark.c38 struct nf_conntrack_zone zone; in tcf_connmark_act() local
75 zone.id = ca->zone; in tcf_connmark_act()
76 zone.dir = NF_CT_DEFAULT_ZONE_DIR; in tcf_connmark_act()
78 thash = nf_conntrack_find_get(ca->net, &zone, &tuple); in tcf_connmark_act()
140 ci->zone = parm->zone; in tcf_connmark_init()
158 ci->zone = parm->zone; in tcf_connmark_init()
185 opt.zone = ci->zone; in tcf_connmark_dump()
Dact_ct.c47 u16 zone; member
54 .key_offset = offsetof(struct tcf_ct_flow_table, zone),
55 .key_len = sizeof_field(struct tcf_ct_flow_table, zone),
285 ct_ft = rhashtable_lookup_fast(&zones_ht, &params->zone, zones_params); in tcf_ct_flow_table_get()
294 ct_ft->zone = params->zone; in tcf_ct_flow_table_get()
688 u8 family, u16 zone, bool *defrag) in tcf_ct_handle_fragments() argument
711 enum ip_defrag_users user = IP_DEFRAG_CONNTRACK_IN + zone; in tcf_ct_handle_fragments()
726 enum ip6_defrag_users user = IP6_DEFRAG_CONNTRACK_IN + zone; in tcf_ct_handle_fragments()
988 err = tcf_ct_handle_fragments(net, skb, family, p->zone, &defrag); in tcf_ct_act()
1001 cached = tcf_ct_skb_nfct_cached(net, skb, p->zone, force); in tcf_ct_act()
[all …]
Dact_ctinfo.c85 struct nf_conntrack_zone zone; in tcf_ctinfo_act() local
123 zone.id = cp->zone; in tcf_ctinfo_act()
124 zone.dir = NF_CT_DEFAULT_ZONE_DIR; in tcf_ctinfo_act()
126 thash = nf_conntrack_find_get(cp->net, &zone, &tuple); in tcf_ctinfo_act()
245 cp_new->zone = tb[TCA_CTINFO_ZONE] ? in tcf_ctinfo_init()
306 if (nla_put_u16(skb, TCA_CTINFO_ZONE, cp->zone)) in tcf_ctinfo_dump()
Dcls_flower.c314 u16 zone = tc_skb_cb(skb)->zone; in fl_classify() local
332 post_ct, zone); in fl_classify()
Dcls_api.c1631 ext->zone = cb->zone; in tcf_classify()
3677 entry->ct.zone = tcf_ct_zone(act); in tc_setup_flow_action()
/net/openvswitch/
Dconntrack.c59 struct nf_conntrack_zone zone; member
86 u16 zone; member
190 const struct nf_conntrack_zone *zone, in __ovs_ct_update_key() argument
194 key->ct_zone = zone->id; in __ovs_ct_update_key()
238 const struct nf_conntrack_zone *zone = &nf_ct_zone_dflt; in ovs_ct_update_key() local
262 zone = nf_ct_zone(ct); in ovs_ct_update_key()
266 zone = &info->zone; in ovs_ct_update_key()
268 __ovs_ct_update_key(key, state, zone, ct); in ovs_ct_update_key()
498 u16 zone, struct sk_buff *skb) in handle_fragments() argument
504 enum ip_defrag_users user = IP_DEFRAG_CONNTRACK_IN + zone; in handle_fragments()
[all …]
Dflow.c864 u16 zone = 0; in ovs_flow_key_extract() local
905 zone = post_ct ? tc_ext->zone : 0; in ovs_flow_key_extract()
918 key->ct_zone = zone; in ovs_flow_key_extract()
/net/core/
Dflow_dissector.c241 size_t mapsize, bool post_ct, u16 zone) in skb_flow_dissect_ct() argument
263 key->ct_zone = zone; in skb_flow_dissect_ct()
270 key->ct_zone = ct->zone.id; in skb_flow_dissect_ct()