Searched refs:l4proto (Results 1 - 38 of 38) 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
74 return rcu_dereference(nf_ct_protos[l3proto][l4proto]); __nf_ct_l4proto_find()
156 struct nf_conntrack_l4proto *l4proto; kill_l4proto() local
157 l4proto = (struct nf_conntrack_l4proto *)data; kill_l4proto()
158 return nf_ct_protonum(i) == l4proto->l4proto && kill_l4proto()
159 nf_ct_l3num(i) == l4proto->l3proto; kill_l4proto()
283 struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_net()
285 if (l4proto->get_net_proto) { nf_ct_l4proto_net()
287 return l4proto->get_net_proto(net); nf_ct_l4proto_net()
288 } else if (l4proto->net_id) { nf_ct_l4proto_net()
290 return net_generic(net, *l4proto->net_id); nf_ct_l4proto_net()
298 struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_register_sysctl()
316 if (l4proto->l3proto != AF_INET6 && pn->ctl_compat_table != NULL) { nf_ct_l4proto_register_sysctl()
342 struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_unregister_sysctl()
351 if (l4proto->l3proto != AF_INET6 && pn->ctl_compat_header != NULL) nf_ct_l4proto_unregister_sysctl()
361 int nf_ct_l4proto_register(struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_register() argument
365 if (l4proto->l3proto >= PF_MAX) nf_ct_l4proto_register()
368 if ((l4proto->to_nlattr && !l4proto->nlattr_size) nf_ct_l4proto_register()
369 || (l4proto->tuple_to_nlattr && !l4proto->nlattr_tuple_size)) nf_ct_l4proto_register()
373 if (!nf_ct_protos[l4proto->l3proto]) { 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()
403 l4proto->nla_size = 0; nf_ct_l4proto_register()
404 if (l4proto->nlattr_size) nf_ct_l4proto_register()
405 l4proto->nla_size += l4proto->nlattr_size(); nf_ct_l4proto_register()
406 if (l4proto->nlattr_tuple_size) nf_ct_l4proto_register()
407 l4proto->nla_size += 3 * l4proto->nlattr_tuple_size(); nf_ct_l4proto_register()
409 rcu_assign_pointer(nf_ct_protos[l4proto->l3proto][l4proto->l4proto], nf_ct_l4proto_register()
410 l4proto); nf_ct_l4proto_register()
418 struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_pernet_register()
423 if (l4proto->init_net) { nf_ct_l4proto_pernet_register()
424 ret = l4proto->init_net(net, l4proto->l3proto); nf_ct_l4proto_pernet_register()
429 pn = nf_ct_l4proto_net(net, l4proto); nf_ct_l4proto_pernet_register()
433 ret = nf_ct_l4proto_register_sysctl(net, pn, l4proto); nf_ct_l4proto_pernet_register()
443 void nf_ct_l4proto_unregister(struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_unregister() argument
445 BUG_ON(l4proto->l3proto >= PF_MAX); nf_ct_l4proto_unregister()
449 nf_ct_protos[l4proto->l3proto][l4proto->l4proto], nf_ct_l4proto_unregister()
451 ) != l4proto); nf_ct_l4proto_unregister()
452 rcu_assign_pointer(nf_ct_protos[l4proto->l3proto][l4proto->l4proto], nf_ct_l4proto_unregister()
461 struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_pernet_unregister()
465 pn = nf_ct_l4proto_net(net, l4proto); nf_ct_l4proto_pernet_unregister()
470 nf_ct_l4proto_unregister_sysctl(net, pn, l4proto); nf_ct_l4proto_pernet_unregister()
473 nf_ct_iterate_cleanup(net, kill_l4proto, l4proto, 0, 0); nf_ct_l4proto_pernet_unregister()
282 nf_ct_l4proto_net(struct net *net, struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_net() argument
296 nf_ct_l4proto_register_sysctl(struct net *net, struct nf_proto_net *pn, struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_register_sysctl() argument
340 nf_ct_l4proto_unregister_sysctl(struct net *net, struct nf_proto_net *pn, struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_unregister_sysctl() argument
417 nf_ct_l4proto_pernet_register(struct net *net, struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_pernet_register() argument
460 nf_ct_l4proto_pernet_unregister(struct net *net, struct nf_conntrack_l4proto *l4proto) nf_ct_l4proto_pernet_unregister() argument
H A Dnfnetlink_cttimeout.c52 ctnl_timeout_parse_policy(void *timeouts, struct nf_conntrack_l4proto *l4proto, ctnl_timeout_parse_policy() argument
57 if (likely(l4proto->ctnl_timeout.nlattr_to_obj)) { ctnl_timeout_parse_policy()
58 struct nlattr *tb[l4proto->ctnl_timeout.nlattr_max+1]; ctnl_timeout_parse_policy()
60 ret = nla_parse_nested(tb, l4proto->ctnl_timeout.nlattr_max, ctnl_timeout_parse_policy()
61 attr, l4proto->ctnl_timeout.nla_policy); ctnl_timeout_parse_policy()
65 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeouts); ctnl_timeout_parse_policy()
77 struct nf_conntrack_l4proto *l4proto; cttimeout_new_timeout() local
104 l4proto = nf_ct_l4proto_find_get(l3num, l4num); cttimeout_new_timeout()
107 if (l4proto->l4proto != l4num) { cttimeout_new_timeout()
118 matching->l4proto->l4proto != l4num) { cttimeout_new_timeout()
124 l4proto, net, cttimeout_new_timeout()
133 l4proto->ctnl_timeout.obj_size, GFP_KERNEL); cttimeout_new_timeout()
139 ret = ctnl_timeout_parse_policy(&timeout->data, l4proto, net, cttimeout_new_timeout()
146 timeout->l4proto = l4proto; cttimeout_new_timeout()
154 nf_ct_l4proto_put(l4proto); cttimeout_new_timeout()
165 struct nf_conntrack_l4proto *l4proto = timeout->l4proto; ctnl_timeout_fill_info() local
179 nla_put_u8(skb, CTA_TIMEOUT_L4PROTO, timeout->l4proto->l4proto) || ctnl_timeout_fill_info()
184 if (likely(l4proto->ctnl_timeout.obj_to_nlattr)) { ctnl_timeout_fill_info()
193 ret = l4proto->ctnl_timeout.obj_to_nlattr(skb, &timeout->data); ctnl_timeout_fill_info()
331 nf_ct_l4proto_put(timeout->l4proto); ctnl_timeout_try_del()
379 struct nf_conntrack_l4proto *l4proto; cttimeout_default_set() local
391 l4proto = nf_ct_l4proto_find_get(l3num, l4num); cttimeout_default_set()
394 if (l4proto->l4proto != l4num) { cttimeout_default_set()
399 timeouts = l4proto->get_timeouts(net); cttimeout_default_set()
401 ret = ctnl_timeout_parse_policy(timeouts, l4proto, net, cttimeout_default_set()
406 nf_ct_l4proto_put(l4proto); cttimeout_default_set()
409 nf_ct_l4proto_put(l4proto); cttimeout_default_set()
416 struct nf_conntrack_l4proto *l4proto) cttimeout_default_fill_info()
432 if (nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, htons(l4proto->l3proto)) || cttimeout_default_fill_info()
433 nla_put_u8(skb, CTA_TIMEOUT_L4PROTO, l4proto->l4proto)) cttimeout_default_fill_info()
436 if (likely(l4proto->ctnl_timeout.obj_to_nlattr)) { cttimeout_default_fill_info()
438 unsigned int *timeouts = l4proto->get_timeouts(net); cttimeout_default_fill_info()
446 ret = l4proto->ctnl_timeout.obj_to_nlattr(skb, timeouts); cttimeout_default_fill_info()
468 struct nf_conntrack_l4proto *l4proto; cttimeout_default_get() local
478 l4proto = nf_ct_l4proto_find_get(l3num, l4num); cttimeout_default_get()
481 if (l4proto->l4proto != l4num) { cttimeout_default_get()
496 l4proto); cttimeout_default_get()
509 nf_ct_l4proto_put(l4proto); cttimeout_default_get()
608 nf_ct_l4proto_put(cur->l4proto); cttimeout_exit()
414 cttimeout_default_fill_info(struct net *net, struct sk_buff *skb, u32 portid, u32 seq, u32 type, int event, struct nf_conntrack_l4proto *l4proto) cttimeout_default_fill_info() argument
H A Dnf_nat_core.c154 const struct nf_nat_l4proto *l4proto, in_range()
166 l4proto->in_range(tuple, NF_NAT_MANIP_SRC, in_range()
190 const struct nf_nat_l4proto *l4proto, find_appropriate_src()
208 if (in_range(l3proto, l4proto, result, range)) find_appropriate_src()
304 const struct nf_nat_l4proto *l4proto; get_unique_tuple() local
311 l4proto = __nf_nat_l4proto_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()
349 if (l4proto->in_range(tuple, maniptype, get_unique_tuple()
361 l4proto->unique_tuple(l3proto, tuple, range, maniptype, ct); get_unique_tuple()
481 const struct nf_nat_l4proto *l4proto; nf_nat_packet() local
503 l4proto = __nf_nat_l4proto_find(target.src.l3num, nf_nat_packet()
505 if (!l3proto->manip_pkt(skb, 0, l4proto, &target, mtype)) nf_nat_packet()
514 u8 l4proto; member in struct:nf_nat_proto_clean
527 (clean->l4proto && nf_ct_protonum(i) != clean->l4proto)) nf_nat_proto_remove()
566 static void nf_nat_l4proto_clean(u8 l3proto, u8 l4proto) nf_nat_l4proto_clean() argument
570 .l4proto = l4proto, nf_nat_l4proto_clean()
595 int nf_nat_l4proto_register(u8 l3proto, const struct nf_nat_l4proto *l4proto) nf_nat_l4proto_register() argument
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()
733 const struct nf_nat_l4proto *l4proto; nfnetlink_parse_nat_proto() local
740 l4proto = __nf_nat_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); nfnetlink_parse_nat_proto()
741 if (l4proto->nlattr_to_range) nfnetlink_parse_nat_proto()
742 err = l4proto->nlattr_to_range(tb, range); nfnetlink_parse_nat_proto()
153 in_range(const struct nf_nat_l3proto *l3proto, const struct nf_nat_l4proto *l4proto, const struct nf_conntrack_tuple *tuple, const struct nf_nat_range *range) in_range() argument
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
H A Dxt_CT.c126 struct nf_conntrack_l4proto *l4proto; xt_ct_set_timeout() local
162 l4proto = __nf_ct_l4proto_find(par->family, proto); xt_ct_set_timeout()
163 if (timeout->l4proto->l4proto != l4proto->l4proto) { xt_ct_set_timeout()
167 timeout_name, timeout->l4proto->l4proto); xt_ct_set_timeout()
H A Dnf_conntrack_standalone.c42 const struct nf_conntrack_l4proto *l4proto) print_tuple()
45 l4proto->print_tuple(s, tuple); print_tuple()
205 const struct nf_conntrack_l4proto *l4proto; ct_seq_show() local
218 l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); ct_seq_show()
219 NF_CT_ASSERT(l4proto); ct_seq_show()
224 l4proto->name, nf_ct_protonum(ct), ct_seq_show()
228 if (l4proto->print_conntrack) ct_seq_show()
229 l4proto->print_conntrack(s, 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_core.c174 const struct nf_conntrack_l4proto *l4proto) nf_ct_get_tuple()
185 return l4proto->pkt_to_tuple(skb, dataoff, net, tuple); nf_ct_get_tuple()
194 struct nf_conntrack_l4proto *l4proto; nf_ct_get_tuplepr() local
208 l4proto = __nf_ct_l4proto_find(l3num, protonum); nf_ct_get_tuplepr()
211 l3proto, l4proto); nf_ct_get_tuplepr()
222 const struct nf_conntrack_l4proto *l4proto) nf_ct_invert_tuple()
233 return l4proto->invert_tuple(inverse, orig); nf_ct_invert_tuple()
331 struct nf_conntrack_l4proto *l4proto; destroy_conntrack() local
342 l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); destroy_conntrack()
343 if (l4proto && l4proto->destroy) destroy_conntrack()
344 l4proto->destroy(ct); destroy_conntrack()
912 struct nf_conntrack_l4proto *l4proto, init_conntrack()
926 if (!nf_ct_invert_tuple(&repl_tuple, tuple, l3proto, l4proto)) { init_conntrack()
946 timeouts = l4proto->get_timeouts(net); init_conntrack()
948 timeouts = l4proto->get_timeouts(net); init_conntrack()
951 if (!l4proto->new(ct, skb, dataoff, timeouts)) { init_conntrack()
1026 struct nf_conntrack_l4proto *l4proto, resolve_normal_ct()
1039 l4proto)) { resolve_normal_ct()
1049 h = init_conntrack(net, tmpl, &tuple, l3proto, l4proto, resolve_normal_ct()
1090 struct nf_conntrack_l4proto *l4proto; nf_conntrack_in() local
1119 l4proto = __nf_ct_l4proto_find(pf, protonum); nf_conntrack_in()
1124 if (l4proto->error != NULL) { nf_conntrack_in()
1125 ret = l4proto->error(net, tmpl, skb, dataoff, &ctinfo, nf_conntrack_in()
1139 l3proto, l4proto, &set_reply, &ctinfo); nf_conntrack_in()
1157 timeouts = nf_ct_timeout_lookup(net, ct, l4proto); nf_conntrack_in()
1159 ret = l4proto->packet(ct, skb, dataoff, ctinfo, pf, hooknum, timeouts); 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 Dnf_nat_proto_sctp.c58 .l4proto = IPPROTO_SCTP,
H A Dnf_nat_proto_udp.c69 .l4proto = IPPROTO_UDP,
H A Dnf_nat_proto_dccp.c77 .l4proto = IPPROTO_DCCP,
H A Dnf_nat_proto_tcp.c78 .l4proto = IPPROTO_TCP,
H A Dnf_nat_proto_udplite.c68 .l4proto = IPPROTO_UDPLITE,
H A Dnf_conntrack_netlink.c64 struct nf_conntrack_l4proto *l4proto) ctnetlink_dump_tuples_proto()
75 if (likely(l4proto->tuple_to_nlattr)) ctnetlink_dump_tuples_proto()
76 ret = l4proto->tuple_to_nlattr(skb, tuple); ctnetlink_dump_tuples_proto()
115 struct nf_conntrack_l4proto *l4proto; ctnetlink_dump_tuples() local
122 l4proto = __nf_ct_l4proto_find(tuple->src.l3num, ctnetlink_dump_tuples()
124 ret = ctnetlink_dump_tuples_proto(skb, tuple, l4proto); ctnetlink_dump_tuples()
174 struct nf_conntrack_l4proto *l4proto; ctnetlink_dump_protoinfo() local
178 l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); ctnetlink_dump_protoinfo()
179 if (!l4proto->to_nlattr) ctnetlink_dump_protoinfo()
186 ret = l4proto->to_nlattr(skb, nest_proto, ct); ctnetlink_dump_protoinfo()
545 struct nf_conntrack_l4proto *l4proto; ctnetlink_proto_size() local
552 l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); ctnetlink_proto_size()
553 len += l4proto->nla_size; ctnetlink_proto_size()
929 struct nf_conntrack_l4proto *l4proto; ctnetlink_parse_tuple_proto() local
941 l4proto = __nf_ct_l4proto_find(tuple->src.l3num, tuple->dst.protonum); ctnetlink_parse_tuple_proto()
943 if (likely(l4proto->nlattr_to_tuple)) { ctnetlink_parse_tuple_proto()
945 l4proto->nla_policy); ctnetlink_parse_tuple_proto()
947 ret = l4proto->nlattr_to_tuple(tb, tuple); ctnetlink_parse_tuple_proto()
1554 struct nf_conntrack_l4proto *l4proto; ctnetlink_change_protoinfo() local
1562 l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); ctnetlink_change_protoinfo()
1563 if (l4proto->from_nlattr) ctnetlink_change_protoinfo()
1564 err = l4proto->from_nlattr(tb, ct); ctnetlink_change_protoinfo()
2439 struct nf_conntrack_l4proto *l4proto; ctnetlink_exp_dump_mask() local
2456 l4proto = __nf_ct_l4proto_find(tuple->src.l3num, ctnetlink_exp_dump_mask()
2458 ret = ctnetlink_dump_tuples_proto(skb, &m, l4proto); ctnetlink_exp_dump_mask()
62 ctnetlink_dump_tuples_proto(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple, struct nf_conntrack_l4proto *l4proto) ctnetlink_dump_tuples_proto() argument
H A Dxt_ipvs.c74 if ((iph.protocol == data->l4proto) ^ ipvs_mt()
H A Dnf_conntrack_proto_udp.c310 .l4proto = IPPROTO_UDP,
342 .l4proto = IPPROTO_UDP,
H A Dnf_conntrack_proto_udplite.c275 .l4proto = IPPROTO_UDPLITE,
307 .l4proto = IPPROTO_UDPLITE,
H A Dxt_conntrack.c86 (nf_ct_protonum(ct) == info->l4proto) ^ ct_proto_port_check()
130 (nf_ct_protonum(ct) == info->l4proto) ^ ct_proto_port_check_v3()
H A Dnf_conntrack_proto_generic.c226 .l4proto = 255,
H A Dnf_conntrack_proto_gre.c366 .l4proto = IPPROTO_GRE,
H A Dnf_conntrack_proto_dccp.c870 .l4proto = IPPROTO_DCCP,
904 .l4proto = IPPROTO_DCCP,
H A Dnf_conntrack_proto_sctp.c842 .l4proto = IPPROTO_SCTP,
876 .l4proto = IPPROTO_SCTP,
H A Dnf_conntrack_proto_tcp.c1670 .l4proto = IPPROTO_TCP,
1707 .l4proto = IPPROTO_TCP,
/linux-4.4.14/include/net/netfilter/
H A Dnf_conntrack_timeout.h18 struct nf_conntrack_l4proto *l4proto; member in struct:ctnl_timeout
70 struct nf_conntrack_l4proto *l4proto) nf_ct_timeout_lookup()
80 timeouts = l4proto->get_timeouts(net); nf_ct_timeout_lookup()
82 timeouts = l4proto->get_timeouts(net); nf_ct_timeout_lookup()
87 return l4proto->get_timeouts(net); nf_ct_timeout_lookup()
69 nf_ct_timeout_lookup(struct net *net, struct nf_conn *ct, struct nf_conntrack_l4proto *l4proto) nf_ct_timeout_lookup() argument
H A Dnf_nat_l4proto.h12 u8 l4proto; member in struct:nf_nat_l4proto
45 int nf_nat_l4proto_register(u8 l3proto, const struct nf_nat_l4proto *l4proto);
47 const struct nf_nat_l4proto *l4proto);
49 const struct nf_nat_l4proto *__nf_nat_l4proto_find(u8 l3proto, u8 l4proto);
H A Dnf_conntrack_l4proto.h24 u_int8_t l4proto; member in struct:nf_conntrack_l4proto
99 /* Init l4proto pernet data */
118 u_int8_t l4proto);
121 u_int8_t l4proto);
H A Dnf_conntrack_core.h47 const struct nf_conntrack_l4proto *l4proto);
52 const struct nf_conntrack_l4proto *l4proto);
H A Dnf_nat_l3proto.h15 const struct nf_nat_l4proto *l4proto,
/linux-4.4.14/include/uapi/linux/netfilter/
H A Dxt_ipvs.h21 __u8 l4proto; member in struct:xt_ipvs_mtinfo
H A Dxt_conntrack.h43 __u16 l4proto; member in struct:xt_conntrack_mtinfo1
56 __u16 l4proto; member in struct:xt_conntrack_mtinfo2
69 __u16 l4proto; member in struct:xt_conntrack_mtinfo3
/linux-4.4.14/net/ipv4/netfilter/
H A Dnf_conntrack_l3proto_ipv4_compat.c122 const struct nf_conntrack_l4proto *l4proto; ct_seq_show() local
138 l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); ct_seq_show()
139 NF_CT_ASSERT(l4proto); ct_seq_show()
143 l4proto->name, nf_ct_protonum(ct), ct_seq_show()
147 if (l4proto->print_conntrack) ct_seq_show()
148 l4proto->print_conntrack(s, ct); ct_seq_show()
154 l3proto, l4proto); ct_seq_show()
166 l3proto, l4proto); ct_seq_show()
H A Dnf_nat_l3proto_ipv4.c80 const struct nf_nat_l4proto *l4proto, nf_nat_ipv4_manip_pkt()
93 if (!l4proto->manip_pkt(skb, &nf_nat_l3proto_ipv4, iphdroff, hdroff, nf_nat_ipv4_manip_pkt()
202 const struct nf_nat_l4proto *l4proto; nf_nat_icmp_reply_translation() local
233 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV4, inside->ip.protocol); nf_nat_icmp_reply_translation()
235 l4proto, &ct->tuplehash[!dir].tuple, !manip)) nf_nat_icmp_reply_translation()
249 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV4, 0); nf_nat_icmp_reply_translation()
250 if (!nf_nat_ipv4_manip_pkt(skb, 0, l4proto, &target, manip)) nf_nat_icmp_reply_translation()
78 nf_nat_ipv4_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, const struct nf_nat_l4proto *l4proto, const struct nf_conntrack_tuple *target, enum nf_nat_manip_type maniptype) nf_nat_ipv4_manip_pkt() argument
H A Dnf_nat_proto_icmp.c76 .l4proto = IPPROTO_ICMP,
H A Dnf_nat_proto_gre.c123 .l4proto = IPPROTO_GRE,
H A Dnf_conntrack_proto_icmp.c402 .l4proto = IPPROTO_ICMP,
/linux-4.4.14/net/ipv6/netfilter/
H A Dnf_nat_l3proto_ipv6.c79 const struct nf_nat_l4proto *l4proto, nf_nat_ipv6_manip_pkt()
99 !l4proto->manip_pkt(skb, &nf_nat_l3proto_ipv6, iphdroff, hdroff, nf_nat_ipv6_manip_pkt()
208 const struct nf_nat_l4proto *l4proto; nf_nat_icmpv6_reply_translation() local
239 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, inside->ip6.nexthdr); nf_nat_icmpv6_reply_translation()
241 l4proto, &ct->tuplehash[!dir].tuple, !manip)) nf_nat_icmpv6_reply_translation()
256 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, IPPROTO_ICMPV6); nf_nat_icmpv6_reply_translation()
257 if (!nf_nat_ipv6_manip_pkt(skb, 0, l4proto, &target, manip)) nf_nat_icmpv6_reply_translation()
77 nf_nat_ipv6_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, const struct nf_nat_l4proto *l4proto, const struct nf_conntrack_tuple *target, enum nf_nat_manip_type maniptype) nf_nat_ipv6_manip_pkt() argument
H A Dnf_nat_proto_icmpv6.c83 .l4proto = IPPROTO_ICMPV6,
H A Dnf_conntrack_proto_icmpv6.c372 .l4proto = IPPROTO_ICMPV6,
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_io.c463 u8 l4proto, opcode = 0, hdr_len = 0; qlcnic_tx_pkt() local
557 l4proto = ip_hdr(skb)->protocol; qlcnic_tx_pkt()
559 if (l4proto == IPPROTO_TCP) qlcnic_tx_pkt()
561 else if (l4proto == IPPROTO_UDP) qlcnic_tx_pkt()
564 l4proto = ipv6_hdr(skb)->nexthdr; qlcnic_tx_pkt()
566 if (l4proto == IPPROTO_TCP) qlcnic_tx_pkt()
568 else if (l4proto == IPPROTO_UDP) qlcnic_tx_pkt()
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_main.c1921 u8 l4proto; netxen_tso_check() local
1924 l4proto = ip_hdr(skb)->protocol; netxen_tso_check()
1926 if (l4proto == IPPROTO_TCP) netxen_tso_check()
1928 else if(l4proto == IPPROTO_UDP) netxen_tso_check()
1931 l4proto = ipv6_hdr(skb)->nexthdr; netxen_tso_check()
1933 if (l4proto == IPPROTO_TCP) netxen_tso_check()
1935 else if(l4proto == IPPROTO_UDP) netxen_tso_check()

Completed in 1634 milliseconds