| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_tc_tunnel.c | 57 int ipproto; member 113 if (cfg->ipproto == 6) in set_subtest_addresses() 125 if (cfg->ipproto == 6) { in set_subtest_addresses() 136 int family = cfg->ipproto == 6 ? AF_INET6 : AF_INET; in run_server() 172 int family = cfg->ipproto == 6 ? AF_INET6 : AF_INET; in connect_client_to_server() 269 fou_proto = cfg->ipproto == 6 ? 41 : 4; in configure_fou_rx_port() 273 cfg->ipproto == 6 ? " -6" : ""); in configure_fou_rx_port() 543 .ipproto = 4, 549 .ipproto = 4, 557 .ipproto = 6, [all …]
|
| H A D | test_tunnel.c | 229 static int set_ipip_encap(const char *ipproto, const char *type) in add_ipip_tunnel() 231 SYS(fail, "ip -n at_ns0 fou add port 5555 %s", ipproto); in add_ipip_tunnel() 257 const char *ipproto, *type; in add_ipip_tunnel() 261 ipproto = "ipproto 4"; in add_ipip_tunnel() 265 ipproto = "gue"; in delete_ipip_tunnel() 266 type = ipproto; in delete_ipip_tunnel() 269 ipproto = NULL; in delete_ipip_tunnel() 270 type = ipproto; in delete_ipip_tunnel() 277 if (type && ipproto) { in add_xfrm_tunnel() 206 set_ipip_encap(const char * ipproto,const char * type) set_ipip_encap() argument 222 const char *ipproto, *type; add_ipip_tunnel() local [all...] |
| /linux/net/ipv4/ |
| H A D | ipip.c | 215 static int ipip_tunnel_rcv(struct sk_buff *skb, u8 ipproto) in ipip_tunnel_rcv() argument 232 if (tunnel->parms.iph.protocol != ipproto && in ipip_tunnel_rcv() 239 if (ipproto == IPPROTO_MPLS) in ipip_tunnel_rcv() 287 u8 ipproto; in ipip_tunnel_xmit() local 294 ipproto = IPPROTO_IPIP; in ipip_tunnel_xmit() 298 ipproto = IPPROTO_MPLS; in ipip_tunnel_xmit() 305 if (tiph->protocol != ipproto && tiph->protocol != 0) in ipip_tunnel_xmit() 311 skb_set_inner_ipproto(skb, ipproto); in ipip_tunnel_xmit() 314 ip_md_tunnel_xmit(skb, dev, ipproto, 0); in ipip_tunnel_xmit() 316 ip_tunnel_xmit(skb, dev, tiph, ipproto); in ipip_tunnel_xmit() 326 ipip_tunnel_ioctl_verify_protocol(u8 ipproto) ipip_tunnel_ioctl_verify_protocol() argument [all...] |
| H A D | fou_core.c | 91 void *data, size_t hdrlen, u8 ipproto, in gue_remcsum() argument
|
| /linux/net/netfilter/ |
| H A D | xt_l2tp.c | 173 u8 ipproto = iph->protocol; in l2tp_mt4() local 176 switch (ipproto) { in l2tp_mt4() 191 int ipproto; in l2tp_mt6() local 193 ipproto = ipv6_find_hdr(skb, &thoff, -1, &fragoff, NULL); in l2tp_mt6() 198 switch (ipproto) { in l2tp_mt6()
|
| H A D | nf_flow_table_ip.c | 222 u8 ipproto; in nf_flow_tuple_ip() 236 ipproto = iph->protocol; in nf_flow_tuple_ip() 237 switch (ipproto) { in nf_flow_tuple_ip() 259 switch (ipproto) { in nf_flow_exceeds_mtu() 281 tuple->l4proto = ipproto; in nf_flow_skb_encap_protocol() 183 u8 ipproto; nf_flow_tuple_ip() local
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_tc_tunnel.sh | |
| /linux/net/ipv6/ |
| H A D | sit.c | 752 static int sit_tunnel_rcv(struct sk_buff *skb, u8 ipproto) in sit_tunnel_rcv() argument 766 if (tunnel->parms.iph.protocol != ipproto && in sit_tunnel_rcv() 773 if (ipproto == IPPROTO_MPLS) in sit_tunnel_rcv() 1042 struct net_device *dev, u8 ipproto) in sit_tunnel_xmit__() argument 1050 skb_set_inner_ipproto(skb, ipproto); in sit_tunnel_xmit__() 1052 ip_tunnel_xmit(skb, dev, tiph, ipproto); in sit_tunnel_xmit__() 1239 static bool ipip6_valid_ip_proto(u8 ipproto) in ipip6_valid_ip_proto() argument 1241 return ipproto == IPPROTO_IPV6 || in ipip6_valid_ip_proto() 1242 ipproto == IPPROTO_IPIP || in ipip6_valid_ip_proto() 1244 ipproto == IPPROTO_MPLS || in ipip6_valid_ip_proto() [all …]
|
| H A D | ip6_tunnel.c | 463 ip6_tnl_err(struct sk_buff *skb, __u8 ipproto, struct inet6_skb_parm *opt, in ip6_tnl_err() argument 487 if (tproto != ipproto && tproto != 0) in ip6_tnl_err() 923 static int ipxip6_rcv(struct sk_buff *skb, u8 ipproto, in ipxip6_rcv() argument 940 if (tproto != ipproto && tproto != 0) in ipxip6_rcv() 1426 u8 ipproto; in ip6_tnl_start_xmit() local 1434 ipproto = IPPROTO_IPIP; in ip6_tnl_start_xmit() 1439 ipproto = IPPROTO_IPV6; in ip6_tnl_start_xmit() 1442 ipproto = IPPROTO_MPLS; in ip6_tnl_start_xmit() 1448 ret = ipxip6_tnl_xmit(skb, dev, ipproto); in ip6_tnl_start_xmit()
|
| H A D | xfrm6_policy.c | 40 fl6.flowi4_proto = params->ipproto; in xfrm6_dst_lookup()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | tc_encap_actions.c | 267 static void efx_gen_tun_header_ipv4(struct efx_tc_encap_action *encap, u8 ipproto, u8 len) in efx_gen_tun_header_ipv4() argument 279 ip->protocol = ipproto; in efx_gen_tun_header_ipv4() 287 static void efx_gen_tun_header_ipv6(struct efx_tc_encap_action *encap, u8 ipproto, u8 len) in efx_gen_tun_header_ipv6() argument 300 ip->nexthdr = ipproto; in efx_gen_tun_header_ipv6()
|
| H A D | efx_common.c | 1275 u8 ipproto; in efx_can_encap_offloads() local 1287 ipproto = ip_hdr(skb)->protocol; in efx_can_encap_offloads() 1293 ipproto = ipv6_hdr(skb)->nexthdr; in efx_can_encap_offloads() 1299 switch (ipproto) { in efx_can_encap_offloads()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | efx_common.c | 1302 u8 ipproto; in efx_can_encap_offloads() local 1314 ipproto = ip_hdr(skb)->protocol; in efx_can_encap_offloads() 1320 ipproto = ipv6_hdr(skb)->nexthdr; in efx_can_encap_offloads() 1326 switch (ipproto) { in efx_can_encap_offloads()
|
| /linux/tools/testing/selftests/net/ |
| H A D | pmtu.sh | 418 ipproto="4" 421 ipproto="41" 430 ipproto="4 -6" 434 ipproto="41 -6" 438 run_cmd ${ns_a} ip fou add port 5555 ipproto ${ipproto} || return $ksft_skip 441 run_cmd ${ns_b} ip fou add port 5556 ipproto ${ipproto}
|
| H A D | rtnetlink.sh | 540 run_cmd ip -netns "$testns" fou add port 7777 ipproto 47 545 run_cmd ip -netns "$testns" fou add port 8888 ipproto 4
|
| H A D | fib_tests.sh | 2389 $IP rule add pref 100 ipproto udp sport 12345 dport 54321 table 123 2447 $IP -6 rule add pref 100 ipproto udp sport 12345 dport 54321 table 123
|
| /linux/net/sched/ |
| H A D | act_ct.c | 521 u8 ipproto; in tcf_ct_flow_table_fill_tuple_ipv4() local 533 ipproto = iph->protocol; in tcf_ct_flow_table_fill_tuple_ipv4() 534 switch (ipproto) { in tcf_ct_flow_table_fill_tuple_ipv4() 556 switch (ipproto) { in tcf_ct_flow_table_fill_tuple_ipv4() 580 tuple->l4proto = ipproto; in tcf_ct_flow_table_fill_tuple_ipv4()
|
| /linux/tools/testing/selftests/net/lib/ |
| H A D | csum.c | 345 static int open_inet(int ipproto, int protocol) in open_inet() argument 349 fd = socket(cfg_family, ipproto, protocol); in open_inet()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_rx.c | 555 __u8 ipproto = iph->protocol; in get_fixed_ipv4_csum() local 557 if (unlikely(ipproto == IPPROTO_SCTP)) in get_fixed_ipv4_csum() 562 length_for_csum, ipproto, 0); in get_fixed_ipv4_csum()
|
| /linux/include/net/ |
| H A D | xfrm.h | 378 __u8 ipproto; member 537 static inline const struct xfrm_mode *xfrm_ip2inner_mode(struct xfrm_state *x, int ipproto) in xfrm_ip2inner_mode() argument 540 (ipproto == IPPROTO_IPIP && x->props.family == AF_INET) || in xfrm_ip2inner_mode() 541 (ipproto == IPPROTO_IPV6 && x->props.family == AF_INET6)) in xfrm_ip2inner_mode()
|
| /linux/net/xfrm/ |
| H A D | xfrm_policy.c | 318 params.ipproto = x->id.proto; in xfrm_dst_lookup() 322 params.ipproto = IPPROTO_UDP; in xfrm_dst_lookup() 327 params.ipproto = IPPROTO_TCP; in xfrm_dst_lookup()
|
| /linux/include/linux/ |
| H A D | skbuff.h | 2967 __u8 ipproto) in skb_set_inner_ipproto() argument 2969 skb->inner_ipproto = ipproto; in skb_set_inner_ipproto()
|