/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_tunnel.c | 200 static int set_ipip_encap(const char *ipproto, const char *type) in set_ipip_encap() argument 202 SYS(fail, "ip -n at_ns0 fou add port 5555 %s", ipproto); in set_ipip_encap() 216 const char *ipproto, *type; in add_ipip_tunnel() local 220 ipproto = "ipproto 4"; in add_ipip_tunnel() 224 ipproto = "gue"; in add_ipip_tunnel() 225 type = ipproto; in add_ipip_tunnel() 228 ipproto = NULL; in add_ipip_tunnel() 229 type = ipproto; in add_ipip_tunnel() 236 if (type && ipproto) { in add_ipip_tunnel() 237 err = set_ipip_encap(ipproto, type); in add_ipip_tunnel() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | ipip.c | 212 static int ipip_tunnel_rcv(struct sk_buff *skb, u8 ipproto) in ipip_tunnel_rcv() argument 226 if (tunnel->parms.iph.protocol != ipproto && in ipip_tunnel_rcv() 233 if (ipproto == IPPROTO_MPLS) in ipip_tunnel_rcv() 279 u8 ipproto; in ipip_tunnel_xmit() local 286 ipproto = IPPROTO_IPIP; in ipip_tunnel_xmit() 290 ipproto = IPPROTO_MPLS; in ipip_tunnel_xmit() 297 if (tiph->protocol != ipproto && tiph->protocol != 0) in ipip_tunnel_xmit() 303 skb_set_inner_ipproto(skb, ipproto); in ipip_tunnel_xmit() 306 ip_md_tunnel_xmit(skb, dev, ipproto, 0); in ipip_tunnel_xmit() 308 ip_tunnel_xmit(skb, dev, tiph, ipproto); in ipip_tunnel_xmit() [all …]
|
H A D | xfrm4_policy.c | 33 fl4->flowi4_proto = params->ipproto; in __xfrm4_dst_lookup()
|
H A D | fou_core.c | 91 void *data, size_t hdrlen, u8 ipproto, in gue_remcsum() argument
|
/openbmc/linux/tools/net/ynl/generated/ |
H A D | fou-user.h | 28 __u32 ipproto:1; member 40 __u8 ipproto; member 63 fou_add_req_set_ipproto(struct fou_add_req *req, __u8 ipproto) in fou_add_req_set_ipproto() argument 65 req->_present.ipproto = 1; in fou_add_req_set_ipproto() 66 req->ipproto = ipproto; in fou_add_req_set_ipproto() 304 __u32 ipproto:1; member 316 __u8 ipproto; member
|
H A D | fou-user.c | 83 if (req->_present.ipproto) in fou_add() 84 mnl_attr_put_u8(nlh, FOU_ATTR_IPPROTO, req->ipproto); in fou_add() 185 dst->_present.ipproto = 1; in fou_get_rsp_parse() 186 dst->ipproto = mnl_attr_get_u8(attr); in fou_get_rsp_parse()
|
/openbmc/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 | 179 u8 ipproto; in nf_flow_tuple_ip() local 193 ipproto = iph->protocol; in nf_flow_tuple_ip() 194 switch (ipproto) { in nf_flow_tuple_ip() 216 switch (ipproto) { in nf_flow_tuple_ip() 238 tuple->l4proto = ipproto; in nf_flow_tuple_ip()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_tc_tunnel.sh | 167 readonly ipproto=4 168 readonly netcat_opt=-${ipproto} 178 readonly ipproto=6 179 readonly netcat_opt=-${ipproto} 234 ip netns exec "${ns2}" ip fou add port $dport ipproto ${dproto}
|
/openbmc/openbmc/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/ |
H A D | socklen_t.patch | 21 - int optsize = sizeof(optbuf), ipproto; 27 + int ipproto;
|
/openbmc/linux/net/ipv6/ |
H A D | sit.c | 749 static int sit_tunnel_rcv(struct sk_buff *skb, u8 ipproto) in sit_tunnel_rcv() argument 763 if (tunnel->parms.iph.protocol != ipproto && in sit_tunnel_rcv() 770 if (ipproto == IPPROTO_MPLS) in sit_tunnel_rcv() 1047 struct net_device *dev, u8 ipproto) in sit_tunnel_xmit__() argument 1055 skb_set_inner_ipproto(skb, ipproto); in sit_tunnel_xmit__() 1057 ip_tunnel_xmit(skb, dev, tiph, ipproto); in sit_tunnel_xmit__() 1243 static bool ipip6_valid_ip_proto(u8 ipproto) in ipip6_valid_ip_proto() argument 1245 return ipproto == IPPROTO_IPV6 || in ipip6_valid_ip_proto() 1246 ipproto == IPPROTO_IPIP || in ipip6_valid_ip_proto() 1248 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() 1425 u8 ipproto; in ip6_tnl_start_xmit() local 1433 ipproto = IPPROTO_IPIP; in ip6_tnl_start_xmit() 1438 ipproto = IPPROTO_IPV6; in ip6_tnl_start_xmit() 1441 ipproto = IPPROTO_MPLS; in ip6_tnl_start_xmit() 1447 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()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tc_encap_actions.c | 265 static void efx_gen_tun_header_ipv4(struct efx_tc_encap_action *encap, u8 ipproto, u8 len) in efx_gen_tun_header_ipv4() argument 277 ip->protocol = ipproto; in efx_gen_tun_header_ipv4() 285 static void efx_gen_tun_header_ipv6(struct efx_tc_encap_action *encap, u8 ipproto, u8 len) in efx_gen_tun_header_ipv6() argument 298 ip->nexthdr = ipproto; in efx_gen_tun_header_ipv6()
|
H A D | efx_common.c | 1295 u8 ipproto; in efx_can_encap_offloads() local 1307 ipproto = ip_hdr(skb)->protocol; in efx_can_encap_offloads() 1313 ipproto = ipv6_hdr(skb)->nexthdr; in efx_can_encap_offloads() 1319 switch (ipproto) { in efx_can_encap_offloads()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | pmtu.sh | 409 ipproto="4" 412 ipproto="41" 421 ipproto="4 -6" 425 ipproto="41 -6" 429 run_cmd ${ns_a} ip fou add port 5555 ipproto ${ipproto} || return $ksft_skip 432 run_cmd ${ns_b} ip fou add port 5556 ipproto ${ipproto}
|
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()
|
H A D | rtnetlink.sh | 554 ip -netns "$testns" fou add port 7777 ipproto 47 2>/dev/null 560 ip -netns "$testns" fou add port 8888 ipproto 4
|
H A D | fib_tests.sh | 2203 $IP rule add pref 100 ipproto udp sport 12345 dport 54321 table 123 2261 $IP -6 rule add pref 100 ipproto udp sport 12345 dport 54321 table 123
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | efx_common.c | 1312 u8 ipproto; in efx_can_encap_offloads() local 1324 ipproto = ip_hdr(skb)->protocol; in efx_can_encap_offloads() 1330 ipproto = ipv6_hdr(skb)->nexthdr; in efx_can_encap_offloads() 1336 switch (ipproto) { in efx_can_encap_offloads()
|
/openbmc/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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_rx.c | 584 __u8 ipproto = iph->protocol; in get_fixed_ipv4_csum() local 586 if (unlikely(ipproto == IPPROTO_SCTP)) in get_fixed_ipv4_csum() 591 length_for_csum, ipproto, 0); in get_fixed_ipv4_csum()
|
/openbmc/linux/include/net/ |
H A D | xfrm.h | 352 __u8 ipproto; member 464 static inline const struct xfrm_mode *xfrm_ip2inner_mode(struct xfrm_state *x, int ipproto) in xfrm_ip2inner_mode() argument 466 if ((ipproto == IPPROTO_IPIP && x->props.family == AF_INET) || in xfrm_ip2inner_mode() 467 (ipproto == IPPROTO_IPV6 && x->props.family == AF_INET6)) in xfrm_ip2inner_mode()
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_policy.c | 299 params.ipproto = x->id.proto; in xfrm_dst_lookup() 303 params.ipproto = IPPROTO_UDP; in xfrm_dst_lookup() 308 params.ipproto = IPPROTO_TCP; in xfrm_dst_lookup()
|
/openbmc/linux/include/linux/ |
H A D | skbuff.h | 2782 __u8 ipproto) in skb_set_inner_ipproto() argument 2784 skb->inner_ipproto = ipproto; in skb_set_inner_ipproto()
|