Searched refs:ip4h (Results 1 – 7 of 7) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_tc_neigh_fib.c | 29 struct iphdr *ip4h; in fill_fib_params_v4() local 34 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in fill_fib_params_v4() 35 if ((void *)(ip4h + 1) > data_end) in fill_fib_params_v4() 39 fib_params->tos = ip4h->tos; in fill_fib_params_v4() 40 fib_params->l4_protocol = ip4h->protocol; in fill_fib_params_v4() 43 fib_params->tot_len = bpf_ntohs(ip4h->tot_len); in fill_fib_params_v4() 44 fib_params->ipv4_src = ip4h->saddr; in fill_fib_params_v4() 45 fib_params->ipv4_dst = ip4h->daddr; in fill_fib_params_v4()
|
| H A D | test_tc_neigh.c | 44 struct iphdr *ip4h; in is_remote_ep_v4() local 49 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v4() 50 if ((void *)(ip4h + 1) > data_end) in is_remote_ep_v4() 53 return ip4h->daddr == addr; in is_remote_ep_v4()
|
| /linux/drivers/net/ipvlan/ |
| H A D | ipvlan_l3s.c | 53 const struct iphdr *ip4h = ip_hdr(skb); in ipvlan_l3_rcv() local 56 err = ip_route_input_noref(skb, ip4h->daddr, ip4h->saddr, in ipvlan_l3_rcv() 57 ip4h_dscp(ip4h), sdev); in ipvlan_l3_rcv()
|
| /linux/drivers/net/ |
| H A D | vrf.c | 493 struct iphdr *ip4h; in vrf_process_v4_outbound() local 502 ip4h = ip_hdr(skb); in vrf_process_v4_outbound() 508 fl4.flowi4_dscp = ip4h_dscp(ip4h); in vrf_process_v4_outbound() 510 fl4.flowi4_proto = ip4h->protocol; in vrf_process_v4_outbound() 511 fl4.daddr = ip4h->daddr; in vrf_process_v4_outbound() 512 fl4.saddr = ip4h->saddr; in vrf_process_v4_outbound() 531 if (!ip4h->saddr) { in vrf_process_v4_outbound() 532 ip4h->saddr = inet_select_addr(skb_dst(skb)->dev, 0, in vrf_process_v4_outbound()
|
| /linux/include/net/ |
| H A D | ip.h | 425 static inline dscp_t ip4h_dscp(const struct iphdr *ip4h) in ip4h_dscp() argument 427 return inet_dsfield_to_dscp(ip4h->tos); in ip4h_dscp()
|
| /linux/net/core/ |
| H A D | filter.c | 2370 const struct iphdr *ip4h = ip_hdr(skb); in __bpf_redirect_neigh_v4() local 2378 .flowi4_dscp = ip4h_dscp(ip4h), in __bpf_redirect_neigh_v4() 2380 .flowi4_proto = ip4h->protocol, in __bpf_redirect_neigh_v4() 2381 .daddr = ip4h->daddr, in __bpf_redirect_neigh_v4() 2382 .saddr = ip4h->saddr, in __bpf_redirect_neigh_v4()
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| H A D | mvpp2_main.c | 3614 struct iphdr *ip4h = ip_hdr(skb); in mvpp2_skb_tx_csum() local 3617 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum() 3618 l4_proto = ip4h->protocol; in mvpp2_skb_tx_csum()
|