Home
last modified time | relevance | path

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

12

/drivers/net/slip/
Dslhc.c259 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); in slhc_compress()
260 hlen = ip->ihl*4 + th->doff*4; in slhc_compress()
343 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl in slhc_compress()
348 || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0) in slhc_compress()
469 if (ip->ihl > 5) in slhc_compress()
470 memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4); in slhc_compress()
534 hdrlen = ip->ihl * 4 + thp->doff * 4; in slhc_uncompress()
607 if (ip->ihl > 5) { in slhc_uncompress()
608 memcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4); in slhc_uncompress()
609 cp += (ip->ihl - 5) * 4; in slhc_uncompress()
[all …]
/drivers/infiniband/hw/nes/
Dnes_mgt.c178 struct tcphdr *tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in nes_get_seq()
338 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in get_fpdu_info()
358 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in get_fpdu_info()
387 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in get_fpdu_info()
523 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in queue_fpdus()
Dnes_cm.c444 iph->ihl = 5; /* 5 * 4Byte words, IP headr len */ in form_cm_frame()
2146 skb_pull(skb, ip_hdr(skb)->ihl << 2); in process_packet()
/drivers/net/xen-netback/
Dnetback.c1353 if (!skb_partial_csum_set(skb, 4 * iph->ihl, in checksum_setup()
1360 skb->len - iph->ihl*4, in checksum_setup()
1365 if (!skb_partial_csum_set(skb, 4 * iph->ihl, in checksum_setup()
1372 skb->len - iph->ihl*4, in checksum_setup()
/drivers/net/ethernet/sgi/
Dioc3-eth.c544 (ih->tot_len - (ih->ihl << 2)) + in ioc3_tcpudp_checksum()
1450 ih->tot_len - (ih->ihl << 2), in ioc3_start_xmit()
1456 csoff = ETH_HLEN + (ih->ihl << 2); in ioc3_start_xmit()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1134 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_process_lro()
1135 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_process_lro()
1594 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_83xx_process_lro()
1595 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_83xx_process_lro()
/drivers/net/ethernet/sfc/
Dfilter.c1196 EFX_BUG_ON_PARANOID(skb_headlen(skb) < nhoff + 4 * ip->ihl + 4); in efx_filter_rfs()
1197 ports = (const __be16 *)(skb->data + nhoff + 4 * ip->ihl); in efx_filter_rfs()
Dselftest.c375 payload->ip.ihl = 5; in efx_iterate_state()
/drivers/net/
Dxen-netfront.c878 th = skb->data + 4 * iph->ihl; in checksum_setup()
890 skb->len - iph->ihl*4, in checksum_setup()
900 skb->len - iph->ihl*4, in checksum_setup()
Dvxlan.c1086 iph->ihl = sizeof(struct iphdr) >> 2; in vxlan_xmit_one()
/drivers/net/wireless/iwlwifi/mvm/
Dd3.c440 pkt->ip.ihl = 5; in iwl_mvm_build_tcp_packet()
511 pkt->ip.check = ip_fast_csum(&pkt->ip, pkt->ip.ihl); in iwl_mvm_build_tcp_packet()
/drivers/staging/gdm72xx/
Dgdm_qos.c271 tcph = (struct tcphdr *) iph + iph->ihl*4; in gdm_qos_send_hci_pkt()
/drivers/staging/octeon/
Dethernet-tx.c388 (ip_hdr(skb)->version == 4) && (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit()
/drivers/net/ppp/
Dpptp.c266 iph->ihl = sizeof(struct iphdr) >> 2; in pptp_xmit()
/drivers/staging/rtl8192e/
Drtllib_tx.c628 (ip->ihl << 2)); in rtllib_xmit_inter()
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c1642 th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2)); in netxen_process_lro()
1644 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in netxen_process_lro()
/drivers/staging/bcm/
DQos.c616 IpHeaderLength = pIpHeader->ihl; in ClassifyPacket()
/drivers/net/ethernet/sun/
Dniu.c6568 u64 csum_bits, l3off, ihl, ret; in niu_compute_tx_flags() local
6581 ipv6 = ihl = 0; in niu_compute_tx_flags()
6585 ihl = ip_hdr(skb)->ihl; in niu_compute_tx_flags()
6589 ihl = (40 >> 2); in niu_compute_tx_flags()
6593 ip_proto = ihl = 0; in niu_compute_tx_flags()
6620 (ihl << TXHDR_IHL_SHIFT) | in niu_compute_tx_flags()
/drivers/net/ethernet/tile/
Dtilepro.c1766 unsigned int ih_len = ih->ihl * 4; in tile_net_tx_tso()
/drivers/net/ethernet/
Djme.c978 (ip_hdr(skb)->ihl << 2) + in jme_udpsum()
984 ETH_HLEN + (ip_hdr(skb)->ihl << 2)); in jme_udpsum()
/drivers/net/ethernet/atheros/atlx/
Datl1.c2141 ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) << in atl1_tso()
2161 ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) << in atl1_tso()
/drivers/net/wireless/rtlwifi/
Dbase.c1078 (ip->ihl << 2)); in rtl_is_special_data()
/drivers/net/ethernet/neterion/
Ds2io.c4063 ip->ihl*4); in s2io_xmit()
8285 ip_len = (u8)((*ip)->ihl); in check_L2_lro_capable()
8306 return ntohs(ip->tot_len) - (ip->ihl << 2) - (tcp->doff << 2); in get_l4_pyld_length()
8400 if (ip->ihl != 5) /* IP has options */ in verify_l3_l4_lro_capable()
/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1809 hdr->ip_hdr_words = ip_hdr(skb)->ihl; in t1_start_xmit()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1632 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()

12