ip4h 604 drivers/infiniband/core/verbs.c const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; ip4h 612 drivers/infiniband/core/verbs.c return (ip4h->version == 4) ? 4 : 0; ip4h 618 drivers/infiniband/core/verbs.c if (ip4h->ihl != 5) ip4h 625 drivers/infiniband/core/verbs.c memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked)); ip4h 629 drivers/infiniband/core/verbs.c if (ip4h->check == ip4h_checked.check) ip4h 41 drivers/infiniband/sw/rxe/rxe_icrc.c struct iphdr *ip4h = NULL; ip4h 64 drivers/infiniband/sw/rxe/rxe_icrc.c ip4h = (struct iphdr *)pshdr; ip4h 65 drivers/infiniband/sw/rxe/rxe_icrc.c udph = (struct udphdr *)(ip4h + 1); ip4h 67 drivers/infiniband/sw/rxe/rxe_icrc.c ip4h->ttl = 0xff; ip4h 68 drivers/infiniband/sw/rxe/rxe_icrc.c ip4h->check = CSUM_MANGLED_0; ip4h 69 drivers/infiniband/sw/rxe/rxe_icrc.c ip4h->tos = 0xff; ip4h 1855 drivers/net/ethernet/marvell/mvneta.c struct iphdr *ip4h = ip_hdr(skb); ip4h 1858 drivers/net/ethernet/marvell/mvneta.c ip_hdr_len = ip4h->ihl; ip4h 1859 drivers/net/ethernet/marvell/mvneta.c l4_proto = ip4h->protocol; ip4h 2894 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c struct iphdr *ip4h = ip_hdr(skb); ip4h 2897 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c ip_hdr_len = ip4h->ihl; ip4h 2898 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c l4_proto = ip4h->protocol; ip4h 47 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c struct iphdr *ip4h; ip4h 51 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ip4h = (struct iphdr *)(skb->data); ip4h 52 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c if ((ntohs(ip4h->frag_off) & IP_MF) || ip4h 53 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ((ntohs(ip4h->frag_off) & IP_OFFSET) > 0)) { ip4h 58 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c txporthdr = skb->data + ip4h->ihl * 4; ip4h 60 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c csum_field = rmnet_map_get_csum_field(ip4h->protocol, txporthdr); ip4h 68 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c if (*csum_field == 0 && ip4h->protocol == IPPROTO_UDP) { ip4h 74 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c hdr_csum = ~ip_fast_csum(ip4h, (int)ip4h->ihl); ip4h 78 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c pseudo_csum = ~csum_tcpudp_magic(ip4h->saddr, ip4h->daddr, ip4h 79 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ntohs(ip4h->tot_len) - ip4h->ihl * 4, ip4h 80 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ip4h->protocol, 0); ip4h 89 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c switch (ip4h->protocol) { ip4h 183 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c struct iphdr *ip4h = (struct iphdr *)iphdr; ip4h 187 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c txphdr = iphdr + ip4h->ihl * 4; ip4h 189 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c if (ip4h->protocol == IPPROTO_TCP || ip4h->protocol == IPPROTO_UDP) { ip4h 190 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c csum = (u16 *)rmnet_map_get_csum_field(ip4h->protocol, txphdr); ip4h 200 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c struct iphdr *ip4h = (struct iphdr *)iphdr; ip4h 208 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c if (ip4h->protocol == IPPROTO_UDP) ip4h 154 drivers/net/ipvlan/ipvlan_core.c struct iphdr *ip4h; ip4h 156 drivers/net/ipvlan/ipvlan_core.c if (unlikely(!pskb_may_pull(skb, sizeof(*ip4h)))) ip4h 159 drivers/net/ipvlan/ipvlan_core.c ip4h = ip_hdr(skb); ip4h 160 drivers/net/ipvlan/ipvlan_core.c pktlen = ntohs(ip4h->tot_len); ip4h 161 drivers/net/ipvlan/ipvlan_core.c if (ip4h->ihl < 5 || ip4h->version != 4) ip4h 163 drivers/net/ipvlan/ipvlan_core.c if (skb->len < pktlen || pktlen < (ip4h->ihl * 4)) ip4h 167 drivers/net/ipvlan/ipvlan_core.c lyr3h = ip4h; ip4h 386 drivers/net/ipvlan/ipvlan_core.c struct iphdr *ip4h; ip4h 389 drivers/net/ipvlan/ipvlan_core.c ip4h = (struct iphdr *)lyr3h; ip4h 390 drivers/net/ipvlan/ipvlan_core.c i4addr = use_dest ? &ip4h->daddr : &ip4h->saddr; ip4h 417 drivers/net/ipvlan/ipvlan_core.c const struct iphdr *ip4h = ip_hdr(skb); ip4h 424 drivers/net/ipvlan/ipvlan_core.c .flowi4_tos = RT_TOS(ip4h->tos), ip4h 427 drivers/net/ipvlan/ipvlan_core.c .daddr = ip4h->daddr, ip4h 428 drivers/net/ipvlan/ipvlan_core.c .saddr = ip4h->saddr, ip4h 51 drivers/net/ipvlan/ipvlan_l3s.c struct iphdr *ip4h = ip_hdr(skb); ip4h 54 drivers/net/ipvlan/ipvlan_l3s.c err = ip_route_input_noref(skb, ip4h->daddr, ip4h->saddr, ip4h 55 drivers/net/ipvlan/ipvlan_l3s.c ip4h->tos, sdev); ip4h 246 drivers/net/vrf.c struct iphdr *ip4h; ip4h 255 drivers/net/vrf.c ip4h = ip_hdr(skb); ip4h 261 drivers/net/vrf.c fl4.flowi4_tos = RT_TOS(ip4h->tos); ip4h 263 drivers/net/vrf.c fl4.flowi4_proto = ip4h->protocol; ip4h 264 drivers/net/vrf.c fl4.daddr = ip4h->daddr; ip4h 265 drivers/net/vrf.c fl4.saddr = ip4h->saddr; ip4h 285 drivers/net/vrf.c if (!ip4h->saddr) { ip4h 286 drivers/net/vrf.c ip4h->saddr = inet_select_addr(skb_dst(skb)->dev, 0,