Home
last modified time | relevance | path

Searched refs:l3num (Results 1 – 25 of 38) sorted by relevance

12

/openbmc/linux/net/netfilter/
H A Dnf_conntrack_helper.c47 return (((tuple->src.l3num << 8) | tuple->dst.protonum) ^ in helper_hash()
52 __nf_conntrack_helper_find(const char *name, u16 l3num, u8 protonum) in __nf_conntrack_helper_find() argument
62 if (h->tuple.src.l3num != NFPROTO_UNSPEC && in __nf_conntrack_helper_find()
63 h->tuple.src.l3num != l3num) in __nf_conntrack_helper_find()
81 h = __nf_conntrack_helper_find(name, l3num, protonum); in nf_conntrack_helper_try_module_get()
87 h = __nf_conntrack_helper_find(name, l3num, protonum); in nf_conntrack_helper_try_module_get()
137 h = __nf_conntrack_helper_find(name, l3num, protonum); in nf_nat_helper_try_module_get()
373 (cur->tuple.src.l3num == NFPROTO_UNSPEC || in nf_conntrack_helper_register()
374 cur->tuple.src.l3num == me->tuple.src.l3num) && in nf_conntrack_helper_register()
433 u16 l3num, u16 protonum, const char *name, in nf_ct_helper_init() argument
[all …]
H A Dnf_conntrack_timeout.c65 u8 l3num, u8 l4num, const char *timeout_name) in nf_ct_set_timeout() argument
89 if (timeout->l3num != l3num) { in nf_ct_set_timeout()
93 timeout_name, 3, timeout->l3num); in nf_ct_set_timeout()
H A Dnfnetlink_cttimeout.c103 __u16 l3num; in cttimeout_new_timeout() local
117 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_new_timeout()
136 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout()
170 timeout->timeout.l3num = l3num; in cttimeout_new_timeout()
201 htons(timeout->timeout.l3num)) || in ctnl_timeout_fill_info()
395 u32 seq, u32 type, int event, u16 l3num, in cttimeout_default_fill_info() argument
410 if (nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, htons(l3num)) || in cttimeout_default_fill_info()
440 __u16 l3num; in cttimeout_default_get() local
447 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_default_get()
503 l3num, l4proto, timeouts); in cttimeout_default_get()
H A Dnft_ct.c942 int l3num = ctx->family; in nft_ct_timeout_obj_init() local
951 l3num = ntohs(nla_get_be16(tb[NFTA_CT_TIMEOUT_L3PROTO])); in nft_ct_timeout_obj_init()
975 timeout->l3num = l3num; in nft_ct_timeout_obj_init()
1233 u16 l3num; member
1252 priv->l3num = ctx->family; in nft_ct_expect_obj_init()
1254 priv->l3num = ntohs(nla_get_be16(tb[NFTA_CT_EXPECT_L3PROTO])); in nft_ct_expect_obj_init()
1256 switch (priv->l3num) { in nft_ct_expect_obj_init()
1317 u16 l3num = priv->l3num; in nft_ct_expect_obj_eval() local
1339 if (l3num == NFPROTO_INET) in nft_ct_expect_obj_eval()
1340 l3num = nf_ct_l3num(ct); in nft_ct_expect_obj_eval()
[all …]
H A Dnfnetlink_cthelper.c89 tuple->src.l3num = ntohs(nla_get_be16(tb[NFCTH_TUPLE_L3PROTONUM])); in nfnl_cthelper_parse_tuple()
446 if ((tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_new()
476 htons(helper->tuple.src.l3num))) in nfnl_cthelper_dump_tuple()
655 (tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_get()
715 (tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_del()
H A Dnf_conntrack_ftp.c239 if ((cmd->l3num == PF_INET && data[1] != '1') || in try_eprt()
240 (cmd->l3num == PF_INET6 && data[1] != '2')) { in try_eprt()
441 cmd.l3num = nf_ct_l3num(ct); in help()
487 if ((cmd.l3num == nf_ct_l3num(ct)) && in help()
494 if (cmd.l3num == PF_INET) { in help()
515 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, cmd.l3num, in help()
H A Dxt_HMARK.c49 hmark_addr_mask(int l3num, const __be32 *addr32, const __be32 *mask) in hmark_addr_mask() argument
51 switch (l3num) { in hmark_addr_mask()
92 t->src = hmark_addr_mask(otuple->src.l3num, otuple->src.u3.ip6, in hmark_ct_set_htuple()
94 t->dst = hmark_addr_mask(otuple->src.l3num, rtuple->src.u3.ip6, in hmark_ct_set_htuple()
H A Dnf_conntrack_ovs.c31 if (helper->tuple.src.l3num != NFPROTO_UNSPEC && in nf_ct_helper()
32 helper->tuple.src.l3num != proto) in nf_ct_helper()
H A Dnf_conntrack_netbios_ns.c49 .tuple.src.l3num = NFPROTO_IPV4,
H A Dnf_conntrack_amanda.c183 .tuple.src.l3num = AF_INET,
193 .tuple.src.l3num = AF_INET6,
H A Dnf_conntrack_core.c270 u_int16_t l3num, in nf_ct_get_tuple() argument
281 tuple->src.l3num = l3num; in nf_ct_get_tuple()
282 switch (l3num) { in nf_ct_get_tuple()
299 switch (l3num) { in nf_ct_get_tuple()
420 u_int16_t l3num, in nf_ct_get_tuplepr() argument
426 protoff = get_l4proto(skb, nhoff, l3num, &protonum); in nf_ct_get_tuplepr()
440 inverse->src.l3num = orig->src.l3num; in nf_ct_invert_tuple()
442 switch (orig->src.l3num) { in nf_ct_invert_tuple()
2183 u16 l3num; in __nf_conntrack_update() local
2186 l3num = nf_ct_l3num(ct); in __nf_conntrack_update()
[all …]
H A Dnf_conntrack_expect.c88 u8 l3num; in nf_ct_expect_dst_hash() member
100 combined.l3num = tuple->src.l3num; in nf_ct_expect_dst_hash()
329 exp->tuple.src.l3num = family; in nf_ct_expect_init()
641 expect->tuple.src.l3num, in exp_seq_show()
H A Dnf_conntrack_snmp.c55 .tuple.src.l3num = NFPROTO_IPV4,
H A Dnf_conntrack_proto_gre.c61 return km->tuple.src.l3num == t->src.l3num && in gre_key_cmpfn()
H A Dnf_conntrack_netlink.c119 switch (tuple->src.l3num) { in ctnetlink_dump_tuples_ip()
922 u32 type, u_int8_t l3num,
1326 switch (tuple->src.l3num) { in ctnetlink_parse_tuple_ip()
1448 if (l3num != NFPROTO_IPV4 && l3num != NFPROTO_IPV6) in ctnetlink_parse_tuple_filter()
1450 tuple->src.l3num = l3num; in ctnetlink_parse_tuple_filter()
2946 m.src.l3num = tuple->src.l3num; in ctnetlink_exp_dump_mask()
3030 nat_tuple.src.l3num = nf_ct_l3num(master); in ctnetlink_exp_dump_expect()
3075 exp->tuple.src.l3num, NFNETLINK_V0, 0); in ctnetlink_exp_fill_info()
3121 exp->tuple.src.l3num, NFNETLINK_V0, 0); in ctnetlink_expect_event()
3162 if (l3proto && exp->tuple.src.l3num != l3proto) in ctnetlink_exp_dump_table()
[all …]
H A Dnf_conntrack_bpf.c79 tuple->src.l3num = AF_INET; in bpf_nf_ct_tuple_parse()
86 tuple->src.l3num = AF_INET6; in bpf_nf_ct_tuple_parse()
H A Dnf_conntrack_proto.c281 tuple.src.l3num = PF_INET; in getorigdst()
326 struct nf_conntrack_tuple tuple = { .src.l3num = NFPROTO_IPV6 }; in ipv6_getorigdst()
/openbmc/linux/include/net/netfilter/
H A Dnf_conntrack_tuple.h33 u_int16_t l3num; member
107 switch (t->src.l3num) { in nf_ct_dump_tuple()
132 t1->src.l3num == t2->src.l3num); in __nf_ct_tuple_src_equal()
174 if (t1->src.l3num != t2->src.l3num || in nf_ct_tuple_src_mask_cmp()
H A Dnf_conntrack_timeout.h15 __u16 l3num; member
85 int nf_ct_set_timeout(struct net *net, struct nf_conn *ct, u8 l3num, u8 l4num,
90 u8 l3num, u8 l4num, in nf_ct_set_timeout() argument
H A Dnf_conntrack_helper.h87 u16 l3num, u8 protonum);
90 u16 l3num,
95 u16 l3num, u16 protonum, const char *name,
180 int nf_nat_helper_try_module_get(const char *name, u16 l3num,
H A Dnf_conntrack.h143 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in nf_ct_l3num()
207 u_int16_t l3num, struct net *net,
H A Dnf_tables_offload.h30 __be16 l3num; member
/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_nfct.c55 #define ARG_TUPLE(T) IP_VS_DBG_ADDR((T)->src.l3num, &(T)->src.u3), \
57 IP_VS_DBG_ADDR((T)->src.l3num, &(T)->dst.u3), \
158 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback()
255 tuple.src.l3num = cp->af; in ip_vs_conn_drop_conntrack()
/openbmc/linux/net/ipv4/netfilter/
H A Dnf_nat_pptp.c66 t.src.l3num = AF_INET; in pptp_nat_expected()
75 t.src.l3num = AF_INET; in pptp_nat_expected()
H A Dnf_nat_snmp_basic_main.c210 .tuple.src.l3num = AF_INET,

12