Home
last modified time | relevance | path

Searched refs:ip4h (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/net/ethernet/qualcomm/rmnet/
A Drmnet_map_data.c36 struct iphdr *ip4h = (struct iphdr *)skb->data; in rmnet_map_ipv4_dl_csum_trailer() local
37 void *txporthdr = skb->data + ip4h->ihl * 4; in rmnet_map_ipv4_dl_csum_trailer()
45 if (ip_fast_csum(ip4h, ip4h->ihl)) { in rmnet_map_ipv4_dl_csum_trailer()
51 if (ip_is_fragment(ip4h)) { in rmnet_map_ipv4_dl_csum_trailer()
57 csum_field = rmnet_map_get_csum_field(ip4h->protocol, txporthdr); in rmnet_map_ipv4_dl_csum_trailer()
64 if (!*csum_field && ip4h->protocol == IPPROTO_UDP) { in rmnet_map_ipv4_dl_csum_trailer()
92 pseudo_csum = csum_tcpudp_magic(ip4h->saddr, ip4h->daddr, in rmnet_map_ipv4_dl_csum_trailer()
93 ntohs(ip4h->tot_len) - ip4h->ihl * 4, in rmnet_map_ipv4_dl_csum_trailer()
94 ip4h->protocol, 0); in rmnet_map_ipv4_dl_csum_trailer()
171 txphdr = (void *)ip4h + ip4h->ihl * 4; in rmnet_map_complement_ipv4_txporthdr_csum_field()
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dtest_tc_neigh_fib.c29 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()
A Dtest_tc_neigh.c44 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/
A Dipvlan_core.c154 struct iphdr *ip4h; in ipvlan_get_L3_hdr() local
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()
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()
424 .flowi4_tos = RT_TOS(ip4h->tos), in ipvlan_process_v4_outbound()
427 .daddr = ip4h->daddr, in ipvlan_process_v4_outbound()
[all …]
A Dipvlan_l3s.c51 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()
/linux/drivers/infiniband/sw/rxe/
A Drxe_icrc.c75 struct iphdr *ip4h = NULL; in rxe_icrc_hdr() local
98 ip4h = (struct iphdr *)pshdr; in rxe_icrc_hdr()
99 udph = (struct udphdr *)(ip4h + 1); in rxe_icrc_hdr()
101 ip4h->ttl = 0xff; in rxe_icrc_hdr()
102 ip4h->check = CSUM_MANGLED_0; in rxe_icrc_hdr()
103 ip4h->tos = 0xff; in rxe_icrc_hdr()
/linux/drivers/net/
A Dvrf.c540 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()
578 if (!ip4h->saddr) { in vrf_process_v4_outbound()
579 ip4h->saddr = inet_select_addr(skb_dst(skb)->dev, 0, in vrf_process_v4_outbound()
/linux/drivers/infiniband/core/
A Dverbs.c631 const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; in ib_get_rdma_header_version() local
639 return (ip4h->version == 4) ? 4 : 0; in ib_get_rdma_header_version()
645 if (ip4h->ihl != 5) in ib_get_rdma_header_version()
652 memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked)); in ib_get_rdma_header_version()
656 if (ip4h->check == ip4h_checked.check) in ib_get_rdma_header_version()
/linux/drivers/net/ethernet/marvell/
A Dmvneta.c1925 struct iphdr *ip4h = ip_hdr(skb); in mvneta_skb_tx_csum() local
1928 ip_hdr_len = ip4h->ihl; in mvneta_skb_tx_csum()
1929 l4_proto = ip4h->protocol; in mvneta_skb_tx_csum()
/linux/net/core/
A Dfilter.c2321 const struct iphdr *ip4h = ip_hdr(skb); in __bpf_redirect_neigh_v4() local
2329 .flowi4_tos = RT_TOS(ip4h->tos), in __bpf_redirect_neigh_v4()
2331 .flowi4_proto = ip4h->protocol, in __bpf_redirect_neigh_v4()
2332 .daddr = ip4h->daddr, in __bpf_redirect_neigh_v4()
2333 .saddr = ip4h->saddr, in __bpf_redirect_neigh_v4()
/linux/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_main.c3588 struct iphdr *ip4h = ip_hdr(skb); in mvpp2_skb_tx_csum() local
3591 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum()
3592 l4_proto = ip4h->protocol; in mvpp2_skb_tx_csum()

Completed in 57 milliseconds