Searched refs:ip4h (Results 1 – 10 of 10) 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/ethernet/qualcomm/rmnet/ |
| H A D | rmnet_map_data.c | 37 struct iphdr *ip4h = (struct iphdr *)skb->data; in rmnet_map_ipv4_dl_csum_trailer() local 38 void *txporthdr = skb->data + ip4h->ihl * 4; in rmnet_map_ipv4_dl_csum_trailer() 46 if (ip_fast_csum(ip4h, ip4h->ihl)) { in rmnet_map_ipv4_dl_csum_trailer() 52 if (ip_is_fragment(ip4h)) { in rmnet_map_ipv4_dl_csum_trailer() 58 csum_field = rmnet_map_get_csum_field(ip4h->protocol, txporthdr); in rmnet_map_ipv4_dl_csum_trailer() 65 if (!*csum_field && ip4h->protocol == IPPROTO_UDP) { in rmnet_map_ipv4_dl_csum_trailer() 93 pseudo_csum = csum_tcpudp_magic(ip4h->saddr, ip4h->daddr, in rmnet_map_ipv4_dl_csum_trailer() 94 ntohs(ip4h->tot_len) - ip4h->ihl * 4, in rmnet_map_ipv4_dl_csum_trailer() 95 ip4h->protocol, 0); in rmnet_map_ipv4_dl_csum_trailer() 167 static void rmnet_map_complement_ipv4_txporthdr_csum_field(struct iphdr *ip4h) in rmnet_map_complement_ipv4_txporthdr_csum_field() argument [all …]
|
| /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 | 432 static inline dscp_t ip4h_dscp(const struct iphdr *ip4h) in ip_mtu_locked() 434 return inet_dsfield_to_dscp(ip4h->tos); in ip_mtu_locked() 425 ip4h_dscp(const struct iphdr * ip4h) ip4h_dscp() argument
|
| /linux/drivers/infiniband/core/ |
| H A D | verbs.c | 688 const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; in ib_get_rdma_header_version() local 696 return (ip4h->version == 4) ? 4 : 0; in ib_get_rdma_header_version() 702 if (ip4h->ihl != 5) in ib_get_rdma_header_version() 709 memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked)); in ib_get_rdma_header_version() 713 if (ip4h->check == ip4h_checked.check) in ib_get_rdma_header_version()
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | mvneta.c | 1963 struct iphdr *ip4h = ip_hdr(skb); in mvneta_skb_tx_csum() local 1966 ip_hdr_len = ip4h->ihl; in mvneta_skb_tx_csum() 1967 l4_proto = ip4h->protocol; in mvneta_skb_tx_csum()
|
| /linux/net/core/ |
| H A D | filter.c | 2383 const struct iphdr *ip4h = ip_hdr(skb); in __bpf_redirect_neigh_v4() local 2391 .flowi4_dscp = ip4h_dscp(ip4h), in __bpf_redirect_neigh_v4() 2393 .flowi4_proto = ip4h->protocol, in __bpf_redirect_neigh_v4() 2394 .daddr = ip4h->daddr, in __bpf_redirect_neigh_v4() 2395 .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()
|