/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 47 struct iphdr *ip4h; in rmnet_map_ipv4_dl_csum_trailer() local 51 ip4h = (struct iphdr *)(skb->data); in rmnet_map_ipv4_dl_csum_trailer() 52 if ((ntohs(ip4h->frag_off) & IP_MF) || in rmnet_map_ipv4_dl_csum_trailer() 53 ((ntohs(ip4h->frag_off) & IP_OFFSET) > 0)) { in rmnet_map_ipv4_dl_csum_trailer() 58 txporthdr = skb->data + ip4h->ihl * 4; in rmnet_map_ipv4_dl_csum_trailer() 60 csum_field = rmnet_map_get_csum_field(ip4h->protocol, txporthdr); in rmnet_map_ipv4_dl_csum_trailer() 68 if (*csum_field == 0 && ip4h->protocol == IPPROTO_UDP) { in rmnet_map_ipv4_dl_csum_trailer() 74 hdr_csum = ~ip_fast_csum(ip4h, (int)ip4h->ihl); in rmnet_map_ipv4_dl_csum_trailer() 78 pseudo_csum = ~csum_tcpudp_magic(ip4h->saddr, ip4h->daddr, in rmnet_map_ipv4_dl_csum_trailer() 79 ntohs(ip4h->tot_len) - ip4h->ihl * 4, in rmnet_map_ipv4_dl_csum_trailer() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
D | rxe_icrc.c | 14 struct iphdr *ip4h = NULL; in rxe_icrc_hdr() local 37 ip4h = (struct iphdr *)pshdr; in rxe_icrc_hdr() 38 udph = (struct udphdr *)(ip4h + 1); in rxe_icrc_hdr() 40 ip4h->ttl = 0xff; in rxe_icrc_hdr() 41 ip4h->check = CSUM_MANGLED_0; in rxe_icrc_hdr() 42 ip4h->tos = 0xff; in rxe_icrc_hdr()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
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()
|
D | test_tc_neigh.c | 53 struct iphdr *ip4h; in is_remote_ep_v4() local 58 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v4() 59 if ((void *)(ip4h + 1) > data_end) in is_remote_ep_v4() 62 return ip4h->daddr == addr; in is_remote_ep_v4()
|
/kernel/linux/linux-5.10/drivers/net/ipvlan/ |
D | ipvlan_core.c | 154 struct iphdr *ip4h; in ipvlan_get_L3_hdr() local 156 if (unlikely(!pskb_may_pull(skb, sizeof(*ip4h)))) in ipvlan_get_L3_hdr() 159 ip4h = ip_hdr(skb); in ipvlan_get_L3_hdr() 160 pktlen = ntohs(ip4h->tot_len); in ipvlan_get_L3_hdr() 161 if (ip4h->ihl < 5 || ip4h->version != 4) in ipvlan_get_L3_hdr() 163 if (skb->len < pktlen || pktlen < (ip4h->ihl * 4)) in ipvlan_get_L3_hdr() 167 lyr3h = ip4h; in ipvlan_get_L3_hdr() 386 struct iphdr *ip4h; in ipvlan_addr_lookup() local 389 ip4h = (struct iphdr *)lyr3h; in ipvlan_addr_lookup() 390 i4addr = use_dest ? &ip4h->daddr : &ip4h->saddr; in ipvlan_addr_lookup() [all …]
|
D | ipvlan_l3s.c | 51 struct iphdr *ip4h = ip_hdr(skb); in ipvlan_l3_rcv() local 54 err = ip_route_input_noref(skb, ip4h->daddr, ip4h->saddr, in ipvlan_l3_rcv() 55 ip4h->tos, sdev); in ipvlan_l3_rcv()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | vrf.c | 540 struct iphdr *ip4h; in vrf_process_v4_outbound() local 549 ip4h = ip_hdr(skb); in vrf_process_v4_outbound() 555 fl4.flowi4_tos = RT_TOS(ip4h->tos); in vrf_process_v4_outbound() 557 fl4.flowi4_proto = ip4h->protocol; in vrf_process_v4_outbound() 558 fl4.daddr = ip4h->daddr; in vrf_process_v4_outbound() 559 fl4.saddr = ip4h->saddr; in vrf_process_v4_outbound() 579 if (!ip4h->saddr) { in vrf_process_v4_outbound() 580 ip4h->saddr = inet_select_addr(skb_dst(skb)->dev, 0, in vrf_process_v4_outbound()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | verbs.c | 626 const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; in ib_get_rdma_header_version() local 634 return (ip4h->version == 4) ? 4 : 0; in ib_get_rdma_header_version() 640 if (ip4h->ihl != 5) in ib_get_rdma_header_version() 647 memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked)); in ib_get_rdma_header_version() 651 if (ip4h->check == ip4h_checked.check) in ib_get_rdma_header_version()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/ |
D | mvneta.c | 1918 struct iphdr *ip4h = ip_hdr(skb); in mvneta_skb_tx_csum() local 1921 ip_hdr_len = ip4h->ihl; in mvneta_skb_tx_csum() 1922 l4_proto = ip4h->protocol; in mvneta_skb_tx_csum()
|
/kernel/linux/linux-5.10/net/core/ |
D | filter.c | 2340 const struct iphdr *ip4h = ip_hdr(skb); in __bpf_redirect_neigh_v4() local 2348 .flowi4_tos = RT_TOS(ip4h->tos), in __bpf_redirect_neigh_v4() 2350 .flowi4_proto = ip4h->protocol, in __bpf_redirect_neigh_v4() 2351 .daddr = ip4h->daddr, in __bpf_redirect_neigh_v4() 2352 .saddr = ip4h->saddr, in __bpf_redirect_neigh_v4()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 3232 struct iphdr *ip4h = ip_hdr(skb); in mvpp2_skb_tx_csum() local 3235 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum() 3236 l4_proto = ip4h->protocol; in mvpp2_skb_tx_csum()
|