ihl 11 arch/alpha/include/asm/checksum.h extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); ihl 145 arch/alpha/lib/checksum.c __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 147 arch/alpha/lib/checksum.c return (__force __sum16)~do_csum(iph,ihl*4); ihl 38 arch/arc/include/asm/checksum.h ip_fast_csum(const void *iph, unsigned int ihl) ihl 59 arch/arc/include/asm/checksum.h : "r"(ihl) ihl 61 arch/arm/include/asm/checksum.h ip_fast_csum(const void *iph, unsigned int ihl) ihl 81 arch/arm/include/asm/checksum.h : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1) ihl 82 arch/arm/include/asm/checksum.h : "1" (iph), "2" (ihl) ihl 18 arch/arm64/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 25 arch/arm64/include/asm/checksum.h ihl -= 4; ihl 31 arch/arm64/include/asm/checksum.h } while (--ihl); ihl 14 arch/ia64/include/asm/checksum.h extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); ihl 46 arch/m68k/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 61 arch/m68k/include/asm/checksum.h : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp) ihl 62 arch/m68k/include/asm/checksum.h : "0" (sum), "1" (iph), "2" (ihl) ihl 131 arch/mips/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 134 arch/mips/include/asm/checksum.h const unsigned int *stop = word + ihl; ihl 22 arch/nios2/include/asm/checksum.h extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); ihl 42 arch/parisc/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 67 arch/parisc/include/asm/checksum.h : "=r" (sum), "=r" (iph), "=r" (ihl) ihl 68 arch/parisc/include/asm/checksum.h : "1" (iph), "2" (ihl) ihl 121 arch/powerpc/include/asm/checksum.h static inline __wsum ip_fast_csum_nofold(const void *iph, unsigned int ihl) ihl 128 arch/powerpc/include/asm/checksum.h for (i = 0; i < ihl - 1; i++, ptr++) ihl 141 arch/powerpc/include/asm/checksum.h : "r" (ihl - 2), "r" (*(const u32 *)iph), "r" (*ptr) ihl 148 arch/powerpc/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 150 arch/powerpc/include/asm/checksum.h return csum_fold(ip_fast_csum_nofold(iph, ihl)); ihl 170 arch/powerpc/platforms/ps3/gelic_udbg.c h_ip->ihl = 5; ihl 85 arch/s390/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 87 arch/s390/include/asm/checksum.h return csum_fold(csum_partial(iph, ihl*4, 0)); ihl 86 arch/sh/include/asm/checksum_32.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 107 arch/sh/include/asm/checksum_32.h : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1) ihl 108 arch/sh/include/asm/checksum_32.h : "1" (iph), "2" (ihl) ihl 122 arch/sparc/include/asm/checksum_32.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 153 arch/sparc/include/asm/checksum_32.h : "r" (ihl), "1" (iph) ihl 81 arch/sparc/include/asm/checksum_64.h __sum16 ip_fast_csum(const void *iph, unsigned int ihl); ihl 70 arch/x86/include/asm/checksum_32.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 94 arch/x86/include/asm/checksum_32.h : "=r" (sum), "=r" (iph), "=r" (ihl) ihl 95 arch/x86/include/asm/checksum_32.h : "1" (iph), "2" (ihl) ihl 46 arch/x86/include/asm/checksum_64.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 70 arch/x86/include/asm/checksum_64.h : "=r" (sum), "=r" (iph), "=r" (ihl) ihl 71 arch/x86/include/asm/checksum_64.h : "1" (iph), "2" (ihl) ihl 119 arch/x86/um/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 143 arch/x86/um/asm/checksum.h : "=r" (sum), "=r" (iph), "=r" (ihl) ihl 144 arch/x86/um/asm/checksum.h : "1" (iph), "2" (ihl) ihl 90 arch/xtensa/include/asm/checksum.h static __inline__ __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 117 arch/xtensa/include/asm/checksum.h : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (tmp), ihl 119 arch/xtensa/include/asm/checksum.h : "1" (iph), "2" (ihl) ihl 292 drivers/crypto/chelsio/chcr_ipsec.c if (ip_hdr(skb)->ihl > 5) ihl 287 drivers/infiniband/core/ud_header.c iph.ihl = 5; ihl 299 drivers/infiniband/core/ud_header.c return ip_fast_csum((u8 *)&iph, iph.ihl); ihl 618 drivers/infiniband/core/verbs.c if (ip4h->ihl != 5) ihl 447 drivers/infiniband/hw/i40iw/i40iw_cm.c iph->ihl = 5; /* 5 * 4Byte words, IP headr len */ ihl 307 drivers/infiniband/sw/rxe/rxe_net.c iph->ihl = sizeof(struct iphdr) >> 2; ihl 3270 drivers/net/bonding/bond_main.c noff += iph->ihl << 2; ihl 1657 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= (ip_hdr(skb)->ihl & ihl 2127 drivers/net/ethernet/atheros/atlx/atl1.c ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) << ihl 2147 drivers/net/ethernet/atheros/atlx/atl1.c ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) << ihl 6661 drivers/net/ethernet/broadcom/bnx2.c if (tcp_opt_len || (iph->ihl > 5)) { ihl 6662 drivers/net/ethernet/broadcom/bnx2.c vlan_tag_flags |= ((iph->ihl - 5) + ihl 3665 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c outerip_len = iph->ihl << 1; ihl 8016 drivers/net/ethernet/broadcom/tg3.c if (tcp_opt_len || iph->ihl > 5) { ihl 8019 drivers/net/ethernet/broadcom/tg3.c tsflags = (iph->ihl - 5) + (tcp_opt_len >> 2); ihl 8023 drivers/net/ethernet/broadcom/tg3.c if (tcp_opt_len || iph->ihl > 5) { ihl 8026 drivers/net/ethernet/broadcom/tg3.c tsflags = (iph->ihl - 5) + (tcp_opt_len >> 2); ihl 1806 drivers/net/ethernet/chelsio/cxgb/sge.c hdr->ip_hdr_words = ip_hdr(skb)->ihl; ihl 1207 drivers/net/ethernet/chelsio/cxgb3/sge.c V_LSO_IPHDR_WORDS(ip_hdr(skb)->ihl) | ihl 1514 drivers/net/ethernet/chelsio/cxgb4/sge.c iph->ihl)); ihl 1194 drivers/net/ethernet/ibm/ibmveth.c offset = iph->ihl * 4; ihl 1251 drivers/net/ethernet/ibm/ibmveth.c iph->ihl); ihl 1254 drivers/net/ethernet/ibm/ibmveth.c iphlen = iph->ihl * 4; ihl 1277 drivers/net/ethernet/ibm/ibmvnic.c hdr_len[1] = ip_hdr(skb)->ihl * 4; ihl 5742 drivers/net/ethernet/intel/e1000e/netdev.c udp = (struct udphdr *)((u8 *)ip + (ip->ihl << 2)); ihl 5723 drivers/net/ethernet/intel/igb/igb_main.c unsigned char *trans_start = ip.hdr + (ip.v4->ihl * 4); ihl 2032 drivers/net/ethernet/intel/igbvf/netdev.c unsigned char *trans_start = ip.hdr + (ip.v4->ihl * 4); ihl 818 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ip_hdr(skb)->ihl != 5) ihl 1178 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c c_hdr = (u8 *)ip4 + ip4->ihl * 4; ihl 7993 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c unsigned char *trans_start = ip.hdr + (ip.v4->ihl * 4); ihl 423 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (ip_hdr(skb)->ihl != 5) ihl 565 drivers/net/ethernet/intel/ixgbevf/ipsec.c c_hdr = (u8 *)ip4 + ip4->ihl * 4; ihl 3781 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c unsigned char *trans_start = ip.hdr + (ip.v4->ihl * 4); ihl 952 drivers/net/ethernet/jme.c (ip_hdr(skb)->ihl << 2) + ihl 958 drivers/net/ethernet/jme.c ETH_HLEN + (ip_hdr(skb)->ihl << 2)); ihl 705 drivers/net/ethernet/marvell/mv643xx_eth.c ip_hdr(skb)->ihl << TX_IHL_SHIFT; ihl 1858 drivers/net/ethernet/marvell/mvneta.c ip_hdr_len = ip4h->ihl; ihl 2897 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c ip_hdr_len = ip4h->ihl; ihl 383 drivers/net/ethernet/mellanox/mlx4/en_netdev.c ports = (const __be16 *)(skb->data + nhoff + 4 * ip->ihl); ihl 589 drivers/net/ethernet/mellanox/mlx4/en_rx.c length_for_csum = (be16_to_cpu(iph->tot_len) - (iph->ihl << 2)); ihl 282 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c ip->ihl = 0x5; ihl 448 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c if (ip_hdr(skb)->ihl > 5) ihl 323 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c th = ((void *)iph) + iph->ihl * 4; ihl 753 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c ipv4->ihl); ihl 143 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c iph->ihl = 5; ihl 205 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c udph = (struct udphdr *)((u8 *)iph + 4 * iph->ihl); ihl 399 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5_ifc_dr.h u8 ihl[0x4]; ihl 4041 drivers/net/ethernet/neterion/s2io.c ip->ihl*4); ihl 8199 drivers/net/ethernet/neterion/s2io.c ip_len = (u8)((*ip)->ihl); ihl 8220 drivers/net/ethernet/neterion/s2io.c return ntohs(ip->tot_len) - (ip->ihl << 2) - (tcp->doff << 2); ihl 8314 drivers/net/ethernet/neterion/s2io.c if (ip->ihl != 5) /* IP has options */ ihl 642 drivers/net/ethernet/neterion/vxge/vxge-main.c ip->ihl*4); ihl 581 drivers/net/ethernet/netronome/nfp/flower/action.c if (tos_word_mask->version || tos_word_mask->ihl || ihl 1622 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2)); ihl 1624 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c length = (iph->ihl << 2) + (th->doff << 2) + lro_length; ihl 1731 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ip_hlen = (iph->ihl) * sizeof(u32); ihl 1763 drivers/net/ethernet/qlogic/qed/qed_iwarp.c iph->ihl, tcph->source, tcph->dest); ihl 1520 drivers/net/ethernet/qlogic/qede/qede_filter.c ip->ihl = 0x5; ihl 2289 drivers/net/ethernet/qlogic/qla3xxx.c mac_iocb_ptr->ip_hdr_len = ip->ihl; ihl 1329 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); ihl 1330 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c length = (iph->ihl << 2) + (th->doff << 2) + lro_length; ihl 1852 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); ihl 1853 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c length = (iph->ihl << 2) + (th->doff << 2) + lro_length; ihl 58 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c txporthdr = skb->data + ip4h->ihl * 4; ihl 74 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c hdr_csum = ~ip_fast_csum(ip4h, (int)ip4h->ihl); ihl 79 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ntohs(ip4h->tot_len) - ip4h->ihl * 4, ihl 187 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c txphdr = iphdr + ip4h->ihl * 4; ihl 388 drivers/net/ethernet/sfc/falcon/selftest.c payload->ip.ihl = 5; ihl 388 drivers/net/ethernet/sfc/selftest.c payload->ip.ihl = 5; ihl 507 drivers/net/ethernet/sgi/ioc3-eth.c (ih->tot_len - (ih->ihl << 2)) + ihl 1402 drivers/net/ethernet/sgi/ioc3-eth.c ih->tot_len - (ih->ihl << 2), ihl 1408 drivers/net/ethernet/sgi/ioc3-eth.c csoff = ETH_HLEN + (ih->ihl << 2); ihl 162 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ihdr->ihl = 5; ihl 285 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl); ihl 294 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); ihl 874 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); ihl 6546 drivers/net/ethernet/sun/niu.c u64 csum_bits, l3off, ihl, ret; ihl 6559 drivers/net/ethernet/sun/niu.c ipv6 = ihl = 0; ihl 6563 drivers/net/ethernet/sun/niu.c ihl = ip_hdr(skb)->ihl; ihl 6567 drivers/net/ethernet/sun/niu.c ihl = (40 >> 2); ihl 6571 drivers/net/ethernet/sun/niu.c ip_proto = ihl = 0; ihl 6598 drivers/net/ethernet/sun/niu.c (ihl << TXHDR_IHL_SHIFT) | ihl 430 drivers/net/ethernet/sun/sunvnet_common.c int ihl = iph->ihl * 4; ihl 432 drivers/net/ethernet/sun/sunvnet_common.c skb_set_transport_header(skb, ihl); ihl 759 drivers/net/hyperv/netvsc_drv.c iph->check = ip_fast_csum(iph, iph->ihl); ihl 161 drivers/net/ipvlan/ipvlan_core.c if (ip4h->ihl < 5 || ip4h->version != 4) ihl 163 drivers/net/ipvlan/ipvlan_core.c if (skb->len < pktlen || pktlen < (ip4h->ihl * 4)) ihl 391 drivers/net/netdevsim/dev.c iph->ihl = 0x5; ihl 395 drivers/net/netdevsim/dev.c iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); ihl 226 drivers/net/ppp/pptp.c iph->ihl = sizeof(struct iphdr) >> 2; ihl 251 drivers/net/slip/slhc.c if (ip->version != 4 || ip->ihl < 5) ihl 263 drivers/net/slip/slhc.c nlen = ip->ihl * 4; ihl 353 drivers/net/slip/slhc.c if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl ihl 358 drivers/net/slip/slhc.c || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0) ihl 478 drivers/net/slip/slhc.c if (ip->ihl > 5) ihl 479 drivers/net/slip/slhc.c memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4); ihl 547 drivers/net/slip/slhc.c hdrlen = ip->ihl * 4 + thp->doff * 4; ihl 620 drivers/net/slip/slhc.c if (ip->ihl > 5) { ihl 621 drivers/net/slip/slhc.c memcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4); ihl 622 drivers/net/slip/slhc.c cp += (ip->ihl - 5) * 4; ihl 625 drivers/net/slip/slhc.c put_unaligned(ip_fast_csum(icp, ip->ihl), ihl 647 drivers/net/slip/slhc.c unsigned ihl; ihl 657 drivers/net/slip/slhc.c ihl = icp[0] & 0xf; ihl 658 drivers/net/slip/slhc.c if(ihl < 20 / 4){ ihl 666 drivers/net/slip/slhc.c if (ip_fast_csum(icp, ihl)) { ihl 680 drivers/net/slip/slhc.c memcpy(&cs->cs_tcp,icp + ihl*4,20); ihl 681 drivers/net/slip/slhc.c if (ihl > 5) ihl 682 drivers/net/slip/slhc.c memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4); ihl 684 drivers/net/slip/slhc.c memcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4); ihl 685 drivers/net/slip/slhc.c cs->cs_hsize = ihl*2 + cs->cs_tcp.doff*2; ihl 949 drivers/net/thunderbolt.c ip_hdr(skb)->ihl); ihl 1253 drivers/net/vmxnet3/vmxnet3_drv.c hlen = hdr.ipv4->ihl << 2; ihl 1254 drivers/net/vmxnet3/vmxnet3_drv.c hdr.ptr += hdr.ipv4->ihl << 2; ihl 1514 drivers/net/wireless/realtek/rtlwifi/base.c (ip->ihl << 2)); ihl 367 drivers/staging/octeon/ethernet-tx.c (ip_hdr(skb)->ihl == 5) && ihl 2616 drivers/staging/qlge/qlge_main.c len = (ntohs(iph->tot_len) - (iph->ihl << 2)); ihl 624 drivers/staging/rtl8192e/rtllib_tx.c (ip->ihl << 2)); ihl 144 drivers/staging/wilc1000/wilc_wlan.c u32 ihl, total_length, data_offset; ihl 156 drivers/staging/wilc1000/wilc_wlan.c ihl = ip_hdr_ptr->ihl << 2; ihl 157 drivers/staging/wilc1000/wilc_wlan.c tcp_hdr_ptr = buffer + ETH_HLEN + ihl; ihl 161 drivers/staging/wilc1000/wilc_wlan.c if (total_length == (ihl + data_offset)) { ihl 47 include/asm-generic/checksum.h extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); ihl 45 include/linux/ptp_classify.h #define IPV4_HLEN(data) (((struct iphdr *)(data + OFF_IHL))->ihl << 2) ihl 67 include/net/ip.h return ip_hdr(skb)->ihl * 4; ihl 103 include/net/ip_vs.h iphdr->len = offset + iph->ihl * 4; ihl 31 include/net/netfilter/nf_tables_ipv4.h if (iph->ihl < 5 || iph->version != 4) ihl 35 include/net/netfilter/nf_tables_ipv4.h thoff = iph->ihl * 4; ihl 638 include/net/xfrm.h u8 ihl; ihl 88 include/uapi/linux/ip.h __u8 ihl:4, ihl 92 include/uapi/linux/ip.h ihl:4; ihl 106 lib/checksum.c __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ihl 108 lib/checksum.c return (__force __sum16)~do_csum(iph, ihl*4); ihl 540 net/atm/mpc.c iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); ihl 591 net/atm/mpc.c if (skb->len < ETH_HLEN + ip_hdr(skb)->ihl * 4 || ip_hdr(skb)->ihl < 5) ihl 1501 net/batman-adv/distributed-arp-table.c if (!iphdr || iphdr->version != 4 || iphdr->ihl * 4 < sizeof(_iphdr)) ihl 1507 net/batman-adv/distributed-arp-table.c offset += iphdr->ihl * 4; ihl 659 net/batman-adv/gateway_client.c *header_len += iphdr->ihl * 4; ihl 254 net/bridge/br_multicast.c iph->ihl = 6; ihl 207 net/bridge/br_netfilter_hooks.c if (iph->ihl < 5 || iph->version != 4) ihl 210 net/bridge/br_netfilter_hooks.c if (!pskb_may_pull(skb, iph->ihl*4)) ihl 214 net/bridge/br_netfilter_hooks.c if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) ihl 221 net/bridge/br_netfilter_hooks.c } else if (len < (iph->ihl*4)) ihl 529 net/bridge/br_netfilter_hooks.c skb->transport_header = skb->network_header + ip_hdr(skb)->ihl * 4; ihl 70 net/bridge/netfilter/ebt_ip.c pptr = skb_header_pointer(skb, ih->ihl*4, ihl 109 net/bridge/netfilter/ebt_log.c print_ports(skb, ih->protocol, ih->ihl*4); ihl 52 net/bridge/netfilter/nf_conntrack_bridge.c hlen = iph->ihl * 4; ihl 200 net/bridge/netfilter/nf_conntrack_bridge.c if (iph->ihl < 5 || ihl 206 net/bridge/netfilter/nf_conntrack_bridge.c len < (iph->ihl * 4)) ihl 51 net/bridge/netfilter/nft_reject_bridge.c if (iph->ihl < 5 || iph->version != 4) ihl 57 net/bridge/netfilter/nft_reject_bridge.c else if (len < (iph->ihl*4)) ihl 60 net/bridge/netfilter/nft_reject_bridge.c if (!pskb_may_pull(skb, iph->ihl*4)) ihl 1011 net/core/flow_dissector.c if (!iph || iph->ihl < 5) { ihl 1016 net/core/flow_dissector.c nhoff += iph->ihl * 4; ihl 605 net/core/lwt_bpf.c if (unlikely(len < iph->ihl * 4)) ihl 642 net/core/lwt_bpf.c iph->ihl); ihl 449 net/core/netpoll.c iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); ihl 2803 net/core/pktgen.c iph->ihl = 5; ihl 233 net/dccp/ipv4.c const u8 offset = iph->ihl << 2; ihl 1307 net/ipv4/af_inet.c int ihl; ihl 1316 net/ipv4/af_inet.c ihl = iph->ihl * 4; ihl 1317 net/ipv4/af_inet.c if (ihl < sizeof(*iph)) ihl 1324 net/ipv4/af_inet.c if (unlikely(!pskb_may_pull(skb, ihl))) ihl 1326 net/ipv4/af_inet.c __skb_pull(skb, ihl); ihl 1331 net/ipv4/af_inet.c SKB_GSO_CB(skb)->encap_level += ihl; ihl 1362 net/ipv4/af_inet.c offset += skb->len - nhoff - ihl; ihl 83 net/ipv4/ah4.c int l = iph->ihl*4 - sizeof(struct iphdr); ihl 129 net/ipv4/ah4.c int ihl = ip_hdrlen(skb); ihl 132 net/ipv4/ah4.c icv = ah_tmp_icv(ahp->ahash, iph, ihl); ihl 138 net/ipv4/ah4.c if (top_iph->ihl != 5) { ihl 140 net/ipv4/ah4.c memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); ihl 151 net/ipv4/ah4.c int ihl; ihl 174 net/ipv4/ah4.c ihl = ip_hdrlen(skb); ihl 181 net/ipv4/ah4.c iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len); ihl 184 net/ipv4/ah4.c seqhi = (__be32 *)((char *)iph + ihl); ihl 198 net/ipv4/ah4.c if (top_iph->ihl != 5) { ihl 200 net/ipv4/ah4.c memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); ihl 254 net/ipv4/ah4.c if (top_iph->ihl != 5) { ihl 256 net/ipv4/ah4.c memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); ihl 274 net/ipv4/ah4.c int ihl = ip_hdrlen(skb); ihl 281 net/ipv4/ah4.c auth_data = ah_tmp_auth(work_iph, ihl); ihl 291 net/ipv4/ah4.c memcpy(skb_network_header(skb), work_iph, ihl); ihl 292 net/ipv4/ah4.c __skb_pull(skb, ah_hlen + ihl); ihl 297 net/ipv4/ah4.c skb_set_transport_header(skb, -ihl); ihl 306 net/ipv4/ah4.c int ihl; ihl 361 net/ipv4/ah4.c ihl = ip_hdrlen(skb); ihl 368 net/ipv4/ah4.c work_iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + ihl 375 net/ipv4/ah4.c seqhi = (__be32 *)((char *)work_iph + ihl); ihl 382 net/ipv4/ah4.c memcpy(work_iph, iph, ihl); ihl 390 net/ipv4/ah4.c if (ihl > sizeof(*iph)) { ihl 397 net/ipv4/ah4.c skb_push(skb, ihl); ihl 427 net/ipv4/ah4.c memcpy(skb_network_header(skb), work_iph, ihl); ihl 428 net/ipv4/ah4.c __skb_pull(skb, ah_hlen + ihl); ihl 432 net/ipv4/ah4.c skb_set_transport_header(skb, -ihl); ihl 446 net/ipv4/ah4.c struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); ihl 1514 net/ipv4/cipso_ipv4.c for (optlen = iph->ihl*4 - sizeof(struct iphdr); optlen > 1; ) { ihl 1740 net/ipv4/cipso_ipv4.c opt->optlen = ip_hdr(skb)->ihl*4 - sizeof(struct iphdr); ihl 2205 net/ipv4/cipso_ipv4.c memmove((char *)iph - len_delta, iph, iph->ihl << 2); ihl 2229 net/ipv4/cipso_ipv4.c iph->ihl = 5 + (opt_len >> 2); ihl 586 net/ipv4/esp4.c int ihl; ihl 599 net/ipv4/esp4.c ihl = iph->ihl * 4; ihl 603 net/ipv4/esp4.c struct udphdr *uh = (void *)(skb_network_header(skb) + ihl); ihl 642 net/ipv4/esp4.c skb_set_transport_header(skb, -ihl); ihl 793 net/ipv4/esp4.c struct ip_esp_hdr *esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); ihl 178 net/ipv4/gre_demux.c u8 ver = skb->data[(iph->ihl<<2) + 1]&0x7f; ihl 638 net/ipv4/icmp.c (iph->ihl << 2) + ihl 760 net/ipv4/icmp.c if (!pskb_may_pull(skb, iph->ihl * 4 + 8)) { ihl 808 net/ipv4/icmp.c if (iph->ihl < 5) /* Mangled header, drop. */ ihl 1088 net/ipv4/icmp.c int offset = iph->ihl<<2; ihl 390 net/ipv4/igmp.c pip->ihl = (sizeof(struct iphdr)+4)>>2; ihl 773 net/ipv4/igmp.c iph->ihl = (sizeof(struct iphdr)+4)>>2; ihl 1503 net/ipv4/igmp.c if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) ihl 275 net/ipv4/ip_fragment.c int ihl, end, flags, offset; ihl 297 net/ipv4/ip_fragment.c ihl = ip_hdrlen(skb); ihl 300 net/ipv4/ip_fragment.c end = offset + skb->len - skb_network_offset(skb) - ihl; ihl 330 net/ipv4/ip_fragment.c if (!pskb_pull(skb, skb_network_offset(skb) + ihl)) ihl 357 net/ipv4/ip_fragment.c fragsize = skb->len + ihl; ihl 517 net/ipv4/ip_fragment.c if (iph.ihl < 5 || iph.version != 4) ihl 521 net/ipv4/ip_fragment.c if (skb->len < netoff + len || len < (iph.ihl * 4)) ihl 527 net/ipv4/ip_fragment.c if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) { ihl 191 net/ipv4/ip_gre.c !ip6_err_gen_icmpv6_unreach(skb, iph->ihl * 4 + tpi->hdr_len, ihl 234 net/ipv4/ip_gre.c iph->ihl * 4) < 0) ihl 757 net/ipv4/ip_gre.c p.iph.ihl != 5 || (p.iph.frag_off & htons(~IP_DF)) || ihl 276 net/ipv4/ip_input.c opt->optlen = iph->ihl*4 - sizeof(struct iphdr); ihl 355 net/ipv4/ip_input.c if (iph->ihl > 5 && ip_rcv_options(skb, dev)) ihl 455 net/ipv4/ip_input.c if (iph->ihl < 5 || iph->version != 4) ihl 465 net/ipv4/ip_input.c if (!pskb_may_pull(skb, iph->ihl*4)) ihl 470 net/ipv4/ip_input.c if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) ihl 477 net/ipv4/ip_input.c } else if (len < (iph->ihl*4)) ihl 490 net/ipv4/ip_input.c skb->transport_header = skb->network_header + iph->ihl*4; ihl 94 net/ipv4/ip_output.c iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); ihl 157 net/ipv4/ip_output.c iph->ihl = 5; ihl 172 net/ipv4/ip_output.c iph->ihl += opt->opt.optlen>>2; ihl 521 net/ipv4/ip_output.c iph->ihl += inet_opt->opt.optlen >> 2; ihl 797 net/ipv4/ip_output.c hlen = iph->ihl * 4; ihl 1526 net/ipv4/ip_output.c iph->ihl = 5; ihl 1535 net/ipv4/ip_output.c iph->ihl += opt->optlen>>2; ihl 1233 net/ipv4/ip_tunnel.c iph->ihl = 5; ihl 69 net/ipv4/ip_tunnel_core.c iph->ihl = sizeof(struct iphdr) >> 2; ihl 362 net/ipv4/ip_vti.c esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); ihl 366 net/ipv4/ip_vti.c ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); ihl 370 net/ipv4/ip_vti.c ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); ihl 412 net/ipv4/ip_vti.c p.iph.ihl != 5) ihl 477 net/ipv4/ip_vti.c iph->ihl = 5; ihl 27 net/ipv4/ipcomp.c struct ip_comp_hdr *ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); ihl 817 net/ipv4/ipconfig.c h->ihl = 5; ihl 823 net/ipv4/ipconfig.c h->check = ip_fast_csum((unsigned char *) h, h->ihl); ihl 984 net/ipv4/ipconfig.c if (h->ihl != 5 || h->version != 4 || h->protocol != IPPROTO_UDP) ihl 996 net/ipv4/ipconfig.c if (ip_fast_csum((char *) h, h->ihl)) ihl 341 net/ipv4/ipip.c p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF))) ihl 423 net/ipv4/ipip.c parms->iph.ihl = 5; ihl 436 net/ipv4/ipmr.c p.iph.ihl = 5; ihl 484 net/ipv4/ipmr.c p.iph.ihl = 5; ihl 1042 net/ipv4/ipmr.c const int ihl = ip_hdrlen(pkt); ihl 1074 net/ipv4/ipmr.c ip_hdr(skb)->ihl = sizeof(struct iphdr) >> 2; ihl 1080 net/ipv4/ipmr.c skb_put(skb, ihl); ihl 1081 net/ipv4/ipmr.c skb_copy_to_linear_data(skb, pkt->data, ihl); ihl 1791 net/ipv4/ipmr.c iph->ihl = 5; ihl 2304 net/ipv4/ipmr.c iph->ihl = sizeof(struct iphdr) >> 2; ihl 350 net/ipv4/netfilter/ipt_CLUSTERIP.c ports = skb_header_pointer(skb, iph->ihl * 4 + poff, 4, _ports); ihl 77 net/ipv4/netfilter/nf_log_ipv4.c ih->ihl * 4 > sizeof(struct iphdr)) { ihl 82 net/ipv4/netfilter/nf_log_ipv4.c optsize = ih->ihl * 4 - sizeof(struct iphdr); ihl 101 net/ipv4/netfilter/nf_log_ipv4.c iphoff+ih->ihl*4, logflags)) ihl 108 net/ipv4/netfilter/nf_log_ipv4.c iphoff+ih->ihl*4)) ihl 139 net/ipv4/netfilter/nf_log_ipv4.c ich = skb_header_pointer(skb, iphoff + ih->ihl * 4, ihl 143 net/ipv4/netfilter/nf_log_ipv4.c skb->len - iphoff - ih->ihl*4); ihl 153 net/ipv4/netfilter/nf_log_ipv4.c skb->len-iphoff-ih->ihl*4 < required_len[ich->type]) { ihl 155 net/ipv4/netfilter/nf_log_ipv4.c skb->len - iphoff - ih->ihl*4); ihl 184 net/ipv4/netfilter/nf_log_ipv4.c iphoff + ih->ihl*4+sizeof(_icmph)); ihl 209 net/ipv4/netfilter/nf_log_ipv4.c ah = skb_header_pointer(skb, iphoff+ih->ihl*4, ihl 213 net/ipv4/netfilter/nf_log_ipv4.c skb->len - iphoff - ih->ihl*4); ihl 232 net/ipv4/netfilter/nf_log_ipv4.c eh = skb_header_pointer(skb, iphoff+ih->ihl*4, ihl 236 net/ipv4/netfilter/nf_log_ipv4.c skb->len - iphoff - ih->ihl*4); ihl 129 net/ipv4/netfilter/nf_nat_snmp_basic_main.c struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); ihl 167 net/ipv4/netfilter/nf_nat_snmp_basic_main.c const struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); ihl 184 net/ipv4/netfilter/nf_nat_snmp_basic_main.c if (ntohs(udph->len) != skb->len - (iph->ihl << 2)) { ihl 53 net/ipv4/netfilter/nf_reject_ipv4.c niph->ihl = sizeof(struct iphdr) / 4; ihl 57 net/ipv4/netfilter/nf_socket_ipv4.c (inside_iph->ihl << 2), ihl 273 net/ipv4/raw.c u8 *payload = skb->data + (iph->ihl << 2); ihl 399 net/ipv4/raw.c iphlen = iph->ihl * 4; ihl 420 net/ipv4/raw.c iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); ihl 1204 net/ipv4/route.c ip_hdr(skb)->version != 4 || ip_hdr(skb)->ihl < 5) ihl 1208 net/ipv4/route.c if (ip_hdr(skb)->ihl > 5) { ihl 1209 net/ipv4/route.c if (!pskb_network_may_pull(skb, ip_hdr(skb)->ihl * 4)) ihl 1211 net/ipv4/route.c opt.optlen = ip_hdr(skb)->ihl * 4 - sizeof(struct iphdr); ihl 1892 net/ipv4/route.c icmph = skb_header_pointer(skb, outer_iph->ihl * 4, sizeof(_icmph), ihl 1904 net/ipv4/route.c outer_iph->ihl * 4 + sizeof(_icmph), ihl 2968 net/ipv4/route.c iph->ihl = 0x5; ihl 427 net/ipv4/tcp_ipv4.c struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2)); ihl 598 net/ipv4/udp.c skb_set_transport_header(skb, iph->ihl << 2); ihl 636 net/ipv4/udp.c struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2)); ihl 151 net/ipv4/xfrm4_input.c iphlen = iph->ihl << 2; ihl 22 net/ipv4/xfrm4_state.c XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); ihl 27 net/ipv4/xfrm4_state.c XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph); ihl 2847 net/ipv6/addrconf.c p.iph.ihl = 5; ihl 546 net/ipv6/sit.c !ip6_err_gen_icmpv6_unreach(skb, iph->ihl * 4, type, data_len)) ihl 1228 net/ipv6/sit.c p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF))) ihl 1426 net/ipv6/sit.c iph->ihl = 5; ihl 1456 net/ipv6/sit.c parms->iph.ihl = 5; ihl 28 net/ipv6/xfrm6_state.c XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); ihl 770 net/netfilter/ipvs/ip_vs_core.c unsigned int icmp_offset = iph->ihl*4; ihl 790 net/netfilter/ipvs/ip_vs_core.c __be16 *ports = (void *)ciph + ciph->ihl*4; ihl 878 net/netfilter/ipvs/ip_vs_core.c unsigned int offset, unsigned int ihl, ihl 887 net/netfilter/ipvs/ip_vs_core.c if (!skb_csum_unnecessary(skb) && ip_vs_checksum_complete(skb, ihl)) { ihl 942 net/netfilter/ipvs/ip_vs_core.c unsigned int offset, ihl; ihl 954 net/netfilter/ipvs/ip_vs_core.c offset = ihl = iph->ihl * 4; ihl 1005 net/netfilter/ipvs/ip_vs_core.c pp, ciph.len, ihl, hooknum); ihl 1663 net/netfilter/ipvs/ip_vs_core.c unsigned int offset, offset2, ihl, verdict; ihl 1676 net/netfilter/ipvs/ip_vs_core.c offset = ihl = iph->ihl * 4; ihl 1720 net/netfilter/ipvs/ip_vs_core.c offset += cih->ihl * 4; ihl 1735 net/netfilter/ipvs/ip_vs_core.c offset2 = offset + cih->ihl * 4; ihl 1748 net/netfilter/ipvs/ip_vs_core.c if (cih && cih->version == 4 && cih->ihl >= 5 && ihl 1793 net/netfilter/ipvs/ip_vs_core.c if (!skb_csum_unnecessary(skb) && ip_vs_checksum_complete(skb, ihl)) { ihl 1813 net/netfilter/ipvs/ip_vs_core.c if (pskb_pull(skb, ihl + sizeof(_icmph)) == NULL) ihl 1815 net/netfilter/ipvs/ip_vs_core.c offset2 -= ihl + sizeof(_icmph); ihl 231 net/netfilter/ipvs/ip_vs_proto.c pptr = skb_header_pointer(skb, offset + ih->ihl*4, ihl 384 net/netfilter/ipvs/ip_vs_proto_sctp.c int ihl, cofs; ihl 387 net/netfilter/ipvs/ip_vs_proto_sctp.c ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr); ihl 389 net/netfilter/ipvs/ip_vs_proto_sctp.c ihl = ip_hdrlen(skb); ihl 392 net/netfilter/ipvs/ip_vs_proto_sctp.c cofs = ihl + sizeof(struct sctphdr); ihl 593 net/netfilter/ipvs/ip_vs_proto_tcp.c int ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr); ihl 595 net/netfilter/ipvs/ip_vs_proto_tcp.c int ihl = ip_hdrlen(skb); ihl 598 net/netfilter/ipvs/ip_vs_proto_tcp.c th = skb_header_pointer(skb, ihl, sizeof(_tcph), &_tcph); ihl 1252 net/netfilter/ipvs/ip_vs_xmit.c iph->ihl = sizeof(struct iphdr)>>2; ihl 336 net/netfilter/nf_conntrack_core.c dataoff = nhoff + (iph->ihl << 2); ihl 342 net/netfilter/nf_conntrack_core.c nhoff, iph->ihl << 2, skb->len); ihl 175 net/netfilter/nf_flow_table_ip.c thoff = iph->ihl * 4; ihl 188 net/netfilter/nf_flow_table_ip.c thoff = iph->ihl * 4; ihl 272 net/netfilter/nf_flow_table_ip.c thoff = ip_hdr(skb)->ihl * 4; ihl 365 net/netfilter/nf_nat_proto.c hdroff = iphdroff + iph->ihl * 4; ihl 422 net/netfilter/nf_synproxy_core.c iph->ihl = sizeof(*iph) / 4; ihl 86 net/netfilter/nft_exthdr.c optlen = iph->ihl * 4 - (int)sizeof(struct iphdr); ihl 263 net/netfilter/xt_HMARK.c if (get_inner_hdr(skb, ip->ihl * 4, &nhoff)) { ihl 286 net/netfilter/xt_HMARK.c hmark_set_tuple_ports(skb, (ip->ihl * 4) + nhoff, t, info); ihl 204 net/netfilter/xt_TCPMSS.c iph->ihl * 4, ihl 136 net/sched/act_csum.c unsigned int ihl, unsigned int ipl, ihl 140 net/sched/act_csum.c int hl = ihl + jhl; ihl 146 net/sched/act_csum.c return (void *)(skb_network_header(skb) + ihl); ihl 149 net/sched/act_csum.c static int tcf_csum_ipv4_icmp(struct sk_buff *skb, unsigned int ihl, ihl 154 net/sched/act_csum.c icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph)); ihl 159 net/sched/act_csum.c skb->csum = csum_partial(icmph, ipl - ihl, 0); ihl 168 net/sched/act_csum.c unsigned int ihl, unsigned int ipl) ihl 172 net/sched/act_csum.c igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph)); ihl 177 net/sched/act_csum.c skb->csum = csum_partial(igmph, ipl - ihl, 0); ihl 185 net/sched/act_csum.c static int tcf_csum_ipv6_icmp(struct sk_buff *skb, unsigned int ihl, ihl 191 net/sched/act_csum.c icmp6h = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmp6h)); ihl 197 net/sched/act_csum.c skb->csum = csum_partial(icmp6h, ipl - ihl, 0); ihl 199 net/sched/act_csum.c ipl - ihl, IPPROTO_ICMPV6, ihl 207 net/sched/act_csum.c static int tcf_csum_ipv4_tcp(struct sk_buff *skb, unsigned int ihl, ihl 216 net/sched/act_csum.c tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); ihl 222 net/sched/act_csum.c skb->csum = csum_partial(tcph, ipl - ihl, 0); ihl 223 net/sched/act_csum.c tcph->check = tcp_v4_check(ipl - ihl, ihl 231 net/sched/act_csum.c static int tcf_csum_ipv6_tcp(struct sk_buff *skb, unsigned int ihl, ihl 240 net/sched/act_csum.c tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); ihl 246 net/sched/act_csum.c skb->csum = csum_partial(tcph, ipl - ihl, 0); ihl 248 net/sched/act_csum.c ipl - ihl, IPPROTO_TCP, ihl 256 net/sched/act_csum.c static int tcf_csum_ipv4_udp(struct sk_buff *skb, unsigned int ihl, ihl 273 net/sched/act_csum.c udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph)); ihl 286 net/sched/act_csum.c skb->csum = csum_partial(udph, ipl - ihl, 0); ihl 287 net/sched/act_csum.c else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl)) ihl 292 net/sched/act_csum.c if (ul != ipl - ihl) ihl 312 net/sched/act_csum.c static int tcf_csum_ipv6_udp(struct sk_buff *skb, unsigned int ihl, ihl 329 net/sched/act_csum.c udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph)); ihl 340 net/sched/act_csum.c skb->csum = csum_partial(udph, ipl - ihl, 0); ihl 342 net/sched/act_csum.c else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl)) ihl 348 net/sched/act_csum.c if (ul != ipl - ihl) ihl 367 net/sched/act_csum.c static int tcf_csum_sctp(struct sk_buff *skb, unsigned int ihl, ihl 375 net/sched/act_csum.c sctph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*sctph)); ihl 380 net/sched/act_csum.c skb_network_offset(skb) + ihl); ihl 402 net/sched/act_csum.c if (!tcf_csum_ipv4_icmp(skb, iph->ihl * 4, ihl 408 net/sched/act_csum.c if (!tcf_csum_ipv4_igmp(skb, iph->ihl * 4, ihl 414 net/sched/act_csum.c if (!tcf_csum_ipv4_tcp(skb, iph->ihl * 4, ihl 420 net/sched/act_csum.c if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, ihl 426 net/sched/act_csum.c if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, ihl 432 net/sched/act_csum.c !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) ihl 116 net/sched/act_nat.c int ihl; ihl 166 net/sched/act_nat.c ihl = iph->ihl * 4; ihl 174 net/sched/act_nat.c if (!pskb_may_pull(skb, ihl + sizeof(*tcph) + noff) || ihl 175 net/sched/act_nat.c skb_try_make_writable(skb, ihl + sizeof(*tcph) + noff)) ihl 178 net/sched/act_nat.c tcph = (void *)(skb_network_header(skb) + ihl); ihl 187 net/sched/act_nat.c if (!pskb_may_pull(skb, ihl + sizeof(*udph) + noff) || ihl 188 net/sched/act_nat.c skb_try_make_writable(skb, ihl + sizeof(*udph) + noff)) ihl 191 net/sched/act_nat.c udph = (void *)(skb_network_header(skb) + ihl); ihl 204 net/sched/act_nat.c if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + noff)) ihl 207 net/sched/act_nat.c icmph = (void *)(skb_network_header(skb) + ihl); ihl 214 net/sched/act_nat.c if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + sizeof(*iph) + ihl 218 net/sched/act_nat.c icmph = (void *)(skb_network_header(skb) + ihl); ihl 228 net/sched/act_nat.c if (skb_try_make_writable(skb, ihl + sizeof(*icmph) + ihl 232 net/sched/act_nat.c icmph = (void *)(skb_network_header(skb) + ihl); ihl 162 net/sched/cls_rsvp.h xprt = ((u8 *)nhptr) + (nhptr->ihl<<2); ihl 852 net/sched/sch_cake.c return skb_header_pointer(skb, offset + iph->ihl * 4, ihl 882 net/sched/sch_cake.c offset += iph->ihl * 4; ihl 1173 net/sched/sch_cake.c (4 * iph_check->ihl); ihl 306 net/sched/sch_taprio.c offset += iph->ihl * 4; ihl 574 net/sctp/input.c const int ihlen = iph->ihl * 4; ihl 27 net/xfrm/xfrm_inout.h iph->ihl = 5; ihl 206 net/xfrm/xfrm_input.c iph->ihl += optlen / 4; ihl 211 net/xfrm/xfrm_input.c iph->check = ip_fast_csum(skb_network_header(skb), iph->ihl); ihl 398 net/xfrm/xfrm_input.c int ihl = skb->data - skb_transport_header(skb); ihl 402 net/xfrm/xfrm_input.c skb_network_header(skb), ihl); ihl 405 net/xfrm/xfrm_input.c ip_hdr(skb)->tot_len = htons(skb->len + ihl); ihl 413 net/xfrm/xfrm_input.c int ihl = skb->data - skb_transport_header(skb); ihl 417 net/xfrm/xfrm_input.c skb_network_header(skb), ihl); ihl 420 net/xfrm/xfrm_input.c ipv6_hdr(skb)->payload_len = htons(skb->len + ihl - ihl 414 net/xfrm/xfrm_interface.c esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); ihl 418 net/xfrm/xfrm_interface.c ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); ihl 422 net/xfrm/xfrm_interface.c ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); ihl 61 net/xfrm/xfrm_output.c int ihl = iph->ihl * 4; ihl 68 net/xfrm/xfrm_output.c skb->transport_header = skb->network_header + ihl; ihl 69 net/xfrm/xfrm_output.c __skb_pull(skb, ihl); ihl 70 net/xfrm/xfrm_output.c memmove(skb_network_header(skb), iph, ihl); ihl 154 net/xfrm/xfrm_output.c (XFRM_MODE_SKB_CB(skb)->ihl - sizeof(*top_iph))); ihl 163 net/xfrm/xfrm_output.c ph = __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdrlen); ihl 178 net/xfrm/xfrm_output.c top_iph->ihl = sizeof(struct iphdr) / 4; ihl 206 net/xfrm/xfrm_output.c top_iph->ihl = 5; ihl 288 net/xfrm/xfrm_output.c ph = __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdr_len); ihl 3266 net/xfrm/xfrm_policy.c int ihl = iph->ihl; ihl 3267 net/xfrm/xfrm_policy.c u8 *xprth = skb_network_header(skb) + ihl * 4; ihl 3294 net/xfrm/xfrm_policy.c xprth = skb_network_header(skb) + ihl * 4; ihl 3306 net/xfrm/xfrm_policy.c xprth = skb_network_header(skb) + ihl * 4; ihl 3318 net/xfrm/xfrm_policy.c xprth = skb_network_header(skb) + ihl * 4; ihl 3329 net/xfrm/xfrm_policy.c xprth = skb_network_header(skb) + ihl * 4; ihl 3340 net/xfrm/xfrm_policy.c xprth = skb_network_header(skb) + ihl * 4; ihl 3352 net/xfrm/xfrm_policy.c xprth = skb_network_header(skb) + ihl * 4; ihl 41 samples/bpf/parse_simple.c if (iph->protocol != IPPROTO_UDP || iph->ihl != 5) ihl 62 samples/bpf/parse_varlen.c ihl_len = iph->ihl * 4; ihl 68 samples/bpf/parse_varlen.c ihl_len += iph->ihl * 4; ihl 95 samples/bpf/parse_varlen.c ihl_len += iph->ihl * 4; ihl 103 samples/bpf/xdp_adjust_tail_kern.c iph->ihl = 5; ihl 130 samples/bpf/xdp_tx_iptunnel_kern.c iph->ihl = sizeof(*iph) >> 2; ihl 4186 security/selinux/hooks.c ihlen = ih->ihl * 4; ihl 108 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.ihl = 5, ihl 150 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.ihl = 5, ihl 194 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.ihl = 5, ihl 220 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.ihl = 5, ihl 334 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.ihl = 5, ihl 337 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph_inner.ihl = 5, ihl 362 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.ihl = 5, ihl 365 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph_inner.ihl = 5, ihl 274 tools/testing/selftests/bpf/progs/bpf_flow.c if (iph->ihl < 5) ihl 282 tools/testing/selftests/bpf/progs/bpf_flow.c keys->thoff += iph->ihl << 2; ihl 274 tools/testing/selftests/bpf/progs/test_l4lb.c if (iph->ihl != 5) ihl 374 tools/testing/selftests/bpf/progs/test_l4lb.c if (iph->ihl != 5) ihl 274 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c if (iph->ihl != 5) ihl 374 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c if (iph->ihl != 5) ihl 26 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c hdr.iph.ihl = 5; ihl 38 tools/testing/selftests/bpf/progs/test_pkt_access.c ihl_len = iph->ihl * 4; ihl 35 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c ihl_len = iph->ihl * 4; ihl 84 tools/testing/selftests/bpf/progs/test_tc_edt.c uint32_t ihl; ihl 92 tools/testing/selftests/bpf/progs/test_tc_edt.c ihl = iph->ihl * 4; ihl 93 tools/testing/selftests/bpf/progs/test_tc_edt.c if (((void *)iph) + ihl > data_end) ihl 97 tools/testing/selftests/bpf/progs/test_tc_edt.c return handle_tcp(skb, (struct tcphdr *)(((void *)iph) + ihl)); ihl 104 tools/testing/selftests/bpf/progs/test_tc_tunnel.c iph_inner.ihl = 5; ihl 122 tools/testing/selftests/bpf/progs/test_tc_tunnel.c if (iph_inner.ihl != 5 || iph_inner.protocol != IPPROTO_TCP) ihl 503 tools/testing/selftests/bpf/progs/test_tc_tunnel.c if (iph_outer.ihl != 5) ihl 70 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c if (ipv4h->ihl != 5) ihl 545 tools/testing/selftests/bpf/progs/test_tunnel_kern.c if (iph->protocol != IPPROTO_TCP || iph->ihl != 5) ihl 131 tools/testing/selftests/bpf/progs/test_xdp.c iph->ihl = sizeof(*iph) >> 2; ihl 127 tools/testing/selftests/bpf/progs/test_xdp_loop.c iph->ihl = sizeof(*iph) >> 2; ihl 351 tools/testing/selftests/bpf/progs/test_xdp_noinline.c iph->ihl = 5; ihl 526 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (iph->ihl != 5) ihl 671 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (iph->ihl != 5) ihl 171 tools/testing/selftests/bpf/test_flow_dissector.c iph->ihl = 5; ihl 180 tools/testing/selftests/bpf/test_flow_dissector.c iph->check = build_ip_csum((void *) iph, iph->ihl << 1, 0); ihl 169 tools/testing/selftests/bpf/test_progs.c .iph.ihl = 5, ihl 266 tools/testing/selftests/net/msg_zerocopy.c iph->ihl = 5; ihl 272 tools/testing/selftests/net/msg_zerocopy.c iph->check = get_ip_csum((void *) iph, iph->ihl << 1); ihl 121 tools/testing/selftests/net/psock_snd.c iph->ihl = 5; ihl 129 tools/testing/selftests/net/psock_snd.c iph->check = build_ip_csum((void *) iph, iph->ihl << 1, 0); ihl 131 tools/testing/selftests/net/psock_snd.c return iph->ihl << 2; ihl 159 tools/testing/selftests/net/psock_tpacket.c ip->ihl = 5; ihl 56 tools/testing/selftests/net/txring_overwrite.c iph->ihl = 5; ihl 341 tools/testing/selftests/networking/timestamping/txtimestamp.c iph->ihl = 5;