Home
last modified time | relevance | path

Searched refs:l3proto (Results 1 – 24 of 24) sorted by relevance

/linux-3.4.99/net/netfilter/
Dnf_conntrack_proto.c65 __nf_ct_l4proto_find(u_int16_t l3proto, u_int8_t l4proto) in __nf_ct_l4proto_find() argument
67 if (unlikely(l3proto >= AF_MAX || nf_ct_protos[l3proto] == NULL)) in __nf_ct_l4proto_find()
70 return rcu_dereference(nf_ct_protos[l3proto][l4proto]); in __nf_ct_l4proto_find()
77 nf_ct_l3proto_find_get(u_int16_t l3proto) in nf_ct_l3proto_find_get() argument
82 p = __nf_ct_l3proto_find(l3proto); in nf_ct_l3proto_find_get()
98 nf_ct_l3proto_try_module_get(unsigned short l3proto) in nf_ct_l3proto_try_module_get() argument
103 retry: p = nf_ct_l3proto_find_get(l3proto); in nf_ct_l3proto_try_module_get()
105 ret = request_module("nf_conntrack-%d", l3proto); in nf_ct_l3proto_try_module_get()
116 void nf_ct_l3proto_module_put(unsigned short l3proto) in nf_ct_l3proto_module_put() argument
124 p = __nf_ct_l3proto_find(l3proto); in nf_ct_l3proto_module_put()
[all …]
Dnf_conntrack_standalone.c40 const struct nf_conntrack_l3proto *l3proto, in print_tuple() argument
43 return l3proto->print_tuple(s, tuple) || l4proto->print_tuple(s, tuple); in print_tuple()
176 const struct nf_conntrack_l3proto *l3proto; in ct_seq_show() local
188 l3proto = __nf_ct_l3proto_find(nf_ct_l3num(ct)); in ct_seq_show()
189 NF_CT_ASSERT(l3proto); in ct_seq_show()
195 l3proto->name, nf_ct_l3num(ct), in ct_seq_show()
205 l3proto, l4proto)) in ct_seq_show()
216 l3proto, l4proto)) in ct_seq_show()
Dxt_ipvs.c34 unsigned int l3proto) in ipvs_mt_addrcmp() argument
36 if (l3proto == NFPROTO_IPV4) in ipvs_mt_addrcmp()
39 else if (l3proto == NFPROTO_IPV6) in ipvs_mt_addrcmp()
Dnf_conntrack_core.c116 const struct nf_conntrack_l3proto *l3proto, in nf_ct_get_tuple() argument
122 if (l3proto->pkt_to_tuple(skb, nhoff, tuple) == 0) in nf_ct_get_tuple()
135 struct nf_conntrack_l3proto *l3proto; in nf_ct_get_tuplepr() local
143 l3proto = __nf_ct_l3proto_find(l3num); in nf_ct_get_tuplepr()
144 ret = l3proto->get_l4proto(skb, nhoff, &protoff, &protonum); in nf_ct_get_tuplepr()
153 l3proto, l4proto); in nf_ct_get_tuplepr()
163 const struct nf_conntrack_l3proto *l3proto, in nf_ct_invert_tuple() argument
169 if (l3proto->invert_tuple(inverse, orig) == 0) in nf_ct_invert_tuple()
775 struct nf_conntrack_l3proto *l3proto, in init_conntrack() argument
789 if (!nf_ct_invert_tuple(&repl_tuple, tuple, l3proto, l4proto)) { in init_conntrack()
[all …]
Dnf_conntrack_netlink.c85 struct nf_conntrack_l3proto *l3proto) in ctnetlink_dump_tuples_ip() argument
94 if (likely(l3proto->tuple_to_nlattr)) in ctnetlink_dump_tuples_ip()
95 ret = l3proto->tuple_to_nlattr(skb, tuple); in ctnetlink_dump_tuples_ip()
110 struct nf_conntrack_l3proto *l3proto; in ctnetlink_dump_tuples() local
114 l3proto = __nf_ct_l3proto_find(tuple->src.l3num); in ctnetlink_dump_tuples()
115 ret = ctnetlink_dump_tuples_ip(skb, tuple, l3proto); in ctnetlink_dump_tuples()
474 struct nf_conntrack_l3proto *l3proto; in ctnetlink_proto_size() local
479 l3proto = __nf_ct_l3proto_find(nf_ct_l3num(ct)); in ctnetlink_proto_size()
480 len += l3proto->nla_size; in ctnetlink_proto_size()
715 u_int8_t l3proto = nfmsg->nfgen_family; in ctnetlink_dump_table() local
[all …]
Dxt_conntrack.c30 const union nf_inet_addr *umask, unsigned int l3proto) in conntrack_addrcmp() argument
32 if (l3proto == NFPROTO_IPV4) in conntrack_addrcmp()
34 else if (l3proto == NFPROTO_IPV6) in conntrack_addrcmp()
Dnf_conntrack_l3proto_generic.c67 .l3proto = PF_UNSPEC,
Dnf_conntrack_proto_udp.c244 .l3proto = PF_INET,
282 .l3proto = PF_INET6,
Dnf_conntrack_proto_udplite.c229 .l3proto = PF_INET,
264 .l3proto = PF_INET6,
Dnf_conntrack_proto_generic.c135 .l3proto = PF_UNSPEC,
Dnf_conntrack_proto_dccp.c819 .l3proto = AF_INET,
851 .l3proto = AF_INET6,
Dnf_conntrack_proto_sctp.c716 .l3proto = PF_INET,
756 .l3proto = PF_INET6,
Dnf_conntrack_proto_gre.c343 .l3proto = AF_INET,
Dnf_conntrack_proto_tcp.c1543 .l3proto = PF_INET,
1586 .l3proto = PF_INET6,
/linux-3.4.99/include/net/netfilter/
Dnf_conntrack_l3proto.h21 u_int16_t l3proto; member
81 extern struct nf_conntrack_l3proto *nf_ct_l3proto_find_get(u_int16_t l3proto);
88 __nf_ct_l3proto_find(u_int16_t l3proto) in __nf_ct_l3proto_find() argument
90 if (unlikely(l3proto >= AF_MAX)) in __nf_ct_l3proto_find()
92 return rcu_dereference(nf_ct_l3protos[l3proto]); in __nf_ct_l3proto_find()
Dnf_conntrack_core.h41 const struct nf_conntrack_l3proto *l3proto,
47 const struct nf_conntrack_l3proto *l3proto,
74 const struct nf_conntrack_l3proto *l3proto,
Dnf_conntrack_l4proto.h20 u_int16_t l3proto; member
119 __nf_ct_l4proto_find(u_int16_t l3proto, u_int8_t l4proto);
122 nf_ct_l4proto_find_get(u_int16_t l3proto, u_int8_t l4proto);
Dnf_conntrack.h197 extern int nf_ct_l3proto_try_module_get(unsigned short l3proto);
198 extern void nf_ct_l3proto_module_put(unsigned short l3proto);
/linux-3.4.99/net/ipv4/netfilter/
Dnf_conntrack_l3proto_ipv4_compat.c122 const struct nf_conntrack_l3proto *l3proto; in ct_seq_show() local
137 l3proto = __nf_ct_l3proto_find(nf_ct_l3num(ct)); in ct_seq_show()
138 NF_CT_ASSERT(l3proto); in ct_seq_show()
153 l3proto, l4proto)) in ct_seq_show()
164 l3proto, l4proto)) in ct_seq_show()
Dnf_nat_core.c37 static struct nf_conntrack_l3proto *l3proto __read_mostly;
723 l3proto = nf_ct_l3proto_find_get((u_int16_t)AF_INET); in nf_nat_init()
744 nf_ct_l3proto_put(l3proto); in nf_nat_cleanup()
Dnf_conntrack_proto_icmp.c338 .l3proto = PF_INET,
Dnf_conntrack_l3proto_ipv4.c354 .l3proto = PF_INET,
/linux-3.4.99/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c333 .l3proto = PF_INET6,
Dnf_conntrack_l3proto_ipv6.c317 .l3proto = PF_INET6,