Home
last modified time | relevance | path

Searched refs:ihl (Results 1 – 25 of 65) sorted by relevance

123

/drivers/net/slip/
Dslhc.c251 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/
Drmnet_map_data.c58 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/
Den_selftest.c142 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/
Dwlan.c144 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/
Dud_header.c287 iph.ihl = 5; in ib_ud_ip4_csum()
299 return ip_fast_csum((u8 *)&iph, iph.ihl); in ib_ud_ip4_csum()
Dlag.c49 iph->ihl = 0x5; in rdma_build_skb()
/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c434 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/
Dipvlan_core.c161 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/
Dioc3-eth.c332 (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/
Dstmmac_selftests.c164 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/
Dtls_rxtx.c324 th = ((void *)iph) + iph->ihl * 4; in tls_update_resync_sn()
Dipsec.c462 if (ip_hdr(skb)->ihl > 5) in mlx5e_ipsec_offload_ok()
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dmlx5_ifc_dr.h400 u8 ihl[0x4]; member
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1328 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/
Ddev.c523 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/
Dibmveth.c1220 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/
Dixgbe_ipsec.c823 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/
Dsunvnet_common.c430 int ihl = iph->ihl * 4; in vnet_rx_one() local
432 skb_set_transport_header(skb, ihl); in vnet_rx_one()
/drivers/staging/octeon/
Dethernet-tx.c367 (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit()
/drivers/infiniband/sw/rxe/
Drxe_net.c266 iph->ihl = sizeof(struct iphdr) >> 2; in prepare_ipv4_hdr()
/drivers/net/ppp/
Dpptp.c240 iph->ihl = sizeof(struct iphdr) >> 2; in pptp_xmit()
/drivers/net/ethernet/sfc/
Dselftest.c386 payload->ip.ihl = 5; in efx_iterate_state()
/drivers/net/ethernet/sfc/falcon/
Dselftest.c388 payload->ip.ihl = 5; in ef4_iterate_state()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c259 ip->ihl = 0x5; in mlx5e_tc_tun_create_header_ipv4()
/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c328 if (ip_hdr(skb)->ihl > 5) in ch_ipsec_offload_ok()

123