Searched refs:l3proto (Results 1 - 41 of 41) sorted by relevance

/linux-4.4.14/net/netfilter/
H A Dnf_conntrack_proto.c69 __nf_ct_l4proto_find(u_int16_t l3proto, u_int8_t l4proto) __nf_ct_l4proto_find() argument
71 if (unlikely(l3proto >= AF_MAX || nf_ct_protos[l3proto] == NULL)) __nf_ct_l4proto_find()
74 return rcu_dereference(nf_ct_protos[l3proto][l4proto]); __nf_ct_l4proto_find()
81 nf_ct_l3proto_find_get(u_int16_t l3proto) nf_ct_l3proto_find_get() argument
86 p = __nf_ct_l3proto_find(l3proto); nf_ct_l3proto_find_get()
96 nf_ct_l3proto_try_module_get(unsigned short l3proto) nf_ct_l3proto_try_module_get() argument
101 retry: p = nf_ct_l3proto_find_get(l3proto); nf_ct_l3proto_try_module_get()
103 ret = request_module("nf_conntrack-%d", l3proto); nf_ct_l3proto_try_module_get()
114 void nf_ct_l3proto_module_put(unsigned short l3proto) nf_ct_l3proto_module_put() argument
122 p = __nf_ct_l3proto_find(l3proto); nf_ct_l3proto_module_put()
151 return nf_ct_l3num(i) == ((struct nf_conntrack_l3proto *)data)->l3proto; kill_l3proto()
159 nf_ct_l3num(i) == l4proto->l3proto; kill_l4proto()
163 struct nf_conntrack_l3proto *l3proto) nf_ct_l3proto_net()
165 if (l3proto->l3proto == PF_INET) nf_ct_l3proto_net()
172 struct nf_conntrack_l3proto *l3proto) nf_ct_l3proto_register_sysctl()
175 struct nf_ip_net *in = nf_ct_l3proto_net(net, l3proto); nf_ct_l3proto_register_sysctl()
184 l3proto->ctl_table_path, nf_ct_l3proto_register_sysctl()
196 struct nf_conntrack_l3proto *l3proto) nf_ct_l3proto_unregister_sysctl()
198 struct nf_ip_net *in = nf_ct_l3proto_net(net, l3proto); nf_ct_l3proto_unregister_sysctl()
215 if (proto->l3proto >= AF_MAX) nf_ct_l3proto_register()
222 old = rcu_dereference_protected(nf_ct_l3protos[proto->l3proto], nf_ct_l3proto_register()
232 rcu_assign_pointer(nf_ct_l3protos[proto->l3proto], proto); nf_ct_l3proto_register()
258 BUG_ON(proto->l3proto >= AF_MAX); nf_ct_l3proto_unregister()
261 BUG_ON(rcu_dereference_protected(nf_ct_l3protos[proto->l3proto], nf_ct_l3proto_unregister()
264 rcu_assign_pointer(nf_ct_l3protos[proto->l3proto], nf_ct_l3proto_unregister()
316 if (l4proto->l3proto != AF_INET6 && pn->ctl_compat_table != NULL) { nf_ct_l4proto_register_sysctl()
351 if (l4proto->l3proto != AF_INET6 && pn->ctl_compat_header != NULL) nf_ct_l4proto_unregister_sysctl()
365 if (l4proto->l3proto >= PF_MAX) nf_ct_l4proto_register()
373 if (!nf_ct_protos[l4proto->l3proto]) { nf_ct_l4proto_register()
374 /* l3proto may be loaded latter. */ nf_ct_l4proto_register()
394 nf_ct_protos[l4proto->l3proto] = proto_array; nf_ct_l4proto_register()
396 nf_ct_protos[l4proto->l3proto][l4proto->l4proto], nf_ct_l4proto_register()
409 rcu_assign_pointer(nf_ct_protos[l4proto->l3proto][l4proto->l4proto], nf_ct_l4proto_register()
424 ret = l4proto->init_net(net, l4proto->l3proto); nf_ct_l4proto_pernet_register()
445 BUG_ON(l4proto->l3proto >= PF_MAX); nf_ct_l4proto_unregister()
449 nf_ct_protos[l4proto->l3proto][l4proto->l4proto], nf_ct_l4proto_unregister()
452 rcu_assign_pointer(nf_ct_protos[l4proto->l3proto][l4proto->l4proto], nf_ct_l4proto_unregister()
484 nf_conntrack_l4proto_generic.l3proto); nf_conntrack_proto_pernet_init()
520 /* free l3proto protocol tables */ nf_conntrack_proto_fini()
162 nf_ct_l3proto_net(struct net *net, struct nf_conntrack_l3proto *l3proto) nf_ct_l3proto_net() argument
171 nf_ct_l3proto_register_sysctl(struct net *net, struct nf_conntrack_l3proto *l3proto) nf_ct_l3proto_register_sysctl() argument
195 nf_ct_l3proto_unregister_sysctl(struct net *net, struct nf_conntrack_l3proto *l3proto) nf_ct_l3proto_unregister_sysctl() argument
H A Dnf_nat_core.c58 const struct nf_nat_l3proto *l3proto; __nf_nat_decode_session() local
71 l3proto = __nf_nat_l3proto_find(family); __nf_nat_decode_session()
72 if (l3proto == NULL) __nf_nat_decode_session()
81 l3proto->decode_session(skb, ct, dir, statusbit, fl); __nf_nat_decode_session()
153 static int in_range(const struct nf_nat_l3proto *l3proto, in_range() argument
162 !l3proto->in_range(tuple, range)) in_range()
189 const struct nf_nat_l3proto *l3proto, find_appropriate_src()
208 if (in_range(l3proto, l4proto, result, range)) find_appropriate_src()
303 const struct nf_nat_l3proto *l3proto; get_unique_tuple() local
310 l3proto = __nf_nat_l3proto_find(orig_tuple->src.l3num); get_unique_tuple()
325 if (in_range(l3proto, l4proto, orig_tuple, range)) { get_unique_tuple()
330 } else if (find_appropriate_src(net, zone, l3proto, l4proto, get_unique_tuple()
361 l4proto->unique_tuple(l3proto, tuple, range, maniptype, ct); get_unique_tuple()
480 const struct nf_nat_l3proto *l3proto; nf_nat_packet() local
502 l3proto = __nf_nat_l3proto_find(target.src.l3num); nf_nat_packet()
505 if (!l3proto->manip_pkt(skb, 0, l4proto, &target, mtype)) nf_nat_packet()
513 u8 l3proto; member in struct:nf_nat_proto_clean
526 if ((clean->l3proto && nf_ct_l3num(i) != clean->l3proto) || nf_nat_proto_remove()
566 static void nf_nat_l4proto_clean(u8 l3proto, u8 l4proto) nf_nat_l4proto_clean() argument
569 .l3proto = l3proto, nf_nat_l4proto_clean()
580 static void nf_nat_l3proto_clean(u8 l3proto) nf_nat_l3proto_clean() argument
583 .l3proto = l3proto, nf_nat_l3proto_clean()
595 int nf_nat_l4proto_register(u8 l3proto, const struct nf_nat_l4proto *l4proto) nf_nat_l4proto_register() argument
602 if (nf_nat_l4protos[l3proto] == NULL) { nf_nat_l4proto_register()
618 nf_nat_l4protos[l3proto] = l4protos; nf_nat_l4proto_register()
622 nf_nat_l4protos[l3proto][l4proto->l4proto], nf_nat_l4proto_register()
628 RCU_INIT_POINTER(nf_nat_l4protos[l3proto][l4proto->l4proto], l4proto); nf_nat_l4proto_register()
636 void nf_nat_l4proto_unregister(u8 l3proto, const struct nf_nat_l4proto *l4proto) nf_nat_l4proto_unregister() argument
639 RCU_INIT_POINTER(nf_nat_l4protos[l3proto][l4proto->l4proto], nf_nat_l4proto_unregister()
644 nf_nat_l4proto_clean(l3proto, l4proto->l4proto); nf_nat_l4proto_unregister()
648 int nf_nat_l3proto_register(const struct nf_nat_l3proto *l3proto) nf_nat_l3proto_register() argument
652 err = nf_ct_l3proto_try_module_get(l3proto->l3proto); nf_nat_l3proto_register()
657 RCU_INIT_POINTER(nf_nat_l4protos[l3proto->l3proto][IPPROTO_TCP], nf_nat_l3proto_register()
659 RCU_INIT_POINTER(nf_nat_l4protos[l3proto->l3proto][IPPROTO_UDP], nf_nat_l3proto_register()
663 RCU_INIT_POINTER(nf_nat_l3protos[l3proto->l3proto], l3proto); nf_nat_l3proto_register()
668 void nf_nat_l3proto_unregister(const struct nf_nat_l3proto *l3proto) nf_nat_l3proto_unregister() argument
671 RCU_INIT_POINTER(nf_nat_l3protos[l3proto->l3proto], NULL); nf_nat_l3proto_unregister()
675 nf_nat_l3proto_clean(l3proto->l3proto); nf_nat_l3proto_unregister()
676 nf_ct_l3proto_module_put(l3proto->l3proto); nf_nat_l3proto_unregister()
758 const struct nf_nat_l3proto *l3proto) nfnetlink_parse_nat()
769 err = l3proto->nlattr_to_range(tb, range); nfnetlink_parse_nat()
786 const struct nf_nat_l3proto *l3proto; nfnetlink_parse_nat_setup() local
798 l3proto = __nf_nat_l3proto_find(nf_ct_l3num(ct)); nfnetlink_parse_nat_setup()
799 if (l3proto == NULL) nfnetlink_parse_nat_setup()
806 err = nfnetlink_parse_nat(attr, ct, &range, l3proto); nfnetlink_parse_nat_setup()
187 find_appropriate_src(struct net *net, const struct nf_conntrack_zone *zone, const struct nf_nat_l3proto *l3proto, const struct nf_nat_l4proto *l4proto, const struct nf_conntrack_tuple *tuple, struct nf_conntrack_tuple *result, const struct nf_nat_range *range) find_appropriate_src() argument
756 nfnetlink_parse_nat(const struct nlattr *nat, const struct nf_conn *ct, struct nf_nat_range *range, const struct nf_nat_l3proto *l3proto) nfnetlink_parse_nat() argument
H A Dnf_nat_proto_udp.c23 udp_unique_tuple(const struct nf_nat_l3proto *l3proto, udp_unique_tuple() argument
29 nf_nat_l4proto_unique_tuple(l3proto, tuple, range, maniptype, ct, udp_unique_tuple()
35 const struct nf_nat_l3proto *l3proto, udp_manip_pkt()
57 l3proto->csum_update(skb, iphdroff, &hdr->check, udp_manip_pkt()
34 udp_manip_pkt(struct sk_buff *skb, const struct nf_nat_l3proto *l3proto, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) udp_manip_pkt() argument
H A Dnf_nat_proto_unknown.c28 static void unknown_unique_tuple(const struct nf_nat_l3proto *l3proto, unknown_unique_tuple() argument
42 const struct nf_nat_l3proto *l3proto, unknown_manip_pkt()
41 unknown_manip_pkt(struct sk_buff *skb, const struct nf_nat_l3proto *l3proto, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) unknown_manip_pkt() argument
H A Dnf_nat_proto_dccp.c26 dccp_unique_tuple(const struct nf_nat_l3proto *l3proto, dccp_unique_tuple() argument
32 nf_nat_l4proto_unique_tuple(l3proto, tuple, range, maniptype, ct, dccp_unique_tuple()
38 const struct nf_nat_l3proto *l3proto, dccp_manip_pkt()
69 l3proto->csum_update(skb, iphdroff, &hdr->dccph_checksum, dccp_manip_pkt()
37 dccp_manip_pkt(struct sk_buff *skb, const struct nf_nat_l3proto *l3proto, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) dccp_manip_pkt() argument
H A Dnf_nat_proto_tcp.c24 tcp_unique_tuple(const struct nf_nat_l3proto *l3proto, tcp_unique_tuple() argument
30 nf_nat_l4proto_unique_tuple(l3proto, tuple, range, maniptype, ct, tcp_unique_tuple()
36 const struct nf_nat_l3proto *l3proto, tcp_manip_pkt()
72 l3proto->csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); tcp_manip_pkt()
35 tcp_manip_pkt(struct sk_buff *skb, const struct nf_nat_l3proto *l3proto, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) tcp_manip_pkt() argument
H A Dnf_nat_proto_udplite.c23 udplite_unique_tuple(const struct nf_nat_l3proto *l3proto, udplite_unique_tuple() argument
29 nf_nat_l4proto_unique_tuple(l3proto, tuple, range, maniptype, ct, udplite_unique_tuple()
35 const struct nf_nat_l3proto *l3proto, udplite_manip_pkt()
58 l3proto->csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); udplite_manip_pkt()
34 udplite_manip_pkt(struct sk_buff *skb, const struct nf_nat_l3proto *l3proto, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) udplite_manip_pkt() argument
H A Dnf_nat_proto_sctp.c20 sctp_unique_tuple(const struct nf_nat_l3proto *l3proto, sctp_unique_tuple() argument
26 nf_nat_l4proto_unique_tuple(l3proto, tuple, range, maniptype, ct, sctp_unique_tuple()
32 const struct nf_nat_l3proto *l3proto, sctp_manip_pkt()
31 sctp_manip_pkt(struct sk_buff *skb, const struct nf_nat_l3proto *l3proto, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) sctp_manip_pkt() argument
H A Dxt_ipvs.c34 unsigned int l3proto) ipvs_mt_addrcmp()
36 if (l3proto == NFPROTO_IPV4) ipvs_mt_addrcmp()
39 else if (l3proto == NFPROTO_IPV6) ipvs_mt_addrcmp()
31 ipvs_mt_addrcmp(const union nf_inet_addr *kaddr, const union nf_inet_addr *uaddr, const union nf_inet_addr *umask, unsigned int l3proto) ipvs_mt_addrcmp() argument
H A Dnf_nat_proto_common.c37 void nf_nat_l4proto_unique_tuple(const struct nf_nat_l3proto *l3proto, nf_nat_l4proto_unique_tuple() argument
78 off = l3proto->secure_port(tuple, maniptype == NF_NAT_MANIP_SRC nf_nat_l4proto_unique_tuple()
H A Dnf_nat_helper.c101 const struct nf_nat_l3proto *l3proto; __nf_nat_mangle_tcp_packet() local
123 l3proto = __nf_nat_l3proto_find(nf_ct_l3num(ct)); __nf_nat_mangle_tcp_packet()
124 l3proto->csum_recalc(skb, IPPROTO_TCP, tcph, &tcph->check, __nf_nat_mangle_tcp_packet()
155 const struct nf_nat_l3proto *l3proto; nf_nat_mangle_udp_packet() local
181 l3proto = __nf_nat_l3proto_find(nf_ct_l3num(ct)); nf_nat_mangle_udp_packet()
182 l3proto->csum_recalc(skb, IPPROTO_UDP, udph, &udph->check, nf_nat_mangle_udp_packet()
H A Dnf_conntrack_standalone.c41 const struct nf_conntrack_l3proto *l3proto, print_tuple()
44 l3proto->print_tuple(s, tuple); print_tuple()
204 const struct nf_conntrack_l3proto *l3proto; ct_seq_show() local
216 l3proto = __nf_ct_l3proto_find(nf_ct_l3num(ct)); ct_seq_show()
217 NF_CT_ASSERT(l3proto); ct_seq_show()
223 l3proto->name, nf_ct_l3num(ct), ct_seq_show()
232 l3proto, l4proto); ct_seq_show()
246 l3proto, l4proto); ct_seq_show()
40 print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple, const struct nf_conntrack_l3proto *l3proto, const struct nf_conntrack_l4proto *l4proto) print_tuple() argument
H A Dnf_conntrack_l3proto_generic.c66 .l3proto = PF_UNSPEC,
H A Dnf_conntrack_core.c173 const struct nf_conntrack_l3proto *l3proto, nf_ct_get_tuple()
179 if (l3proto->pkt_to_tuple(skb, nhoff, tuple) == 0) nf_ct_get_tuple()
193 struct nf_conntrack_l3proto *l3proto; nf_ct_get_tuplepr() local
201 l3proto = __nf_ct_l3proto_find(l3num); nf_ct_get_tuplepr()
202 ret = l3proto->get_l4proto(skb, nhoff, &protoff, &protonum); nf_ct_get_tuplepr()
211 l3proto, l4proto); nf_ct_get_tuplepr()
221 const struct nf_conntrack_l3proto *l3proto, nf_ct_invert_tuple()
227 if (l3proto->invert_tuple(inverse, orig) == 0) nf_ct_invert_tuple()
911 struct nf_conntrack_l3proto *l3proto, init_conntrack()
926 if (!nf_ct_invert_tuple(&repl_tuple, tuple, l3proto, l4proto)) { init_conntrack()
1025 struct nf_conntrack_l3proto *l3proto, resolve_normal_ct()
1038 dataoff, l3num, protonum, net, &tuple, l3proto, resolve_normal_ct()
1049 h = init_conntrack(net, tmpl, &tuple, l3proto, l4proto, resolve_normal_ct()
1089 struct nf_conntrack_l3proto *l3proto; nf_conntrack_in() local
1108 l3proto = __nf_ct_l3proto_find(pf); nf_conntrack_in()
1109 ret = l3proto->get_l4proto(skb, skb_network_offset(skb), nf_conntrack_in()
1139 l3proto, l4proto, &set_reply, &ctinfo); nf_conntrack_in()
166 nf_ct_get_tuple(const struct sk_buff *skb, unsigned int nhoff, unsigned int dataoff, u_int16_t l3num, u_int8_t protonum, struct net *net, struct nf_conntrack_tuple *tuple, const struct nf_conntrack_l3proto *l3proto, const struct nf_conntrack_l4proto *l4proto) nf_ct_get_tuple() argument
219 nf_ct_invert_tuple(struct nf_conntrack_tuple *inverse, const struct nf_conntrack_tuple *orig, const struct nf_conntrack_l3proto *l3proto, const struct nf_conntrack_l4proto *l4proto) nf_ct_invert_tuple() argument
909 init_conntrack(struct net *net, struct nf_conn *tmpl, const struct nf_conntrack_tuple *tuple, struct nf_conntrack_l3proto *l3proto, struct nf_conntrack_l4proto *l4proto, struct sk_buff *skb, unsigned int dataoff, u32 hash) init_conntrack() argument
1020 resolve_normal_ct(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, unsigned int dataoff, u_int16_t l3num, u_int8_t protonum, struct nf_conntrack_l3proto *l3proto, struct nf_conntrack_l4proto *l4proto, int *set_reply, enum ip_conntrack_info *ctinfo) resolve_normal_ct() argument
H A Dxt_conntrack.c31 const union nf_inet_addr *umask, unsigned int l3proto) conntrack_addrcmp()
33 if (l3proto == NFPROTO_IPV4) conntrack_addrcmp()
35 else if (l3proto == NFPROTO_IPV6) conntrack_addrcmp()
29 conntrack_addrcmp(const union nf_inet_addr *kaddr, const union nf_inet_addr *uaddr, const union nf_inet_addr *umask, unsigned int l3proto) conntrack_addrcmp() argument
H A Dnf_conntrack_netlink.c89 struct nf_conntrack_l3proto *l3proto) ctnetlink_dump_tuples_ip()
98 if (likely(l3proto->tuple_to_nlattr)) ctnetlink_dump_tuples_ip()
99 ret = l3proto->tuple_to_nlattr(skb, tuple); ctnetlink_dump_tuples_ip()
114 struct nf_conntrack_l3proto *l3proto; ctnetlink_dump_tuples() local
118 l3proto = __nf_ct_l3proto_find(tuple->src.l3num); ctnetlink_dump_tuples()
119 ret = ctnetlink_dump_tuples_ip(skb, tuple, l3proto); ctnetlink_dump_tuples()
544 struct nf_conntrack_l3proto *l3proto; ctnetlink_proto_size() local
549 l3proto = __nf_ct_l3proto_find(nf_ct_l3num(ct)); ctnetlink_proto_size()
550 len += l3proto->nla_size; ctnetlink_proto_size()
833 u_int8_t l3proto = nfmsg->nfgen_family; ctnetlink_dump_table() local
854 * If it is not specified, ie. l3proto == 0, ctnetlink_dump_table()
856 if (l3proto && nf_ct_l3num(ct) != l3proto) ctnetlink_dump_table()
898 struct nf_conntrack_l3proto *l3proto; ctnetlink_parse_tuple_ip() local
906 l3proto = __nf_ct_l3proto_find(tuple->src.l3num); ctnetlink_parse_tuple_ip()
908 if (likely(l3proto->nlattr_to_tuple)) { ctnetlink_parse_tuple_ip()
910 l3proto->nla_policy); ctnetlink_parse_tuple_ip()
912 ret = l3proto->nlattr_to_tuple(tb, tuple); ctnetlink_parse_tuple_ip()
1268 u_int8_t l3proto = nfmsg->nfgen_family; ctnetlink_dump_list() local
1291 if (l3proto && nf_ct_l3num(ct) != l3proto) hlist_nulls_for_each_entry()
2438 struct nf_conntrack_l3proto *l3proto; ctnetlink_exp_dump_mask() local
2453 l3proto = __nf_ct_l3proto_find(tuple->src.l3num); ctnetlink_exp_dump_mask()
2454 ret = ctnetlink_dump_tuples_ip(skb, &m, l3proto); ctnetlink_exp_dump_mask()
2647 u_int8_t l3proto = nfmsg->nfgen_family; ctnetlink_exp_dump_table() local
2655 if (l3proto && exp->tuple.src.l3num != l3proto) ctnetlink_exp_dump_table()
2693 u_int8_t l3proto = nfmsg->nfgen_family; ctnetlink_exp_ct_dump_table() local
2702 if (l3proto && exp->tuple.src.l3num != l3proto) ctnetlink_exp_ct_dump_table()
87 ctnetlink_dump_tuples_ip(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple, struct nf_conntrack_l3proto *l3proto) ctnetlink_dump_tuples_ip() argument
H A Dnf_conntrack_proto_udp.c309 .l3proto = PF_INET,
341 .l3proto = PF_INET6,
H A Dnf_conntrack_proto_udplite.c274 .l3proto = PF_INET,
306 .l3proto = PF_INET6,
H A Dnf_conntrack_proto_generic.c225 .l3proto = PF_UNSPEC,
H A Dnf_conntrack_proto_gre.c365 .l3proto = AF_INET,
H A Dnf_conntrack_expect.c541 seq_printf(s, "l3proto = %u proto=%u ", exp_seq_show()
H A Dnfnetlink_cttimeout.c432 if (nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, htons(l4proto->l3proto)) || cttimeout_default_fill_info()
H A Dnf_conntrack_proto_dccp.c869 .l3proto = AF_INET,
903 .l3proto = AF_INET6,
H A Dnf_conntrack_proto_sctp.c841 .l3proto = PF_INET,
875 .l3proto = PF_INET6,
H A Dnf_conntrack_proto_tcp.c1669 .l3proto = PF_INET,
1706 .l3proto = PF_INET6,
/linux-4.4.14/include/net/netfilter/
H A Dnf_nat_l4proto.h18 const struct nf_nat_l3proto *l3proto,
34 void (*unique_tuple)(const struct nf_nat_l3proto *l3proto,
45 int nf_nat_l4proto_register(u8 l3proto, const struct nf_nat_l4proto *l4proto);
46 void nf_nat_l4proto_unregister(u8 l3proto,
49 const struct nf_nat_l4proto *__nf_nat_l4proto_find(u8 l3proto, u8 l4proto);
63 void nf_nat_l4proto_unique_tuple(const struct nf_nat_l3proto *l3proto,
H A Dnf_conntrack_l3proto.h21 u_int16_t l3proto; member in struct:nf_conntrack_l3proto
70 /* Init l3proto pernet data */
89 struct nf_conntrack_l3proto *nf_ct_l3proto_find_get(u_int16_t l3proto);
95 __nf_ct_l3proto_find(u_int16_t l3proto) __nf_ct_l3proto_find() argument
97 if (unlikely(l3proto >= AF_MAX)) __nf_ct_l3proto_find()
99 return rcu_dereference(nf_ct_l3protos[l3proto]); __nf_ct_l3proto_find()
H A Dnf_conntrack_core.h46 const struct nf_conntrack_l3proto *l3proto,
51 const struct nf_conntrack_l3proto *l3proto,
79 const struct nf_conntrack_l3proto *l3proto,
H A Dnf_conntrack_l4proto.h21 u_int16_t l3proto; member in struct:nf_conntrack_l4proto
117 struct nf_conntrack_l4proto *__nf_ct_l4proto_find(u_int16_t l3proto,
120 struct nf_conntrack_l4proto *nf_ct_l4proto_find_get(u_int16_t l3proto,
H A Dnf_nat_l3proto.h6 u8 l3proto; member in struct:nf_nat_l3proto
40 const struct nf_nat_l3proto *__nf_nat_l3proto_find(u8 l3proto);
H A Dnf_conntrack.h175 int nf_ct_l3proto_try_module_get(unsigned short l3proto);
176 void nf_ct_l3proto_module_put(unsigned short l3proto);
/linux-4.4.14/net/ipv6/netfilter/
H A Dnf_nat_proto_icmpv6.c33 icmpv6_unique_tuple(const struct nf_nat_l3proto *l3proto, icmpv6_unique_tuple() argument
59 const struct nf_nat_l3proto *l3proto, icmpv6_manip_pkt()
70 l3proto->csum_update(skb, iphdroff, &hdr->icmp6_cksum, icmpv6_manip_pkt()
58 icmpv6_manip_pkt(struct sk_buff *skb, const struct nf_nat_l3proto *l3proto, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) icmpv6_manip_pkt() argument
H A Dnf_conntrack_l3proto_ipv6.c312 .l3proto = PF_INET6,
H A Dnf_conntrack_proto_icmpv6.c371 .l3proto = PF_INET6,
H A Dnf_nat_l3proto_ipv6.c182 .l3proto = NFPROTO_IPV6,
/linux-4.4.14/net/ipv4/netfilter/
H A Dnf_nat_proto_icmp.c31 icmp_unique_tuple(const struct nf_nat_l3proto *l3proto, icmp_unique_tuple() argument
58 const struct nf_nat_l3proto *l3proto, icmp_manip_pkt()
57 icmp_manip_pkt(struct sk_buff *skb, const struct nf_nat_l3proto *l3proto, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) icmp_manip_pkt() argument
H A Dnf_conntrack_l3proto_ipv4_compat.c121 const struct nf_conntrack_l3proto *l3proto; ct_seq_show() local
136 l3proto = __nf_ct_l3proto_find(nf_ct_l3num(ct)); ct_seq_show()
137 NF_CT_ASSERT(l3proto); ct_seq_show()
154 l3proto, l4proto); ct_seq_show()
166 l3proto, l4proto); ct_seq_show()
H A Dnf_nat_proto_gre.c42 gre_unique_tuple(const struct nf_nat_l3proto *l3proto, gre_unique_tuple() argument
86 const struct nf_nat_l3proto *l3proto, gre_manip_pkt()
85 gre_manip_pkt(struct sk_buff *skb, const struct nf_nat_l3proto *l3proto, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) gre_manip_pkt() argument
H A Dnf_conntrack_proto_icmp.c401 .l3proto = PF_INET,
H A Dnf_conntrack_l3proto_ipv4.c371 .l3proto = PF_INET,
H A Dnf_nat_l3proto_ipv4.c176 .l3proto = NFPROTO_IPV4,

Completed in 483 milliseconds