/drivers/net/slip/ |
D | slhc.c | 251 if (ip->version != 4 || ip->ihl < 5) in slhc_compress() 263 nlen = ip->ihl * 4; in slhc_compress() 353 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl in slhc_compress() 358 || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0) in slhc_compress() 478 if (ip->ihl > 5) in slhc_compress() 479 memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4); in slhc_compress() 547 hdrlen = ip->ihl * 4 + thp->doff * 4; in slhc_uncompress() 620 if (ip->ihl > 5) { in slhc_uncompress() 621 memcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4); in slhc_uncompress() 622 cp += (ip->ihl - 5) * 4; in slhc_uncompress() [all …]
|
/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 58 txporthdr = skb->data + ip4h->ihl * 4; in rmnet_map_ipv4_dl_csum_trailer() 74 hdr_csum = ~ip_fast_csum(ip4h, (int)ip4h->ihl); in rmnet_map_ipv4_dl_csum_trailer() 79 ntohs(ip4h->tot_len) - ip4h->ihl * 4, in rmnet_map_ipv4_dl_csum_trailer() 187 txphdr = iphdr + ip4h->ihl * 4; in rmnet_map_complement_ipv4_txporthdr_csum_field()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_selftest.c | 142 iph->ihl = 5; in mlx5e_test_get_udp_skb() 204 udph = (struct udphdr *)((u8 *)iph + 4 * iph->ihl); in mlx5e_test_loopback_validate()
|
/drivers/net/wireless/microchip/wilc1000/ |
D | wlan.c | 144 u32 ihl, total_length, data_offset; in tcp_process() local 156 ihl = ip_hdr_ptr->ihl << 2; in tcp_process() 157 tcp_hdr_ptr = buffer + ETH_HLEN + ihl; in tcp_process() 161 if (total_length == (ihl + data_offset)) { in tcp_process()
|
/drivers/infiniband/core/ |
D | ud_header.c | 287 iph.ihl = 5; in ib_ud_ip4_csum() 299 return ip_fast_csum((u8 *)&iph, iph.ihl); in ib_ud_ip4_csum()
|
D | lag.c | 49 iph->ihl = 0x5; in rdma_build_skb()
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.c | 434 if (ip_hdr(skb)->ihl != 5) in ixgbevf_ipsec_offload_ok() 576 c_hdr = (u8 *)ip4 + ip4->ihl * 4; in ixgbevf_ipsec_rx()
|
/drivers/net/ipvlan/ |
D | ipvlan_core.c | 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()
|
/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 332 (ih->tot_len - (ih->ihl << 2)) + in ioc3_tcpudp_checksum() 1016 ih->tot_len - (ih->ihl << 2), in ioc3_start_xmit() 1022 csoff = ETH_HLEN + (ih->ihl << 2); in ioc3_start_xmit()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_selftests.c | 164 ihdr->ihl = 5; in stmmac_test_get_udp_skb() 290 thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_loopback_validate() 299 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_loopback_validate() 878 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_vlan_validate()
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls_rxtx.c | 324 th = ((void *)iph) + iph->ihl * 4; in tls_update_resync_sn()
|
D | ipsec.c | 462 if (ip_hdr(skb)->ihl > 5) in mlx5e_ipsec_offload_ok()
|
/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | mlx5_ifc_dr.h | 400 u8 ihl[0x4]; member
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 1328 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_process_lro() 1329 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_process_lro() 1851 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_83xx_process_lro() 1852 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_83xx_process_lro()
|
/drivers/net/netdevsim/ |
D | dev.c | 523 iph->ihl = 0x5; in nsim_dev_trap_skb_build() 527 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in nsim_dev_trap_skb_build()
|
/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1220 offset = iph->ihl * 4; in ibmveth_rx_mss_helper() 1277 iph->ihl); in ibmveth_rx_csum_helper() 1280 iphlen = iph->ihl * 4; in ibmveth_rx_csum_helper()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 823 if (ip_hdr(skb)->ihl != 5) in ixgbe_ipsec_offload_ok() 1184 c_hdr = (u8 *)ip4 + ip4->ihl * 4; in ixgbe_ipsec_rx()
|
/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 430 int ihl = iph->ihl * 4; in vnet_rx_one() local 432 skb_set_transport_header(skb, ihl); in vnet_rx_one()
|
/drivers/staging/octeon/ |
D | ethernet-tx.c | 367 (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit()
|
/drivers/infiniband/sw/rxe/ |
D | rxe_net.c | 266 iph->ihl = sizeof(struct iphdr) >> 2; in prepare_ipv4_hdr()
|
/drivers/net/ppp/ |
D | pptp.c | 240 iph->ihl = sizeof(struct iphdr) >> 2; in pptp_xmit()
|
/drivers/net/ethernet/sfc/ |
D | selftest.c | 386 payload->ip.ihl = 5; in efx_iterate_state()
|
/drivers/net/ethernet/sfc/falcon/ |
D | selftest.c | 388 payload->ip.ihl = 5; in ef4_iterate_state()
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun.c | 259 ip->ihl = 0x5; in mlx5e_tc_tun_create_header_ipv4()
|
/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
D | chcr_ipsec.c | 328 if (ip_hdr(skb)->ihl > 5) in ch_ipsec_offload_ok()
|