Searched refs:ip4h (Results 1 – 6 of 6) sorted by relevance
41 struct iphdr *ip4h = NULL; in rxe_icrc_hdr() local64 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()
137 struct iphdr *ip4h; in ipvlan_get_L3_hdr() local139 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() local350 ip4h = (struct iphdr *)lyr3h; in ipvlan_addr_lookup()351 i4addr = use_dest ? &ip4h->daddr : &ip4h->saddr; in ipvlan_addr_lookup()[all …]
248 struct iphdr *ip4h; in vrf_process_v4_outbound() local257 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()
325 const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; in ib_get_rdma_header_version() local333 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()
1873 struct iphdr *ip4h = ip_hdr(skb); in mvneta_skb_tx_csum() local1876 ip_hdr_len = ip4h->ihl; in mvneta_skb_tx_csum()1877 l4_proto = ip4h->protocol; in mvneta_skb_tx_csum()
6070 struct iphdr *ip4h = ip_hdr(skb); in mvpp2_skb_tx_csum() local6073 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum()6074 l4_proto = ip4h->protocol; in mvpp2_skb_tx_csum()