Searched refs:ip4h (Results 1 – 8 of 8) sorted by relevance
/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 …]
|
/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()
|
/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()
|
/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()
|
/drivers/infiniband/core/ |
D | verbs.c | 628 const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; in ib_get_rdma_header_version() local 636 return (ip4h->version == 4) ? 4 : 0; in ib_get_rdma_header_version() 642 if (ip4h->ihl != 5) in ib_get_rdma_header_version() 649 memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked)); in ib_get_rdma_header_version() 653 if (ip4h->check == ip4h_checked.check) in ib_get_rdma_header_version()
|
/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()
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 3257 struct iphdr *ip4h = ip_hdr(skb); in mvpp2_skb_tx_csum() local 3260 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum() 3261 l4_proto = ip4h->protocol; in mvpp2_skb_tx_csum()
|