Home
last modified time | relevance | path

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

/drivers/infiniband/sw/rxe/
Drxe_icrc.c41 struct iphdr *ip4h = NULL; in rxe_icrc_hdr() local
64 ip4h = (struct iphdr *)pshdr; in rxe_icrc_hdr()
65 udph = (struct udphdr *)(ip4h + 1); in rxe_icrc_hdr()
67 ip4h->ttl = 0xff; in rxe_icrc_hdr()
68 ip4h->check = CSUM_MANGLED_0; in rxe_icrc_hdr()
69 ip4h->tos = 0xff; in rxe_icrc_hdr()
/drivers/net/ipvlan/
Dipvlan_core.c137 struct iphdr *ip4h; in ipvlan_get_L3_hdr() local
139 if (unlikely(!pskb_may_pull(skb, sizeof(*ip4h)))) in ipvlan_get_L3_hdr()
142 ip4h = ip_hdr(skb); in ipvlan_get_L3_hdr()
143 pktlen = ntohs(ip4h->tot_len); in ipvlan_get_L3_hdr()
144 if (ip4h->ihl < 5 || ip4h->version != 4) in ipvlan_get_L3_hdr()
146 if (skb->len < pktlen || pktlen < (ip4h->ihl * 4)) in ipvlan_get_L3_hdr()
150 lyr3h = ip4h; in ipvlan_get_L3_hdr()
347 struct iphdr *ip4h; in ipvlan_addr_lookup() local
350 ip4h = (struct iphdr *)lyr3h; in ipvlan_addr_lookup()
351 i4addr = use_dest ? &ip4h->daddr : &ip4h->saddr; in ipvlan_addr_lookup()
[all …]
/drivers/net/
Dvrf.c248 struct iphdr *ip4h; in vrf_process_v4_outbound() local
257 ip4h = ip_hdr(skb); in vrf_process_v4_outbound()
263 fl4.flowi4_tos = RT_TOS(ip4h->tos); in vrf_process_v4_outbound()
265 fl4.flowi4_proto = ip4h->protocol; in vrf_process_v4_outbound()
266 fl4.daddr = ip4h->daddr; in vrf_process_v4_outbound()
267 fl4.saddr = ip4h->saddr; in vrf_process_v4_outbound()
287 if (!ip4h->saddr) { in vrf_process_v4_outbound()
288 ip4h->saddr = inet_select_addr(skb_dst(skb)->dev, 0, in vrf_process_v4_outbound()
/drivers/infiniband/core/
Dverbs.c325 const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; in ib_get_rdma_header_version() local
333 return (ip4h->version == 4) ? 4 : 0; in ib_get_rdma_header_version()
339 if (ip4h->ihl != 5) in ib_get_rdma_header_version()
346 memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked)); in ib_get_rdma_header_version()
350 if (ip4h->check == ip4h_checked.check) in ib_get_rdma_header_version()
/drivers/net/ethernet/marvell/
Dmvneta.c1873 struct iphdr *ip4h = ip_hdr(skb); in mvneta_skb_tx_csum() local
1876 ip_hdr_len = ip4h->ihl; in mvneta_skb_tx_csum()
1877 l4_proto = ip4h->protocol; in mvneta_skb_tx_csum()
Dmvpp2.c6070 struct iphdr *ip4h = ip_hdr(skb); in mvpp2_skb_tx_csum() local
6073 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum()
6074 l4_proto = ip4h->protocol; in mvpp2_skb_tx_csum()