/linux-4.1.27/net/netfilter/ |
H A D | nf_conntrack_proto.c | 69 __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 D | nf_nat_core.c | 58 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() 154 static int in_range(const struct nf_nat_l3proto *l3proto, in_range() argument 163 !l3proto->in_range(tuple, range)) in_range() 189 const struct nf_nat_l3proto *l3proto, find_appropriate_src() 207 if (in_range(l3proto, l4proto, result, range)) find_appropriate_src() 300 const struct nf_nat_l3proto *l3proto; get_unique_tuple() local 306 l3proto = __nf_nat_l3proto_find(orig_tuple->src.l3num); get_unique_tuple() 321 if (in_range(l3proto, l4proto, orig_tuple, range)) { get_unique_tuple() 326 } else if (find_appropriate_src(net, zone, l3proto, l4proto, get_unique_tuple() 357 l4proto->unique_tuple(l3proto, tuple, range, maniptype, ct); get_unique_tuple() 476 const struct nf_nat_l3proto *l3proto; nf_nat_packet() local 498 l3proto = __nf_nat_l3proto_find(target.src.l3num); nf_nat_packet() 501 if (!l3proto->manip_pkt(skb, 0, l4proto, &target, mtype)) nf_nat_packet() 509 u8 l3proto; member in struct:nf_nat_proto_clean 522 if ((clean->l3proto && nf_ct_l3num(i) != clean->l3proto) || nf_nat_proto_remove() 562 static void nf_nat_l4proto_clean(u8 l3proto, u8 l4proto) nf_nat_l4proto_clean() argument 565 .l3proto = l3proto, nf_nat_l4proto_clean() 576 static void nf_nat_l3proto_clean(u8 l3proto) nf_nat_l3proto_clean() argument 579 .l3proto = l3proto, nf_nat_l3proto_clean() 591 int nf_nat_l4proto_register(u8 l3proto, const struct nf_nat_l4proto *l4proto) nf_nat_l4proto_register() argument 598 if (nf_nat_l4protos[l3proto] == NULL) { nf_nat_l4proto_register() 614 nf_nat_l4protos[l3proto] = l4protos; nf_nat_l4proto_register() 618 nf_nat_l4protos[l3proto][l4proto->l4proto], nf_nat_l4proto_register() 624 RCU_INIT_POINTER(nf_nat_l4protos[l3proto][l4proto->l4proto], l4proto); nf_nat_l4proto_register() 632 void nf_nat_l4proto_unregister(u8 l3proto, const struct nf_nat_l4proto *l4proto) nf_nat_l4proto_unregister() argument 635 RCU_INIT_POINTER(nf_nat_l4protos[l3proto][l4proto->l4proto], nf_nat_l4proto_unregister() 640 nf_nat_l4proto_clean(l3proto, l4proto->l4proto); nf_nat_l4proto_unregister() 644 int nf_nat_l3proto_register(const struct nf_nat_l3proto *l3proto) nf_nat_l3proto_register() argument 648 err = nf_ct_l3proto_try_module_get(l3proto->l3proto); nf_nat_l3proto_register() 653 RCU_INIT_POINTER(nf_nat_l4protos[l3proto->l3proto][IPPROTO_TCP], nf_nat_l3proto_register() 655 RCU_INIT_POINTER(nf_nat_l4protos[l3proto->l3proto][IPPROTO_UDP], nf_nat_l3proto_register() 659 RCU_INIT_POINTER(nf_nat_l3protos[l3proto->l3proto], l3proto); nf_nat_l3proto_register() 664 void nf_nat_l3proto_unregister(const struct nf_nat_l3proto *l3proto) nf_nat_l3proto_unregister() argument 667 RCU_INIT_POINTER(nf_nat_l3protos[l3proto->l3proto], NULL); nf_nat_l3proto_unregister() 671 nf_nat_l3proto_clean(l3proto->l3proto); nf_nat_l3proto_unregister() 672 nf_ct_l3proto_module_put(l3proto->l3proto); nf_nat_l3proto_unregister() 754 const struct nf_nat_l3proto *l3proto) nfnetlink_parse_nat() 765 err = l3proto->nlattr_to_range(tb, range); nfnetlink_parse_nat() 782 const struct nf_nat_l3proto *l3proto; nfnetlink_parse_nat_setup() local 794 l3proto = __nf_nat_l3proto_find(nf_ct_l3num(ct)); nfnetlink_parse_nat_setup() 795 if (l3proto == NULL) nfnetlink_parse_nat_setup() 802 err = nfnetlink_parse_nat(attr, ct, &range, l3proto); nfnetlink_parse_nat_setup() 188 find_appropriate_src(struct net *net, u16 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 752 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 D | nf_nat_proto_udp.c | 23 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 D | nf_nat_proto_unknown.c | 28 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 D | nf_nat_proto_dccp.c | 26 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 D | nf_nat_proto_tcp.c | 24 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 D | nf_nat_proto_udplite.c | 23 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 D | nf_nat_proto_sctp.c | 20 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 D | xt_ipvs.c | 34 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 D | nf_conntrack_standalone.c | 41 const struct nf_conntrack_l3proto *l3proto, print_tuple() 44 l3proto->print_tuple(s, tuple); print_tuple() 175 const struct nf_conntrack_l3proto *l3proto; ct_seq_show() local 187 l3proto = __nf_ct_l3proto_find(nf_ct_l3num(ct)); ct_seq_show() 188 NF_CT_ASSERT(l3proto); ct_seq_show() 194 l3proto->name, nf_ct_l3num(ct), ct_seq_show() 203 l3proto, l4proto); ct_seq_show() 215 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 D | nf_nat_proto_common.c | 37 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 D | nf_nat_helper.c | 101 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 D | nf_conntrack_l3proto_generic.c | 66 .l3proto = PF_UNSPEC,
|
H A D | nf_conntrack_core.c | 172 const struct nf_conntrack_l3proto *l3proto, nf_ct_get_tuple() 178 if (l3proto->pkt_to_tuple(skb, nhoff, tuple) == 0) nf_ct_get_tuple() 191 struct nf_conntrack_l3proto *l3proto; nf_ct_get_tuplepr() local 199 l3proto = __nf_ct_l3proto_find(l3num); nf_ct_get_tuplepr() 200 ret = l3proto->get_l4proto(skb, nhoff, &protoff, &protonum); nf_ct_get_tuplepr() 209 l3proto, l4proto); nf_ct_get_tuplepr() 219 const struct nf_conntrack_l3proto *l3proto, nf_ct_invert_tuple() 225 if (l3proto->invert_tuple(inverse, orig) == 0) nf_ct_invert_tuple() 894 struct nf_conntrack_l3proto *l3proto, init_conntrack() 908 if (!nf_ct_invert_tuple(&repl_tuple, tuple, l3proto, l4proto)) { init_conntrack() 1002 struct nf_conntrack_l3proto *l3proto, resolve_normal_ct() 1014 dataoff, l3num, protonum, &tuple, l3proto, resolve_normal_ct() 1024 h = init_conntrack(net, tmpl, &tuple, l3proto, l4proto, resolve_normal_ct() 1064 struct nf_conntrack_l3proto *l3proto; nf_conntrack_in() local 1083 l3proto = __nf_ct_l3proto_find(pf); nf_conntrack_in() 1084 ret = l3proto->get_l4proto(skb, skb_network_offset(skb), nf_conntrack_in() 1114 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 nf_conntrack_tuple *tuple, const struct nf_conntrack_l3proto *l3proto, const struct nf_conntrack_l4proto *l4proto) nf_ct_get_tuple() argument 217 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 892 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 997 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 D | xt_conntrack.c | 31 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 D | nf_conntrack_netlink.c | 89 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() 521 struct nf_conntrack_l3proto *l3proto; ctnetlink_proto_size() local 526 l3proto = __nf_ct_l3proto_find(nf_ct_l3num(ct)); ctnetlink_proto_size() 527 len += l3proto->nla_size; ctnetlink_proto_size() 801 u_int8_t l3proto = nfmsg->nfgen_family; ctnetlink_dump_table() local 822 * If it is not specified, ie. l3proto == 0, ctnetlink_dump_table() 824 if (l3proto && nf_ct_l3num(ct) != l3proto) ctnetlink_dump_table() 866 struct nf_conntrack_l3proto *l3proto; ctnetlink_parse_tuple_ip() local 874 l3proto = __nf_ct_l3proto_find(tuple->src.l3num); ctnetlink_parse_tuple_ip() 876 if (likely(l3proto->nlattr_to_tuple)) { ctnetlink_parse_tuple_ip() 878 l3proto->nla_policy); ctnetlink_parse_tuple_ip() 880 ret = l3proto->nlattr_to_tuple(tb, tuple); ctnetlink_parse_tuple_ip() 1198 u_int8_t l3proto = nfmsg->nfgen_family; ctnetlink_dump_list() local 1221 if (l3proto && nf_ct_l3num(ct) != l3proto) hlist_nulls_for_each_entry() 2310 struct nf_conntrack_l3proto *l3proto; ctnetlink_exp_dump_mask() local 2325 l3proto = __nf_ct_l3proto_find(tuple->src.l3num); ctnetlink_exp_dump_mask() 2326 ret = ctnetlink_dump_tuples_ip(skb, &m, l3proto); ctnetlink_exp_dump_mask() 2519 u_int8_t l3proto = nfmsg->nfgen_family; ctnetlink_exp_dump_table() local 2527 if (l3proto && exp->tuple.src.l3num != l3proto) ctnetlink_exp_dump_table() 2565 u_int8_t l3proto = nfmsg->nfgen_family; ctnetlink_exp_ct_dump_table() local 2574 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 D | nf_conntrack_proto_udp.c | 308 .l3proto = PF_INET, 340 .l3proto = PF_INET6,
|
H A D | nf_conntrack_proto_udplite.c | 273 .l3proto = PF_INET, 305 .l3proto = PF_INET6,
|
H A D | nf_conntrack_proto_generic.c | 219 .l3proto = PF_UNSPEC,
|
H A D | nf_conntrack_proto_sctp.c | 788 .l3proto = PF_INET, 822 .l3proto = PF_INET6,
|
H A D | nf_conntrack_proto_gre.c | 366 .l3proto = AF_INET,
|
H A D | nf_conntrack_expect.c | 538 seq_printf(s, "l3proto = %u proto=%u ", exp_seq_show()
|
H A D | nfnetlink_cttimeout.c | 403 if (nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, htons(l4proto->l3proto)) || cttimeout_default_fill_info()
|
H A D | nf_conntrack_proto_dccp.c | 869 .l3proto = AF_INET, 903 .l3proto = AF_INET6,
|
H A D | nf_conntrack_proto_tcp.c | 1669 .l3proto = PF_INET, 1706 .l3proto = PF_INET6,
|
/linux-4.1.27/include/net/netfilter/ |
H A D | nf_nat_l4proto.h | 18 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 D | nf_conntrack_l3proto.h | 21 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 D | nf_conntrack_core.h | 45 const struct nf_conntrack_l3proto *l3proto, 50 const struct nf_conntrack_l3proto *l3proto, 77 const struct nf_conntrack_l3proto *l3proto,
|
H A D | nf_conntrack_l4proto.h | 21 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 D | nf_nat_l3proto.h | 6 u8 l3proto; member in struct:nf_nat_l3proto 40 const struct nf_nat_l3proto *__nf_nat_l3proto_find(u8 l3proto);
|
H A D | nf_conntrack.h | 175 int nf_ct_l3proto_try_module_get(unsigned short l3proto); 176 void nf_ct_l3proto_module_put(unsigned short l3proto);
|
/linux-4.1.27/net/ipv6/netfilter/ |
H A D | nf_nat_proto_icmpv6.c | 33 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 D | nf_conntrack_l3proto_ipv6.c | 318 .l3proto = PF_INET6,
|
H A D | nf_conntrack_proto_icmpv6.c | 369 .l3proto = PF_INET6,
|
H A D | nf_nat_l3proto_ipv6.c | 182 .l3proto = NFPROTO_IPV6,
|
/linux-4.1.27/net/ipv4/netfilter/ |
H A D | nf_nat_proto_icmp.c | 31 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 D | nf_conntrack_l3proto_ipv4_compat.c | 121 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 D | nf_nat_proto_gre.c | 42 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 D | nf_conntrack_proto_icmp.c | 399 .l3proto = PF_INET,
|
H A D | nf_conntrack_l3proto_ipv4.c | 377 .l3proto = PF_INET,
|
H A D | nf_nat_l3proto_ipv4.c | 176 .l3proto = NFPROTO_IPV4,
|