Searched refs:ip4h (Results 1 – 8 of 8) sorted by relevance
/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 36 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() 166 static void rmnet_map_complement_ipv4_txporthdr_csum_field(struct iphdr *ip4h) in rmnet_map_complement_ipv4_txporthdr_csum_field() argument [all …]
|
/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/infiniband/sw/rxe/ |
D | rxe_icrc.c | 75 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()
|
/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() 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()
|
/drivers/infiniband/core/ |
D | verbs.c | 633 const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; in ib_get_rdma_header_version() local 641 return (ip4h->version == 4) ? 4 : 0; in ib_get_rdma_header_version() 647 if (ip4h->ihl != 5) in ib_get_rdma_header_version() 654 memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked)); in ib_get_rdma_header_version() 658 if (ip4h->check == ip4h_checked.check) in ib_get_rdma_header_version()
|
/drivers/net/ethernet/marvell/ |
D | mvneta.c | 1925 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()
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 3613 struct iphdr *ip4h = ip_hdr(skb); in mvpp2_skb_tx_csum() local 3616 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum() 3617 l4_proto = ip4h->protocol; in mvpp2_skb_tx_csum()
|