iph                11 arch/alpha/include/asm/checksum.h extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
iph               145 arch/alpha/lib/checksum.c __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph               147 arch/alpha/lib/checksum.c 	return (__force __sum16)~do_csum(iph,ihl*4);
iph                38 arch/arc/include/asm/checksum.h ip_fast_csum(const void *iph, unsigned int ihl)
iph                40 arch/arc/include/asm/checksum.h 	const void *ptr = iph;
iph                61 arch/arm/include/asm/checksum.h ip_fast_csum(const void *iph, unsigned int ihl)
iph                81 arch/arm/include/asm/checksum.h 	: "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1)
iph                82 arch/arm/include/asm/checksum.h 	: "1" (iph), "2" (ihl)
iph                18 arch/arm64/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph                23 arch/arm64/include/asm/checksum.h 	tmp = *(const __uint128_t *)iph;
iph                24 arch/arm64/include/asm/checksum.h 	iph += 16;
iph                29 arch/arm64/include/asm/checksum.h 		sum += *(const u32 *)iph;
iph                30 arch/arm64/include/asm/checksum.h 		iph += 4;
iph                14 arch/ia64/include/asm/checksum.h extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
iph                46 arch/m68k/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph                61 arch/m68k/include/asm/checksum.h 		 : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp)
iph                62 arch/m68k/include/asm/checksum.h 		 : "0" (sum), "1" (iph), "2" (ihl)
iph               131 arch/mips/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph               133 arch/mips/include/asm/checksum.h 	const unsigned int *word = iph;
iph                22 arch/nios2/include/asm/checksum.h extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
iph                42 arch/parisc/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph                67 arch/parisc/include/asm/checksum.h 	: "=r" (sum), "=r" (iph), "=r" (ihl)
iph                68 arch/parisc/include/asm/checksum.h 	: "1" (iph), "2" (ihl)
iph               121 arch/powerpc/include/asm/checksum.h static inline __wsum ip_fast_csum_nofold(const void *iph, unsigned int ihl)
iph               123 arch/powerpc/include/asm/checksum.h 	const u32 *ptr = (const u32 *)iph + 1;
iph               126 arch/powerpc/include/asm/checksum.h 	u64 s = *(const u32 *)iph;
iph               141 arch/powerpc/include/asm/checksum.h 	    : "r" (ihl - 2), "r" (*(const u32 *)iph), "r" (*ptr)
iph               148 arch/powerpc/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph               150 arch/powerpc/include/asm/checksum.h 	return csum_fold(ip_fast_csum_nofold(iph, ihl));
iph                85 arch/s390/include/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph                87 arch/s390/include/asm/checksum.h 	return csum_fold(csum_partial(iph, ihl*4, 0));
iph                86 arch/sh/include/asm/checksum_32.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph               107 arch/sh/include/asm/checksum_32.h 	: "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1)
iph               108 arch/sh/include/asm/checksum_32.h 	: "1" (iph), "2" (ihl)
iph               122 arch/sparc/include/asm/checksum_32.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph               152 arch/sparc/include/asm/checksum_32.h 			     : "=r" (sum), "=&r" (iph)
iph               153 arch/sparc/include/asm/checksum_32.h 			     : "r" (ihl), "1" (iph)
iph                81 arch/sparc/include/asm/checksum_64.h __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
iph                70 arch/x86/include/asm/checksum_32.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph                94 arch/x86/include/asm/checksum_32.h 		     : "=r" (sum), "=r" (iph), "=r" (ihl)
iph                95 arch/x86/include/asm/checksum_32.h 		     : "1" (iph), "2" (ihl)
iph                46 arch/x86/include/asm/checksum_64.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph                70 arch/x86/include/asm/checksum_64.h 	    : "=r" (sum), "=r" (iph), "=r" (ihl)
iph                71 arch/x86/include/asm/checksum_64.h 	    : "1" (iph), "2" (ihl)
iph               119 arch/x86/um/asm/checksum.h static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph               143 arch/x86/um/asm/checksum.h 	: "=r" (sum), "=r" (iph), "=r" (ihl)
iph               144 arch/x86/um/asm/checksum.h 	: "1" (iph), "2" (ihl)
iph                90 arch/xtensa/include/asm/checksum.h static __inline__ __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph               117 arch/xtensa/include/asm/checksum.h 		: "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (tmp),
iph               119 arch/xtensa/include/asm/checksum.h 		: "1" (iph), "2" (ihl)
iph              1028 drivers/crypto/chelsio/chtls/chtls_cm.c 	const struct iphdr *iph;
iph              1040 drivers/crypto/chelsio/chtls/chtls_cm.c 	iph = (const struct iphdr *)network_hdr;
iph              1049 drivers/crypto/chelsio/chtls/chtls_cm.c 	n = dst_neigh_lookup(dst, &iph->saddr);
iph              1072 drivers/crypto/chelsio/chtls/chtls_cm.c 	newinet->inet_daddr = iph->saddr;
iph              1073 drivers/crypto/chelsio/chtls/chtls_cm.c 	newinet->inet_rcv_saddr = iph->daddr;
iph              1074 drivers/crypto/chelsio/chtls/chtls_cm.c 	newinet->inet_saddr = iph->daddr;
iph              1159 drivers/crypto/chelsio/chtls/chtls_cm.c 	struct iphdr *iph;
iph              1209 drivers/crypto/chelsio/chtls/chtls_cm.c 		iph = (struct iphdr *)(eh + 1);
iph              1213 drivers/crypto/chelsio/chtls/chtls_cm.c 		iph = (struct iphdr *)(vlan_eh + 1);
iph              1216 drivers/crypto/chelsio/chtls/chtls_cm.c 	if (iph->version != 0x4)
iph              1219 drivers/crypto/chelsio/chtls/chtls_cm.c 	tcph = (struct tcphdr *)(iph + 1);
iph              1220 drivers/crypto/chelsio/chtls/chtls_cm.c 	skb_set_network_header(skb, (void *)iph - (void *)req);
iph              1225 drivers/crypto/chelsio/chtls/chtls_cm.c 	chtls_set_req_addr(oreq, iph->daddr, iph->saddr);
iph              1226 drivers/crypto/chelsio/chtls/chtls_cm.c 	ip_dsfield = ipv4_get_dsfield(iph);
iph               285 drivers/infiniband/core/ud_header.c 	struct iphdr iph;
iph               287 drivers/infiniband/core/ud_header.c 	iph.ihl		= 5;
iph               288 drivers/infiniband/core/ud_header.c 	iph.version	= 4;
iph               289 drivers/infiniband/core/ud_header.c 	iph.tos		= header->ip4.tos;
iph               290 drivers/infiniband/core/ud_header.c 	iph.tot_len	= header->ip4.tot_len;
iph               291 drivers/infiniband/core/ud_header.c 	iph.id		= header->ip4.id;
iph               292 drivers/infiniband/core/ud_header.c 	iph.frag_off	= header->ip4.frag_off;
iph               293 drivers/infiniband/core/ud_header.c 	iph.ttl		= header->ip4.ttl;
iph               294 drivers/infiniband/core/ud_header.c 	iph.protocol	= header->ip4.protocol;
iph               295 drivers/infiniband/core/ud_header.c 	iph.check	= 0;
iph               296 drivers/infiniband/core/ud_header.c 	iph.saddr	= header->ip4.saddr;
iph               297 drivers/infiniband/core/ud_header.c 	iph.daddr	= header->ip4.daddr;
iph               299 drivers/infiniband/core/ud_header.c 	return ip_fast_csum((u8 *)&iph, iph.ihl);
iph              4061 drivers/infiniband/hw/cxgb4/cm.c 	struct iphdr *iph;
iph              4117 drivers/infiniband/hw/cxgb4/cm.c 		iph = (struct iphdr *)(eh + 1);
iph              4120 drivers/infiniband/hw/cxgb4/cm.c 		iph = (struct iphdr *)(vlan_eh + 1);
iph              4124 drivers/infiniband/hw/cxgb4/cm.c 	if (iph->version != 0x4)
iph              4127 drivers/infiniband/hw/cxgb4/cm.c 	tcph = (struct tcphdr *)(iph + 1);
iph              4128 drivers/infiniband/hw/cxgb4/cm.c 	skb_set_network_header(skb, (void *)iph - (void *)rss);
iph              4133 drivers/infiniband/hw/cxgb4/cm.c 		 ntohl(iph->daddr), ntohs(tcph->dest), ntohl(iph->saddr),
iph              4134 drivers/infiniband/hw/cxgb4/cm.c 		 ntohs(tcph->source), iph->tos);
iph              4137 drivers/infiniband/hw/cxgb4/cm.c 			      iph->daddr, iph->saddr, tcph->dest,
iph              4138 drivers/infiniband/hw/cxgb4/cm.c 			      tcph->source, iph->tos);
iph              4151 drivers/infiniband/hw/cxgb4/cm.c 		pdev = ip_dev_find(&init_net, iph->daddr);
iph              4183 drivers/infiniband/hw/cxgb4/cm.c 	build_cpl_pass_accept_req(skb, stid, iph->tos);
iph              4184 drivers/infiniband/hw/cxgb4/cm.c 	send_fw_pass_open_req(dev, skb, iph->daddr, tcph->dest, iph->saddr,
iph               383 drivers/infiniband/hw/i40iw/i40iw_cm.c 	struct iphdr *iph;
iph               411 drivers/infiniband/hw/i40iw/i40iw_cm.c 		packetsize = sizeof(*iph) + sizeof(*tcph);
iph               429 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph = (struct iphdr *)buf;
iph               430 drivers/infiniband/hw/i40iw/i40iw_cm.c 		buf += sizeof(*iph);
iph               446 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->version = IPVERSION;
iph               447 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->ihl = 5;	/* 5 * 4Byte words, IP headr len */
iph               448 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->tos = cm_node->tos;
iph               449 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->tot_len = htons(packetsize);
iph               450 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->id = htons(++cm_node->tcp_cntxt.loc_id);
iph               452 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->frag_off = htons(0x4000);
iph               453 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->ttl = 0x40;
iph               454 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->protocol = IPPROTO_TCP;
iph               455 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->saddr = htonl(cm_node->loc_addr[0]);
iph               456 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iph->daddr = htonl(cm_node->rem_addr[0]);
iph              3127 drivers/infiniband/hw/i40iw/i40iw_cm.c 	struct iphdr *iph;
iph              3138 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iph = (struct iphdr *)rbuf->iph;
iph              3163 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.loc_addr[0] = ntohl(iph->daddr);
iph              3164 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.rem_addr[0] = ntohl(iph->saddr);
iph              3166 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.tos = iph->tos;
iph              3168 drivers/infiniband/hw/i40iw/i40iw_cm.c 		ip6h = (struct ipv6hdr *)rbuf->iph;
iph                85 drivers/infiniband/hw/i40iw/i40iw_puda.h 	u8 *iph;
iph              1404 drivers/infiniband/hw/i40iw/i40iw_utils.c 	struct iphdr *iph = (struct iphdr *)buf->iph;
iph              1407 drivers/infiniband/hw/i40iw/i40iw_utils.c 	if (iph->version == 4) {
iph              1409 drivers/infiniband/hw/i40iw/i40iw_utils.c 		loc_addr[0] = ntohl(iph->daddr);
iph              1411 drivers/infiniband/hw/i40iw/i40iw_utils.c 		rem_addr[0] = ntohl(iph->saddr);
iph              1413 drivers/infiniband/hw/i40iw/i40iw_utils.c 		ip6h = (struct ipv6hdr *)buf->iph;
iph              1437 drivers/infiniband/hw/i40iw/i40iw_utils.c 	struct iphdr *iph;
iph              1443 drivers/infiniband/hw/i40iw/i40iw_utils.c 	iph = (struct iphdr *)(addr + buf->maclen);
iph              1447 drivers/infiniband/hw/i40iw/i40iw_utils.c 	iph->tot_len = htons(packetsize);
iph              1459 drivers/infiniband/hw/i40iw/i40iw_utils.c 	struct iphdr *iph;
iph              1474 drivers/infiniband/hw/i40iw/i40iw_utils.c 	buf->iph = mem + buf->maclen;
iph              1475 drivers/infiniband/hw/i40iw/i40iw_utils.c 	iph = (struct iphdr *)buf->iph;
iph              1477 drivers/infiniband/hw/i40iw/i40iw_utils.c 	buf->tcph = buf->iph + iphlen;
iph              1481 drivers/infiniband/hw/i40iw/i40iw_utils.c 		pkt_len = ntohs(iph->tot_len);
iph              1483 drivers/infiniband/hw/i40iw/i40iw_utils.c 		ip6h = (struct ipv6hdr *)buf->iph;
iph               703 drivers/infiniband/hw/qib/qib_common.h 	struct qib_header iph;
iph               453 drivers/infiniband/hw/qib/qib_user_sdma.c 		hdr->iph.pkt_flags =
iph               454 drivers/infiniband/hw/qib/qib_user_sdma.c 			cpu_to_le16(le16_to_cpu(hdr->iph.pkt_flags)|0x2);
iph               465 drivers/infiniband/hw/qib/qib_user_sdma.c 	vcto = le32_to_cpu(hdr->iph.ver_ctxt_tid_offset);
iph               466 drivers/infiniband/hw/qib/qib_user_sdma.c 	hdr->iph.chksum = cpu_to_le16(QIB_LRH_BTH +
iph               469 drivers/infiniband/hw/qib/qib_user_sdma.c 		le16_to_cpu(hdr->iph.pkt_flags));
iph               499 drivers/infiniband/hw/qib/qib_user_sdma.c 		hdr->iph.ver_ctxt_tid_offset = cpu_to_le32(
iph               500 drivers/infiniband/hw/qib/qib_user_sdma.c 			(le32_to_cpu(hdr->iph.ver_ctxt_tid_offset)&0xFF000000) +
iph               509 drivers/infiniband/hw/qib/qib_user_sdma.c 	vcto = le32_to_cpu(hdr->iph.ver_ctxt_tid_offset);
iph               510 drivers/infiniband/hw/qib/qib_user_sdma.c 	hdr->iph.chksum = cpu_to_le16(QIB_LRH_BTH +
iph               513 drivers/infiniband/hw/qib/qib_user_sdma.c 		le16_to_cpu(hdr->iph.pkt_flags));
iph               293 drivers/infiniband/sw/rxe/rxe_net.c 	struct iphdr *iph;
iph               304 drivers/infiniband/sw/rxe/rxe_net.c 	iph = ip_hdr(skb);
iph               306 drivers/infiniband/sw/rxe/rxe_net.c 	iph->version	=	IPVERSION;
iph               307 drivers/infiniband/sw/rxe/rxe_net.c 	iph->ihl	=	sizeof(struct iphdr) >> 2;
iph               308 drivers/infiniband/sw/rxe/rxe_net.c 	iph->frag_off	=	df;
iph               309 drivers/infiniband/sw/rxe/rxe_net.c 	iph->protocol	=	proto;
iph               310 drivers/infiniband/sw/rxe/rxe_net.c 	iph->tos	=	tos;
iph               311 drivers/infiniband/sw/rxe/rxe_net.c 	iph->daddr	=	daddr;
iph               312 drivers/infiniband/sw/rxe/rxe_net.c 	iph->saddr	=	saddr;
iph               313 drivers/infiniband/sw/rxe/rxe_net.c 	iph->ttl	=	ttl;
iph               314 drivers/infiniband/sw/rxe/rxe_net.c 	__ip_select_ident(dev_net(dst->dev), iph,
iph               316 drivers/infiniband/sw/rxe/rxe_net.c 	iph->tot_len = htons(skb->len);
iph               317 drivers/infiniband/sw/rxe/rxe_net.c 	ip_send_check(iph);
iph              1392 drivers/net/bonding/bond_alb.c 		const struct iphdr *iph;
iph              1395 drivers/net/bonding/bond_alb.c 		    !pskb_network_may_pull(skb, sizeof(*iph))) {
iph              1399 drivers/net/bonding/bond_alb.c 		iph = ip_hdr(skb);
iph              1400 drivers/net/bonding/bond_alb.c 		if (iph->daddr == ip_bcast || iph->protocol == IPPROTO_IGMP) {
iph              1404 drivers/net/bonding/bond_alb.c 		hash_start = (char *)&(iph->daddr);
iph              1405 drivers/net/bonding/bond_alb.c 		hash_size = sizeof(iph->daddr);
iph              3257 drivers/net/bonding/bond_main.c 	const struct iphdr *iph;
iph              3266 drivers/net/bonding/bond_main.c 		if (unlikely(!pskb_may_pull(skb, noff + sizeof(*iph))))
iph              3268 drivers/net/bonding/bond_main.c 		iph = ip_hdr(skb);
iph              3269 drivers/net/bonding/bond_main.c 		iph_to_flow_copy_v4addrs(fk, iph);
iph              3270 drivers/net/bonding/bond_main.c 		noff += iph->ihl << 2;
iph              3271 drivers/net/bonding/bond_main.c 		if (!ip_is_fragment(iph))
iph              3272 drivers/net/bonding/bond_main.c 			proto = iph->protocol;
iph              3924 drivers/net/bonding/bond_main.c 		struct iphdr *iph;
iph              3926 drivers/net/bonding/bond_main.c 		if (unlikely(!pskb_may_pull(skb, noff + sizeof(*iph))))
iph              3929 drivers/net/bonding/bond_main.c 		iph = ip_hdr(skb);
iph              3930 drivers/net/bonding/bond_main.c 		if (iph->protocol == IPPROTO_IGMP) {
iph               310 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	struct iphdr *iph;
iph               326 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	iph = ip_hdr(skb);
iph               327 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	if (unlikely(ip_is_fragment(iph)))
iph               330 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	if (likely(iph->protocol == IPPROTO_TCP)) {
iph               362 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	} else if (iph->protocol == IPPROTO_UDP) {
iph               591 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	struct iphdr *iph = ip_hdr(skb);
iph               599 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	if (ip_is_fragment(iph))
iph               602 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 	if (iph->protocol != IPPROTO_TCP && iph->protocol != IPPROTO_UDP)
iph              1412 drivers/net/ethernet/atheros/alx/main.c 		struct iphdr *iph = ip_hdr(skb);
iph              1414 drivers/net/ethernet/atheros/alx/main.c 		iph->check = 0;
iph              1415 drivers/net/ethernet/atheros/alx/main.c 		tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr,
iph              1355 drivers/net/ethernet/atheros/atl1e/atl1e_main.c 	struct iphdr *iph;
iph              1368 drivers/net/ethernet/atheros/atl1e/atl1e_main.c 			iph = (struct iphdr *) (packet + head_len);
iph              1369 drivers/net/ethernet/atheros/atl1e/atl1e_main.c 			if (iph->frag_off != 0 && !(pkt_flags & RRS_IS_IP_DF))
iph              2114 drivers/net/ethernet/atheros/atlx/atl1.c 			struct iphdr *iph = ip_hdr(skb);
iph              2116 drivers/net/ethernet/atheros/atlx/atl1.c 			real_len = (((unsigned char *)iph - skb->data) +
iph              2117 drivers/net/ethernet/atheros/atlx/atl1.c 				ntohs(iph->tot_len));
iph              2122 drivers/net/ethernet/atheros/atlx/atl1.c 				iph->check = 0;
iph              2124 drivers/net/ethernet/atheros/atlx/atl1.c 					~csum_tcpudp_magic(iph->saddr,
iph              2125 drivers/net/ethernet/atheros/atlx/atl1.c 					iph->daddr, tcp_hdrlen(skb),
iph              2127 drivers/net/ethernet/atheros/atlx/atl1.c 				ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) <<
iph              2137 drivers/net/ethernet/atheros/atlx/atl1.c 			iph->check = 0;
iph              2138 drivers/net/ethernet/atheros/atlx/atl1.c 			tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr,
iph              2139 drivers/net/ethernet/atheros/atlx/atl1.c 					iph->daddr, 0, IPPROTO_TCP, 0);
iph              2140 drivers/net/ethernet/atheros/atlx/atl1.c 			ip_off = (unsigned char *)iph -
iph              2147 drivers/net/ethernet/atheros/atlx/atl1.c 			ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) <<
iph              6637 drivers/net/ethernet/broadcom/bnx2.c 		struct iphdr *iph;
iph              6660 drivers/net/ethernet/broadcom/bnx2.c 			iph = ip_hdr(skb);
iph              6661 drivers/net/ethernet/broadcom/bnx2.c 			if (tcp_opt_len || (iph->ihl > 5)) {
iph              6662 drivers/net/ethernet/broadcom/bnx2.c 				vlan_tag_flags |= ((iph->ihl - 5) +
iph               699 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	const struct iphdr *iph = ip_hdr(skb);
iph               706 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 				  iph->saddr, iph->daddr, 0);
iph               711 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph               718 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 				  &iph->saddr, &iph->daddr, 0);
iph              3660 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 		struct iphdr *iph = ip_hdr(skb);
iph              3661 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 		u32 csum = (__force u32)(~iph->check) -
iph              3662 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			   (__force u32)iph->tot_len -
iph              3663 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			   (__force u32)iph->frag_off;
iph              3665 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 		outerip_len = iph->ihl << 1;
iph              1300 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		struct iphdr *iph = (struct iphdr *)skb->data;
iph              1302 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		if (iph->protocol == IPPROTO_UDP)
iph              1303 drivers/net/ethernet/broadcom/bnxt/bnxt.c 			uh = (struct udphdr *)(iph + 1);
iph              1305 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		struct ipv6hdr *iph = (struct ipv6hdr *)skb->data;
iph              1307 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		if (iph->nexthdr == IPPROTO_UDP)
iph              1308 drivers/net/ethernet/broadcom/bnxt/bnxt.c 			uh = (struct udphdr *)(iph + 1);
iph              1360 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		struct ipv6hdr *iph = ipv6_hdr(skb);
iph              1365 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th->check = ~tcp_v6_check(len, &iph->saddr, &iph->daddr, 0);
iph              1367 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		struct iphdr *iph = ip_hdr(skb);
iph              1372 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th->check = ~tcp_v4_check(len, iph->saddr, iph->daddr, 0);
iph              1429 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		struct iphdr *iph;
iph              1434 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		iph = ip_hdr(skb);
iph              1438 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th->check = ~tcp_v4_check(len, iph->saddr, iph->daddr, 0);
iph              1440 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		struct ipv6hdr *iph;
iph              1445 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		iph = ipv6_hdr(skb);
iph              1449 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th->check = ~tcp_v6_check(len, &iph->saddr, &iph->daddr, 0);
iph              7925 drivers/net/ethernet/broadcom/tg3.c 	struct iphdr *iph = NULL;
iph              7963 drivers/net/ethernet/broadcom/tg3.c 		iph = ip_hdr(skb);
iph              7985 drivers/net/ethernet/broadcom/tg3.c 			ip_csum = iph->check;
iph              7986 drivers/net/ethernet/broadcom/tg3.c 			ip_tot_len = iph->tot_len;
iph              7987 drivers/net/ethernet/broadcom/tg3.c 			iph->check = 0;
iph              7988 drivers/net/ethernet/broadcom/tg3.c 			iph->tot_len = htons(mss + hdr_len);
iph              8003 drivers/net/ethernet/broadcom/tg3.c 			tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr,
iph              8016 drivers/net/ethernet/broadcom/tg3.c 			if (tcp_opt_len || iph->ihl > 5) {
iph              8019 drivers/net/ethernet/broadcom/tg3.c 				tsflags = (iph->ihl - 5) + (tcp_opt_len >> 2);
iph              8023 drivers/net/ethernet/broadcom/tg3.c 			if (tcp_opt_len || iph->ihl > 5) {
iph              8026 drivers/net/ethernet/broadcom/tg3.c 				tsflags = (iph->ihl - 5) + (tcp_opt_len >> 2);
iph              8121 drivers/net/ethernet/broadcom/tg3.c 				iph->check = ip_csum;
iph              8122 drivers/net/ethernet/broadcom/tg3.c 				iph->tot_len = ip_tot_len;
iph              13463 drivers/net/ethernet/broadcom/tg3.c 		struct iphdr *iph = (struct iphdr *)&tx_data[ETH_HLEN];
iph              13476 drivers/net/ethernet/broadcom/tg3.c 		iph->tot_len = htons((u16)(mss + hdr_len));
iph              2496 drivers/net/ethernet/brocade/bna/bnad.c 		struct iphdr *iph = ip_hdr(skb);
iph              2499 drivers/net/ethernet/brocade/bna/bnad.c 		iph->tot_len = 0;
iph              2500 drivers/net/ethernet/brocade/bna/bnad.c 		iph->check = 0;
iph              2503 drivers/net/ethernet/brocade/bna/bnad.c 			~csum_tcpudp_magic(iph->saddr, iph->daddr, 0,
iph              1503 drivers/net/ethernet/chelsio/cxgb4/sge.c 			struct iphdr *iph = ip_hdr(skb);
iph              1510 drivers/net/ethernet/chelsio/cxgb4/sge.c 			if (iph->version == 4) {
iph              1511 drivers/net/ethernet/chelsio/cxgb4/sge.c 				iph->check = 0;
iph              1512 drivers/net/ethernet/chelsio/cxgb4/sge.c 				iph->tot_len = 0;
iph              1513 drivers/net/ethernet/chelsio/cxgb4/sge.c 				iph->check = (u16)(~ip_fast_csum((u8 *)iph,
iph              1514 drivers/net/ethernet/chelsio/cxgb4/sge.c 								 iph->ihl));
iph              1083 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 	const struct iphdr *iph = ip_hdr(skb);
iph              1085 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 	if (iph->version == 4) {
iph              1086 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 		if (iph->protocol == IPPROTO_TCP)
iph              1088 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 		else if (iph->protocol == IPPROTO_UDP)
iph              1102 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 		const struct ipv6hdr *ip6h = (const struct ipv6hdr *)iph;
iph              1404 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 	struct iphdr *iph;
iph              1435 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 		iph = ip_hdr(skb);
iph              1436 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 		WARN_ON(!iph);
iph              1437 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 		l4_proto = iph->protocol;
iph              2484 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 		const struct iphdr *iph = ip_hdr(skb);
iph              2489 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 		th->check = ~tcp_v4_check(skb->len - depth, iph->saddr,
iph              2490 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 					  iph->daddr, 0);
iph              2492 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 		const struct ipv6hdr *iph = ipv6_hdr(skb);
iph              2497 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 		th->check = ~tcp_v6_check(skb->len - depth, &iph->saddr,
iph              2498 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 					  &iph->daddr, 0);
iph              1191 drivers/net/ethernet/ibm/ibmveth.c 		struct iphdr *iph = (struct iphdr *)skb->data;
iph              1193 drivers/net/ethernet/ibm/ibmveth.c 		if (iph->protocol == IPPROTO_TCP) {
iph              1194 drivers/net/ethernet/ibm/ibmveth.c 			offset = iph->ihl * 4;
iph              1233 drivers/net/ethernet/ibm/ibmveth.c 	struct iphdr *iph = NULL;
iph              1243 drivers/net/ethernet/ibm/ibmveth.c 		iph = (struct iphdr *)skb->data;
iph              1248 drivers/net/ethernet/ibm/ibmveth.c 		if (iph->check == 0xffff) {
iph              1249 drivers/net/ethernet/ibm/ibmveth.c 			iph->check = 0;
iph              1250 drivers/net/ethernet/ibm/ibmveth.c 			iph->check = ip_fast_csum((unsigned char *)iph,
iph              1251 drivers/net/ethernet/ibm/ibmveth.c 						  iph->ihl);
iph              1254 drivers/net/ethernet/ibm/ibmveth.c 		iphlen = iph->ihl * 4;
iph              1255 drivers/net/ethernet/ibm/ibmveth.c 		iph_proto = iph->protocol;
iph              1282 drivers/net/ethernet/ibm/ibmveth.c 			tcph->check = ~csum_tcpudp_magic(iph->saddr,
iph              1283 drivers/net/ethernet/ibm/ibmveth.c 					iph->daddr, tcphdrlen, iph_proto, 0);
iph              2708 drivers/net/ethernet/intel/e1000/e1000_main.c 			struct iphdr *iph = ip_hdr(skb);
iph              2709 drivers/net/ethernet/intel/e1000/e1000_main.c 			iph->tot_len = 0;
iph              2710 drivers/net/ethernet/intel/e1000/e1000_main.c 			iph->check = 0;
iph              2711 drivers/net/ethernet/intel/e1000/e1000_main.c 			tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr,
iph              2712 drivers/net/ethernet/intel/e1000/e1000_main.c 								 iph->daddr, 0,
iph              5453 drivers/net/ethernet/intel/e1000e/netdev.c 		struct iphdr *iph = ip_hdr(skb);
iph              5454 drivers/net/ethernet/intel/e1000e/netdev.c 		iph->tot_len = 0;
iph              5455 drivers/net/ethernet/intel/e1000e/netdev.c 		iph->check = 0;
iph              5456 drivers/net/ethernet/intel/e1000e/netdev.c 		tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr,
iph              1194 drivers/net/ethernet/intel/ixgb/ixgb_main.c 		struct iphdr *iph;
iph              1203 drivers/net/ethernet/intel/ixgb/ixgb_main.c 		iph = ip_hdr(skb);
iph              1204 drivers/net/ethernet/intel/ixgb/ixgb_main.c 		iph->tot_len = 0;
iph              1205 drivers/net/ethernet/intel/ixgb/ixgb_main.c 		iph->check = 0;
iph              1206 drivers/net/ethernet/intel/ixgb/ixgb_main.c 		tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr,
iph              1207 drivers/net/ethernet/intel/ixgb/ixgb_main.c 							 iph->daddr, 0,
iph              1210 drivers/net/ethernet/intel/ixgb/ixgb_main.c 		ipcso = (void *)&(iph->check) - (void *)skb->data;
iph              2072 drivers/net/ethernet/jme.c 			struct iphdr *iph = ip_hdr(skb);
iph              2074 drivers/net/ethernet/jme.c 			iph->check = 0;
iph              2075 drivers/net/ethernet/jme.c 			tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr,
iph              2076 drivers/net/ethernet/jme.c 								iph->daddr, 0,
iph               580 drivers/net/ethernet/mellanox/mlx4/en_rx.c 			       struct iphdr *iph)
iph               584 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	__u8 ipproto = iph->protocol;
iph               589 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	length_for_csum = (be16_to_cpu(iph->tot_len) - (iph->ihl << 2));
iph               590 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	csum_pseudo_header = csum_tcpudp_nofold(iph->saddr, iph->daddr,
iph               149 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	struct iphdr *iph;
iph               160 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	iph = ip_hdr(nskb);
iph               161 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	iph->tot_len = htons(nskb->len - skb_network_offset(nskb));
iph               314 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	struct iphdr *iph;
iph               321 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	iph = (struct iphdr *)(mdata + 1);
iph               323 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	th = ((void *)iph) + iph->ihl * 4;
iph               325 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	if (iph->version == 4) {
iph               327 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 					     iph->saddr, th->source, iph->daddr,
iph               331 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 		struct ipv6hdr *ipv6h = (struct ipv6hdr *)iph;
iph               109 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	struct iphdr *iph;
iph               126 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph = skb_put(skb, sizeof(struct iphdr));
iph               143 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->ihl = 5;
iph               144 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->ttl = 32;
iph               145 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->version = 4;
iph               146 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->protocol = IPPROTO_UDP;
iph               149 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->tot_len = htons(iplen);
iph               150 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->frag_off = 0;
iph               151 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->saddr = 0;
iph               152 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->daddr = 0;
iph               153 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->tos = 0;
iph               154 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph->id = 0;
iph               155 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	ip_send_check(iph);
iph               164 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	udp4_hwcsum(skb, iph->saddr, iph->daddr);
iph               190 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	struct iphdr *iph;
iph               200 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	iph = ip_hdr(skb);
iph               201 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	if (iph->protocol != IPPROTO_UDP)
iph               205 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c 	udph = (struct udphdr *)((u8 *)iph + 4 * iph->ihl);
iph                50 drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c 	return (union mlxsw_sp_l3addr) { .addr4 = parms.iph.saddr };
iph                62 drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c 	return (union mlxsw_sp_l3addr) { .addr4 = parms.iph.daddr };
iph               237 drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c 	bool inherit_ttl = tunnel->parms.iph.ttl == 0;
iph               238 drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c 	bool inherit_tos = tunnel->parms.iph.tos & 0x1;
iph               307 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	ip_tunnel_init_flow(&fl4, parms.iph.protocol, *daddrp, *saddrp,
iph               335 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	union mlxsw_sp_l3addr saddr = { .addr4 = tparm.iph.saddr };
iph               336 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	union mlxsw_sp_l3addr daddr = { .addr4 = tparm.iph.daddr };
iph               337 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	bool inherit_tos = tparm.iph.tos & 0x1;
iph               338 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	bool inherit_ttl = !tparm.iph.ttl;
iph               353 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 						       tparm.iph.ttl,
iph              4964 drivers/net/ethernet/micrel/ksz884x.c 	struct iphdr *iph;
iph              4968 drivers/net/ethernet/micrel/ksz884x.c 	iph = (struct iphdr *) skb_network_header(skb);
iph              4970 drivers/net/ethernet/micrel/ksz884x.c 		protocol = iph->tot_len;
iph              4972 drivers/net/ethernet/micrel/ksz884x.c 		iph = (struct iphdr *) skb_network_header(skb);
iph              4975 drivers/net/ethernet/micrel/ksz884x.c 		if (iph->protocol == IPPROTO_TCP)
iph              8210 drivers/net/ethernet/neterion/s2io.c 	if ((lro->iph->saddr != ip->saddr) ||
iph              8211 drivers/net/ethernet/neterion/s2io.c 	    (lro->iph->daddr != ip->daddr) ||
iph              8229 drivers/net/ethernet/neterion/s2io.c 	lro->iph = ip;
iph              8253 drivers/net/ethernet/neterion/s2io.c 	struct iphdr *ip = lro->iph;
iph               676 drivers/net/ethernet/neterion/s2io.h 	struct iphdr	*iph;
iph               779 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	struct iphdr *iph;
iph               792 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	iph = skb->encapsulation ? inner_ip_hdr(skb) : ip_hdr(skb);
iph               795 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	if (iph->version == 4) {
iph               797 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		l4_hdr = iph->protocol;
iph               801 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nn_dp_warn(dp, "partial checksum but ipv=%x!\n", iph->version);
iph              1119 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c 			struct iphdr *iph = ip_hdr(skb);
iph              1122 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c 			if (iph->protocol == IPPROTO_TCP) {
iph              1128 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c 					csum_tcpudp_magic(iph->saddr,
iph              1129 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c 							  iph->daddr,
iph              1133 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c 			} else if (iph->protocol == IPPROTO_UDP) {
iph              1140 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c 					csum_tcpudp_magic(iph->saddr,
iph              1141 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c 							  iph->daddr,
iph              1578 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	struct iphdr *iph;
iph              1621 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	iph = (struct iphdr *)(skb->data + vhdr_len);
iph              1622 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2));
iph              1624 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	length = (iph->ihl << 2) + (th->doff << 2) + lro_length;
iph              1625 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	csum_replace2(&iph->check, iph->tot_len, htons(length));
iph              1626 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	iph->tot_len = htons(length);
iph              1682 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	struct iphdr *iph;
iph              1717 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	iph = (struct iphdr *)((u8 *)(ethh) + eth_hlen);
iph              1720 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		if (iph->protocol != IPPROTO_TCP) {
iph              1723 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 				  iph->protocol);
iph              1727 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		cm_info->local_ip[0] = ntohl(iph->daddr);
iph              1728 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		cm_info->remote_ip[0] = ntohl(iph->saddr);
iph              1731 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		ip_hlen = (iph->ihl) * sizeof(u32);
iph              1732 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		*payload_len = ntohs(iph->tot_len) - ip_hlen;
iph              1734 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		ip6h = (struct ipv6hdr *)iph;
iph              1739 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 				  iph->protocol);
iph              1758 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	tcph = (struct tcphdr *)((u8 *)iph + ip_hlen);
iph              1763 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 			  iph->ihl, tcph->source, tcph->dest);
iph               865 drivers/net/ethernet/qlogic/qede/qede_fp.c 	const struct iphdr *iph = ip_hdr(skb);
iph               872 drivers/net/ethernet/qlogic/qede/qede_fp.c 				  iph->saddr, iph->daddr, 0);
iph               879 drivers/net/ethernet/qlogic/qede/qede_fp.c 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph               886 drivers/net/ethernet/qlogic/qede/qede_fp.c 				  &iph->saddr, &iph->daddr, 0);
iph              1270 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	struct iphdr *iph;
iph              1328 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		iph = (struct iphdr *)skb->data;
iph              1329 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		th = (struct tcphdr *)(skb->data + (iph->ihl << 2));
iph              1330 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		length = (iph->ihl << 2) + (th->doff << 2) + lro_length;
iph              1331 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		csum_replace2(&iph->check, iph->tot_len, htons(length));
iph              1332 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		iph->tot_len = htons(length);
iph              1792 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	struct iphdr *iph;
iph              1851 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		iph = (struct iphdr *)skb->data;
iph              1852 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		th = (struct tcphdr *)(skb->data + (iph->ihl << 2));
iph              1853 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		length = (iph->ihl << 2) + (th->doff << 2) + lro_length;
iph              1854 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		csum_replace2(&iph->check, iph->tot_len, htons(length));
iph              1855 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		iph->tot_len = htons(length);
iph               309 drivers/net/ethernet/sun/sunvnet_common.c 	struct iphdr *iph = ip_hdr(skb);
iph               314 drivers/net/ethernet/sun/sunvnet_common.c 	if (iph->protocol != IPPROTO_TCP &&
iph               315 drivers/net/ethernet/sun/sunvnet_common.c 	    iph->protocol != IPPROTO_UDP)
iph               320 drivers/net/ethernet/sun/sunvnet_common.c 	if (iph->protocol == IPPROTO_TCP) {
iph               325 drivers/net/ethernet/sun/sunvnet_common.c 		ptcp->check = csum_tcpudp_magic(iph->saddr, iph->daddr,
iph               328 drivers/net/ethernet/sun/sunvnet_common.c 	} else if (iph->protocol == IPPROTO_UDP) {
iph               333 drivers/net/ethernet/sun/sunvnet_common.c 		pudp->check = csum_tcpudp_magic(iph->saddr, iph->daddr,
iph               420 drivers/net/ethernet/sun/sunvnet_common.c 				struct iphdr *iph = ip_hdr(skb);
iph               422 drivers/net/ethernet/sun/sunvnet_common.c 				iph->check = 0;
iph               423 drivers/net/ethernet/sun/sunvnet_common.c 				ip_send_check(iph);
iph               429 drivers/net/ethernet/sun/sunvnet_common.c 				struct iphdr *iph = ip_hdr(skb);
iph               430 drivers/net/ethernet/sun/sunvnet_common.c 				int ihl = iph->ihl * 4;
iph              1175 drivers/net/ethernet/sun/sunvnet_common.c 				struct iphdr *iph = ip_hdr(nskb);
iph              1177 drivers/net/ethernet/sun/sunvnet_common.c 				if (iph->protocol == IPPROTO_TCP ||
iph              1178 drivers/net/ethernet/sun/sunvnet_common.c 				    iph->protocol == IPPROTO_UDP) {
iph              1179 drivers/net/ethernet/sun/sunvnet_common.c 					csum = csum_tcpudp_magic(iph->saddr,
iph              1180 drivers/net/ethernet/sun/sunvnet_common.c 								 iph->daddr,
iph              1182 drivers/net/ethernet/sun/sunvnet_common.c 								 iph->protocol,
iph               174 drivers/net/geneve.c 		struct iphdr *iph;
iph               177 drivers/net/geneve.c 		iph = ip_hdr(skb); /* outer IP header... */
iph               184 drivers/net/geneve.c 			addr = iph->saddr;
iph               410 drivers/net/geneve.c 		struct iphdr *iph = ip_hdr(skb);
iph               415 drivers/net/geneve.c 			addr4 = iph->daddr;
iph               917 drivers/net/geneve.c 				struct iphdr *iph = ip_hdr(skb);
iph               919 drivers/net/geneve.c 				if (iph->frag_off & htons(IP_DF))
iph               156 drivers/net/gtp.c 	struct iphdr *iph;
iph               161 drivers/net/gtp.c 	iph = (struct iphdr *)(skb->data + hdrlen);
iph               164 drivers/net/gtp.c 		return iph->daddr == pctx->ms_addr_ip4.s_addr;
iph               166 drivers/net/gtp.c 		return iph->saddr == pctx->ms_addr_ip4.s_addr;
iph               446 drivers/net/gtp.c 	struct iphdr		*iph;
iph               469 drivers/net/gtp.c 					struct sock *sk, struct iphdr *iph,
iph               475 drivers/net/gtp.c 	pktinfo->iph	= iph;
iph               489 drivers/net/gtp.c 	struct iphdr *iph;
iph               496 drivers/net/gtp.c 	iph = ip_hdr(skb);
iph               498 drivers/net/gtp.c 		pctx = ipv4_pdp_find(gtp, iph->saddr);
iph               500 drivers/net/gtp.c 		pctx = ipv4_pdp_find(gtp, iph->daddr);
iph               504 drivers/net/gtp.c 			   &iph->daddr);
iph               527 drivers/net/gtp.c 	df = iph->frag_off;
iph               545 drivers/net/gtp.c 	if (!skb_is_gso(skb) && (iph->frag_off & htons(IP_DF)) &&
iph               546 drivers/net/gtp.c 	    mtu < ntohs(iph->tot_len)) {
iph               554 drivers/net/gtp.c 	gtp_set_pktinfo_ipv4(pktinfo, pctx->sk, iph, pctx, rt, &fl4, dev);
iph               594 drivers/net/gtp.c 			   &pktinfo.iph->saddr, &pktinfo.iph->daddr);
iph               597 drivers/net/gtp.c 				    pktinfo.iph->tos,
iph               756 drivers/net/hyperv/netvsc_drv.c 	struct iphdr *iph = (struct iphdr *)skb->data;
iph               758 drivers/net/hyperv/netvsc_drv.c 	iph->check = 0;
iph               759 drivers/net/hyperv/netvsc_drv.c 	iph->check = ip_fast_csum(iph, iph->ihl);
iph               370 drivers/net/netdevsim/dev.c 	struct iphdr *iph;
iph               385 drivers/net/netdevsim/dev.c 	iph = skb_put(skb, sizeof(struct iphdr));
iph               386 drivers/net/netdevsim/dev.c 	iph->protocol = IPPROTO_UDP;
iph               387 drivers/net/netdevsim/dev.c 	iph->saddr = in_aton("192.0.2.1");
iph               388 drivers/net/netdevsim/dev.c 	iph->daddr = in_aton("198.51.100.1");
iph               389 drivers/net/netdevsim/dev.c 	iph->version = 0x4;
iph               390 drivers/net/netdevsim/dev.c 	iph->frag_off = 0;
iph               391 drivers/net/netdevsim/dev.c 	iph->ihl = 0x5;
iph               392 drivers/net/netdevsim/dev.c 	iph->tot_len = htons(tot_len);
iph               393 drivers/net/netdevsim/dev.c 	iph->ttl = 100;
iph               394 drivers/net/netdevsim/dev.c 	iph->check = 0;
iph               395 drivers/net/netdevsim/dev.c 	iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph               148 drivers/net/ppp/pptp.c 	struct iphdr  *iph;
iph               164 drivers/net/ppp/pptp.c 	max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(*iph) + sizeof(*hdr) + 2;
iph               219 drivers/net/ppp/pptp.c 	skb_push(skb, sizeof(*iph));
iph               224 drivers/net/ppp/pptp.c 	iph =	ip_hdr(skb);
iph               225 drivers/net/ppp/pptp.c 	iph->version =	4;
iph               226 drivers/net/ppp/pptp.c 	iph->ihl =	sizeof(struct iphdr) >> 2;
iph               228 drivers/net/ppp/pptp.c 		iph->frag_off	=	htons(IP_DF);
iph               230 drivers/net/ppp/pptp.c 		iph->frag_off	=	0;
iph               231 drivers/net/ppp/pptp.c 	iph->protocol = IPPROTO_GRE;
iph               232 drivers/net/ppp/pptp.c 	iph->tos      = 0;
iph               233 drivers/net/ppp/pptp.c 	iph->daddr    = fl4.daddr;
iph               234 drivers/net/ppp/pptp.c 	iph->saddr    = fl4.saddr;
iph               235 drivers/net/ppp/pptp.c 	iph->ttl      = ip4_dst_hoplimit(&rt->dst);
iph               236 drivers/net/ppp/pptp.c 	iph->tot_len  = htons(skb->len);
iph               245 drivers/net/ppp/pptp.c 	ip_send_check(iph);
iph               338 drivers/net/ppp/pptp.c 	struct iphdr *iph;
iph               346 drivers/net/ppp/pptp.c 	iph = ip_hdr(skb);
iph               358 drivers/net/ppp/pptp.c 	po = lookup_chan(htons(header->call_id), iph->saddr);
iph               309 drivers/net/usb/cdc_mbim.c 	struct ipv6hdr *iph = (void *)buf;
iph               310 drivers/net/usb/cdc_mbim.c 	struct nd_msg *msg = (void *)(iph + 1);
iph               318 drivers/net/usb/cdc_mbim.c 	if (!ipv6_addr_is_solict_mult(&iph->daddr) ||
iph               319 drivers/net/usb/cdc_mbim.c 	    !(ipv6_addr_type(&iph->saddr) & IPV6_ADDR_UNICAST))
iph               344 drivers/net/usb/cdc_mbim.c 	ipv6_stub->ndisc_send_na(netdev, &iph->saddr, &msg->target,
iph               355 drivers/net/usb/cdc_mbim.c 	struct ipv6hdr *iph = (void *)buf;
iph               356 drivers/net/usb/cdc_mbim.c 	struct nd_msg *msg = (void *)(iph + 1);
iph               359 drivers/net/usb/cdc_mbim.c 		iph->nexthdr == IPPROTO_ICMPV6 &&
iph               853 drivers/net/vmxnet3/vmxnet3_drv.c 				const struct iphdr *iph = ip_hdr(skb);
iph               855 drivers/net/vmxnet3/vmxnet3_drv.c 				protocol = iph->protocol;
iph               939 drivers/net/vmxnet3/vmxnet3_drv.c 		struct iphdr *iph = ip_hdr(skb);
iph               941 drivers/net/vmxnet3/vmxnet3_drv.c 		iph->check = 0;
iph               942 drivers/net/vmxnet3/vmxnet3_drv.c 		tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0,
iph               945 drivers/net/vmxnet3/vmxnet3_drv.c 		struct ipv6hdr *iph = ipv6_hdr(skb);
iph               947 drivers/net/vmxnet3/vmxnet3_drv.c 		tcph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, 0,
iph               168 drivers/net/vrf.c 	const struct ipv6hdr *iph;
iph               178 drivers/net/vrf.c 	iph = ipv6_hdr(skb);
iph               184 drivers/net/vrf.c 	fl6.daddr = iph->daddr;
iph               185 drivers/net/vrf.c 	fl6.saddr = iph->saddr;
iph               186 drivers/net/vrf.c 	fl6.flowlabel = ip6_flowinfo(iph);
iph               188 drivers/net/vrf.c 	fl6.flowi6_proto = iph->nexthdr;
iph               924 drivers/net/vrf.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               927 drivers/net/vrf.c 	if (iph->nexthdr == NEXTHDR_ICMP) {
iph               931 drivers/net/vrf.c 		icmph = skb_header_pointer(skb, sizeof(*iph),
iph               966 drivers/net/vrf.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               970 drivers/net/vrf.c 		.flowi6_proto   = iph->nexthdr,
iph               971 drivers/net/vrf.c 		.daddr          = iph->daddr,
iph               972 drivers/net/vrf.c 		.saddr          = iph->saddr,
iph               973 drivers/net/vrf.c 		.flowlabel      = ip6_flowinfo(iph),
iph              2080 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static void iwl_compute_pseudo_hdr_csum(void *iph, struct tcphdr *tcph,
iph              2084 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 		struct ipv6hdr *iphv6 = iph;
iph              2090 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 		struct iphdr *iphv4 = iph;
iph              2170 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 		u8 *iph, *subf_hdrs_start = hdr_page->pos;
iph              2192 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 		iph = hdr_page->pos + 8;
iph              2193 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 		tcph = (void *)(iph + ip_hdrlen);
iph              2202 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 			iwl_compute_pseudo_hdr_csum(iph, tcph,
iph              2010 drivers/s390/net/qeth_l3_main.c 	struct iphdr *iph = ip_hdr(skb);
iph              2014 drivers/s390/net/qeth_l3_main.c 		iph->check = 0;
iph              2016 drivers/s390/net/qeth_l3_main.c 		iph->tot_len = 0;
iph              2017 drivers/s390/net/qeth_l3_main.c 		tcp_hdr(skb)->check = ~tcp_v4_check(0, iph->saddr,
iph              2018 drivers/s390/net/qeth_l3_main.c 						    iph->daddr, 0);
iph              1605 drivers/staging/qlge/qlge_main.c 			struct iphdr *iph =
iph              1607 drivers/staging/qlge/qlge_main.c 			if (!(iph->frag_off &
iph              1720 drivers/staging/qlge/qlge_main.c 			struct iphdr *iph = (struct iphdr *) skb->data;
iph              1721 drivers/staging/qlge/qlge_main.c 			if (!(iph->frag_off &
iph              2031 drivers/staging/qlge/qlge_main.c 			struct iphdr *iph = (struct iphdr *) skb->data;
iph              2032 drivers/staging/qlge/qlge_main.c 			if (!(iph->frag_off &
iph              2584 drivers/staging/qlge/qlge_main.c 			struct iphdr *iph = ip_hdr(skb);
iph              2585 drivers/staging/qlge/qlge_main.c 			iph->check = 0;
iph              2587 drivers/staging/qlge/qlge_main.c 			tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr,
iph              2588 drivers/staging/qlge/qlge_main.c 								 iph->daddr, 0,
iph              2607 drivers/staging/qlge/qlge_main.c 	struct iphdr *iph = ip_hdr(skb);
iph              2616 drivers/staging/qlge/qlge_main.c 	len = (ntohs(iph->tot_len) - (iph->ihl << 2));
iph              2617 drivers/staging/qlge/qlge_main.c 	if (likely(iph->protocol == IPPROTO_TCP)) {
iph              2630 drivers/staging/qlge/qlge_main.c 	*check = ~csum_tcpudp_magic(iph->saddr,
iph              2631 drivers/staging/qlge/qlge_main.c 				    iph->daddr, len, iph->protocol, 0);
iph                47 include/asm-generic/checksum.h extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
iph                51 include/linux/netfilter_ipv6.h 	u32 (*cookie_init_sequence)(const struct ipv6hdr *iph,
iph                53 include/linux/netfilter_ipv6.h 	int (*cookie_v6_check)(const struct ipv6hdr *iph,
iph               182 include/linux/netfilter_ipv6.h static inline u32 nf_ipv6_cookie_init_sequence(const struct ipv6hdr *iph,
iph               191 include/linux/netfilter_ipv6.h 		return v6_ops->cookie_init_sequence(iph, th, mssp);
iph               193 include/linux/netfilter_ipv6.h 	return __cookie_v6_init_sequence(iph, th, mssp);
iph               199 include/linux/netfilter_ipv6.h static inline int nf_cookie_v6_check(const struct ipv6hdr *iph,
iph               207 include/linux/netfilter_ipv6.h 		return v6_ops->cookie_v6_check(iph, th, cookie);
iph               209 include/linux/netfilter_ipv6.h 	return __cookie_v6_check(iph, th, cookie);
iph                16 include/net/dsfield.h static inline __u8 ipv4_get_dsfield(const struct iphdr *iph)
iph                18 include/net/dsfield.h 	return iph->tos;
iph                28 include/net/dsfield.h static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask,
iph                31 include/net/dsfield.h         __u32 check = ntohs((__force __be16)iph->check);
iph                34 include/net/dsfield.h 	dsfield = (iph->tos & mask) | value;
iph                35 include/net/dsfield.h 	check += iph->tos;
iph                39 include/net/dsfield.h 	iph->check = (__force __sum16)htons(check);
iph                40 include/net/dsfield.h 	iph->tos = dsfield;
iph               166 include/net/dst_metadata.h 	const struct iphdr *iph = ip_hdr(skb);
iph               168 include/net/dst_metadata.h 	return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl,
iph                75 include/net/inet_ecn.h static inline int IP_ECN_set_ce(struct iphdr *iph)
iph                77 include/net/inet_ecn.h 	u32 check = (__force u32)iph->check;
iph                78 include/net/inet_ecn.h 	u32 ecn = (iph->tos + 1) & INET_ECN_MASK;
iph                97 include/net/inet_ecn.h 	iph->check = (__force __sum16)(check + (check>=0xFFFF));
iph                98 include/net/inet_ecn.h 	iph->tos |= INET_ECN_CE;
iph               102 include/net/inet_ecn.h static inline int IP_ECN_set_ect1(struct iphdr *iph)
iph               104 include/net/inet_ecn.h 	u32 check = (__force u32)iph->check;
iph               106 include/net/inet_ecn.h 	if ((iph->tos & INET_ECN_MASK) != INET_ECN_ECT_0)
iph               111 include/net/inet_ecn.h 	iph->check = (__force __sum16)(check + (check>=0xFFFF));
iph               112 include/net/inet_ecn.h 	iph->tos ^= INET_ECN_MASK;
iph               116 include/net/inet_ecn.h static inline void IP_ECN_clear(struct iphdr *iph)
iph               118 include/net/inet_ecn.h 	iph->tos &= ~INET_ECN_MASK;
iph               135 include/net/inet_ecn.h static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph)
iph               139 include/net/inet_ecn.h 	if (INET_ECN_is_not_ect(ipv6_get_dsfield(iph)))
iph               142 include/net/inet_ecn.h 	from = *(__be32 *)iph;
iph               144 include/net/inet_ecn.h 	*(__be32 *)iph = to;
iph               151 include/net/inet_ecn.h static inline int IP6_ECN_set_ect1(struct sk_buff *skb, struct ipv6hdr *iph)
iph               155 include/net/inet_ecn.h 	if ((ipv6_get_dsfield(iph) & INET_ECN_MASK) != INET_ECN_ECT_0)
iph               158 include/net/inet_ecn.h 	from = *(__be32 *)iph;
iph               160 include/net/inet_ecn.h 	*(__be32 *)iph = to;
iph               389 include/net/inet_hashtables.h 	const struct iphdr *iph = ip_hdr(skb);
iph               396 include/net/inet_hashtables.h 			     doff, iph->saddr, sport,
iph               397 include/net/inet_hashtables.h 			     iph->daddr, dport, inet_iif(skb), sdif,
iph               168 include/net/ip.h 	struct iphdr	*iph;
iph               173 include/net/ip.h void ip_fraglist_init(struct sk_buff *skb, struct iphdr *iph,
iph               385 include/net/ip.h static inline bool ip_is_fragment(const struct iphdr *iph)
iph               387 include/net/ip.h 	return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0;
iph               396 include/net/ip.h int ip_decrease_ttl(struct iphdr *iph)
iph               398 include/net/ip.h 	u32 check = (__force u32)iph->check;
iph               400 include/net/ip.h 	iph->check = (__force __sum16)(check + (check>=0xFFFF));
iph               401 include/net/ip.h 	return --iph->ttl;
iph               495 include/net/ip.h void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);
iph               500 include/net/ip.h 	struct iphdr *iph = ip_hdr(skb);
iph               502 include/net/ip.h 	if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) {
iph               509 include/net/ip.h 			iph->id = htons(inet_sk(sk)->inet_id);
iph               512 include/net/ip.h 			iph->id = 0;
iph               515 include/net/ip.h 		__ip_select_ident(net, iph, segs);
iph               536 include/net/ip.h 					    const struct iphdr *iph)
iph               541 include/net/ip.h 	memcpy(&flow->addrs.v4addrs, &iph->saddr, sizeof(flow->addrs.v4addrs));
iph               547 include/net/ip.h 	const struct iphdr *iph = skb_gro_network_header(skb);
iph               549 include/net/ip.h 	return csum_tcpudp_nofold(iph->saddr, iph->daddr,
iph                48 include/net/ip6_checksum.h 	const struct ipv6hdr *iph = skb_gro_network_header(skb);
iph                50 include/net/ip6_checksum.h 	return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
iph               374 include/net/ip_tunnels.h static inline u8 ip_tunnel_get_dsfield(const struct iphdr *iph,
iph               378 include/net/ip_tunnels.h 		return iph->tos;
iph               380 include/net/ip_tunnels.h 		return ipv6_get_dsfield((const struct ipv6hdr *)iph);
iph               385 include/net/ip_tunnels.h static inline u8 ip_tunnel_get_ttl(const struct iphdr *iph,
iph               389 include/net/ip_tunnels.h 		return iph->ttl;
iph               391 include/net/ip_tunnels.h 		return ((const struct ipv6hdr *)iph)->hop_limit;
iph               397 include/net/ip_tunnels.h static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph,
iph               400 include/net/ip_tunnels.h 	u8 inner = ip_tunnel_get_dsfield(iph, skb);
iph                79 include/net/ip_vs.h 		const struct ipv6hdr *iph = skb_header_pointer(
iph                81 include/net/ip_vs.h 		if (!iph)
iph                84 include/net/ip_vs.h 		iphdr->saddr.in6 = iph->saddr;
iph                85 include/net/ip_vs.h 		iphdr->daddr.in6 = iph->daddr;
iph                98 include/net/ip_vs.h 		const struct iphdr *iph = skb_header_pointer(
iph               100 include/net/ip_vs.h 		if (!iph)
iph               103 include/net/ip_vs.h 		iphdr->len	= offset + iph->ihl * 4;
iph               105 include/net/ip_vs.h 		iphdr->protocol	= iph->protocol;
iph               106 include/net/ip_vs.h 		iphdr->saddr.ip	= iph->saddr;
iph               107 include/net/ip_vs.h 		iphdr->daddr.ip	= iph->daddr;
iph               139 include/net/ip_vs.h ip_vs_iph_inverse(const struct ip_vs_iphdr *iph)
iph               141 include/net/ip_vs.h 	return !!(iph->hdr_flags & IP_VS_HDR_INVERSE);
iph               145 include/net/ip_vs.h ip_vs_iph_icmp(const struct ip_vs_iphdr *iph)
iph               147 include/net/ip_vs.h 	return !!(iph->hdr_flags & IP_VS_HDR_ICMP);
iph               436 include/net/ip_vs.h 			     struct ip_vs_iphdr *iph);
iph               442 include/net/ip_vs.h 		       const struct ip_vs_iphdr *iph);
iph               448 include/net/ip_vs.h 			const struct ip_vs_iphdr *iph);
iph               451 include/net/ip_vs.h 			    struct ip_vs_conn *cp, struct ip_vs_iphdr *iph);
iph               454 include/net/ip_vs.h 			    struct ip_vs_conn *cp, struct ip_vs_iphdr *iph);
iph               546 include/net/ip_vs.h 			   struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph               718 include/net/ip_vs.h 				       struct ip_vs_iphdr *iph);
iph               739 include/net/ip_vs.h 				       const struct ip_vs_iphdr *iph,
iph               795 include/net/ip_vs.h 		       const struct iphdr *iph, int inverse);
iph               799 include/net/ip_vs.h 			const struct iphdr *iph, int inverse);
iph              1164 include/net/ip_vs.h 				      const struct ip_vs_iphdr *iph,
iph              1204 include/net/ip_vs.h 					    const struct ip_vs_iphdr *iph);
iph              1210 include/net/ip_vs.h 					     const struct ip_vs_iphdr *iph);
iph              1392 include/net/ip_vs.h 	       struct ip_vs_iphdr *iph);
iph              1394 include/net/ip_vs.h 		struct ip_vs_proto_data *pd, struct ip_vs_iphdr *iph);
iph              1462 include/net/ip_vs.h 		    struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph              1464 include/net/ip_vs.h 		      struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph              1466 include/net/ip_vs.h 		   struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph              1468 include/net/ip_vs.h 		      struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph              1470 include/net/ip_vs.h 		  struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph              1473 include/net/ip_vs.h 		    unsigned int hooknum, struct ip_vs_iphdr *iph);
iph              1478 include/net/ip_vs.h 			 struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph              1480 include/net/ip_vs.h 		      struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph              1482 include/net/ip_vs.h 			 struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph              1484 include/net/ip_vs.h 		     struct ip_vs_protocol *pp, struct ip_vs_iphdr *iph);
iph              1487 include/net/ip_vs.h 		       unsigned int hooknum, struct ip_vs_iphdr *iph);
iph               832 include/net/ipv6.h 					    const struct ipv6hdr *iph)
iph               837 include/net/ipv6.h 	memcpy(&flow->addrs.v6addrs, &iph->saddr, sizeof(flow->addrs.v6addrs));
iph                46 include/net/netfilter/nf_queue.h static inline u32 hash_v4(const struct iphdr *iph, u32 initval)
iph                49 include/net/netfilter/nf_queue.h 	if ((__force u32)iph->saddr < (__force u32)iph->daddr)
iph                50 include/net/netfilter/nf_queue.h 		return jhash_3words((__force u32)iph->saddr,
iph                51 include/net/netfilter/nf_queue.h 			(__force u32)iph->daddr, iph->protocol, initval);
iph                53 include/net/netfilter/nf_queue.h 	return jhash_3words((__force u32)iph->daddr,
iph                54 include/net/netfilter/nf_queue.h 			(__force u32)iph->saddr, iph->protocol, initval);
iph                82 include/net/netfilter/nf_queue.h 	struct iphdr *iph, _iph;
iph                86 include/net/netfilter/nf_queue.h 		iph = skb_header_pointer(skb, skb_network_offset(skb),
iph                87 include/net/netfilter/nf_queue.h 					 sizeof(*iph), &_iph);
iph                88 include/net/netfilter/nf_queue.h 		if (iph)
iph                89 include/net/netfilter/nf_queue.h 			return hash_v4(iph, initval);
iph                23 include/net/netfilter/nf_tables_ipv4.h 	struct iphdr *iph, _iph;
iph                26 include/net/netfilter/nf_tables_ipv4.h 	iph = skb_header_pointer(skb, skb_network_offset(skb), sizeof(*iph),
iph                28 include/net/netfilter/nf_tables_ipv4.h 	if (!iph)
iph                31 include/net/netfilter/nf_tables_ipv4.h 	if (iph->ihl < 5 || iph->version != 4)
iph                34 include/net/netfilter/nf_tables_ipv4.h 	len = ntohs(iph->tot_len);
iph                35 include/net/netfilter/nf_tables_ipv4.h 	thoff = iph->ihl * 4;
iph                42 include/net/netfilter/nf_tables_ipv4.h 	pkt->tprot = iph->protocol;
iph                44 include/net/netfilter/nf_tables_ipv4.h 	pkt->xt.fragoff = ntohs(iph->frag_off) & IP_OFFSET;
iph               420 include/net/tcp.h u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph,
iph               422 include/net/tcp.h u16 tcp_v6_get_syncookie(struct sock *sk, struct ipv6hdr *iph,
iph               466 include/net/tcp.h int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
iph               548 include/net/tcp.h u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th,
iph               558 include/net/tcp.h int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th,
iph               562 include/net/tcp.h u32 __cookie_v6_init_sequence(const struct ipv6hdr *iph,
iph                55 include/uapi/linux/if_tunnel.h 	struct iphdr		iph;
iph               106 lib/checksum.c __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
iph               108 lib/checksum.c 	return (__force __sum16)~do_csum(iph, ihl*4);
iph               481 net/atm/br2684.c 			struct iphdr *iph;
iph               484 net/atm/br2684.c 			iph = ip_hdr(skb);
iph               485 net/atm/br2684.c 			if (iph->version == 4)
iph               487 net/atm/br2684.c 			else if (iph->version == 6)
iph               495 net/atm/mpc.c  	struct iphdr *iph;
iph               508 net/atm/mpc.c  	iph = (struct iphdr *)buff;
iph               509 net/atm/mpc.c  	ipaddr = iph->daddr;
iph               532 net/atm/mpc.c  	if (iph->ttl <= 1) {
iph               534 net/atm/mpc.c  			 mpc->dev->name, iph->ttl);
iph               538 net/atm/mpc.c  	iph->ttl--;
iph               539 net/atm/mpc.c  	iph->check = 0;
iph               540 net/atm/mpc.c  	iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph               225 net/bridge/br_multicast.c 	struct iphdr *iph;
iph               230 net/bridge/br_multicast.c 	skb = netdev_alloc_skb_ip_align(br->dev, sizeof(*eth) + sizeof(*iph) +
iph               251 net/bridge/br_multicast.c 	iph = ip_hdr(skb);
iph               253 net/bridge/br_multicast.c 	iph->version = 4;
iph               254 net/bridge/br_multicast.c 	iph->ihl = 6;
iph               255 net/bridge/br_multicast.c 	iph->tos = 0xc0;
iph               256 net/bridge/br_multicast.c 	iph->tot_len = htons(sizeof(*iph) + igmp_hdr_size + 4);
iph               257 net/bridge/br_multicast.c 	iph->id = 0;
iph               258 net/bridge/br_multicast.c 	iph->frag_off = htons(IP_DF);
iph               259 net/bridge/br_multicast.c 	iph->ttl = 1;
iph               260 net/bridge/br_multicast.c 	iph->protocol = IPPROTO_IGMP;
iph               261 net/bridge/br_multicast.c 	iph->saddr = br_opt_get(br, BROPT_MULTICAST_QUERY_USE_IFADDR) ?
iph               263 net/bridge/br_multicast.c 	iph->daddr = htonl(INADDR_ALLHOSTS_GROUP);
iph               264 net/bridge/br_multicast.c 	((u8 *)&iph[1])[0] = IPOPT_RA;
iph               265 net/bridge/br_multicast.c 	((u8 *)&iph[1])[1] = 4;
iph               266 net/bridge/br_multicast.c 	((u8 *)&iph[1])[2] = 0;
iph               267 net/bridge/br_multicast.c 	((u8 *)&iph[1])[3] = 0;
iph               268 net/bridge/br_multicast.c 	ip_send_check(iph);
iph              1221 net/bridge/br_multicast.c 	const struct iphdr *iph = ip_hdr(skb);
iph              1259 net/bridge/br_multicast.c 		saddr.u.ip4 = iph->saddr;
iph               198 net/bridge/br_netfilter_hooks.c 	const struct iphdr *iph;
iph               204 net/bridge/br_netfilter_hooks.c 	iph = ip_hdr(skb);
iph               207 net/bridge/br_netfilter_hooks.c 	if (iph->ihl < 5 || iph->version != 4)
iph               210 net/bridge/br_netfilter_hooks.c 	if (!pskb_may_pull(skb, iph->ihl*4))
iph               213 net/bridge/br_netfilter_hooks.c 	iph = ip_hdr(skb);
iph               214 net/bridge/br_netfilter_hooks.c 	if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl)))
iph               217 net/bridge/br_netfilter_hooks.c 	len = ntohs(iph->tot_len);
iph               221 net/bridge/br_netfilter_hooks.c 	} else if (len < (iph->ihl*4))
iph               355 net/bridge/br_netfilter_hooks.c 	struct iphdr *iph = ip_hdr(skb);
iph               368 net/bridge/br_netfilter_hooks.c 		if ((err = ip_route_input(skb, iph->daddr, iph->saddr, iph->tos, dev))) {
iph               381 net/bridge/br_netfilter_hooks.c 			rt = ip_route_output(net, iph->daddr, 0,
iph               382 net/bridge/br_netfilter_hooks.c 					     RT_TOS(iph->tos), 0);
iph               708 net/bridge/br_netfilter_hooks.c 	struct iphdr *iph = ip_hdr(skb);
iph               710 net/bridge/br_netfilter_hooks.c 	if (unlikely(((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) ||
iph                38 net/bridge/netfilter/nf_conntrack_bridge.c 	struct iphdr *iph;
iph                46 net/bridge/netfilter/nf_conntrack_bridge.c 	iph = ip_hdr(skb);
iph                52 net/bridge/netfilter/nf_conntrack_bridge.c 	hlen = iph->ihl * 4;
iph                78 net/bridge/netfilter/nf_conntrack_bridge.c 		ip_fraglist_init(skb, iph, hlen, &iter);
iph               195 net/bridge/netfilter/nf_conntrack_bridge.c 	const struct iphdr *iph;
iph               199 net/bridge/netfilter/nf_conntrack_bridge.c 	iph = ip_hdr(skb);
iph               200 net/bridge/netfilter/nf_conntrack_bridge.c 	if (iph->ihl < 5 ||
iph               201 net/bridge/netfilter/nf_conntrack_bridge.c 	    iph->version != 4)
iph               204 net/bridge/netfilter/nf_conntrack_bridge.c 	len = ntohs(iph->tot_len);
iph               206 net/bridge/netfilter/nf_conntrack_bridge.c 	    len < (iph->ihl * 4))
iph                44 net/bridge/netfilter/nft_reject_bridge.c 	struct iphdr *iph;
iph                50 net/bridge/netfilter/nft_reject_bridge.c 	iph = ip_hdr(skb);
iph                51 net/bridge/netfilter/nft_reject_bridge.c 	if (iph->ihl < 5 || iph->version != 4)
iph                54 net/bridge/netfilter/nft_reject_bridge.c 	len = ntohs(iph->tot_len);
iph                57 net/bridge/netfilter/nft_reject_bridge.c 	else if (len < (iph->ihl*4))
iph                60 net/bridge/netfilter/nft_reject_bridge.c 	if (!pskb_may_pull(skb, iph->ihl*4))
iph              3148 net/core/dev.c 		struct iphdr *iph = skb->encapsulation ?
iph              3151 net/core/dev.c 		if (!(iph->frag_off & htons(IP_DF)))
iph              5794 net/core/filter.c BPF_CALL_5(bpf_tcp_check_syncookie, struct sock *, sk, void *, iph, u32, iph_len,
iph              5824 net/core/filter.c 		ret = __cookie_v4_check((struct iphdr *)iph, th, cookie);
iph              5832 net/core/filter.c 		ret = __cookie_v6_check((struct ipv6hdr *)iph, th, cookie);
iph              5861 net/core/filter.c BPF_CALL_5(bpf_tcp_gen_syncookie, struct sock *, sk, void *, iph, u32, iph_len,
iph              5886 net/core/filter.c 	switch (((struct iphdr *)iph)->version) {
iph              5891 net/core/filter.c 		mss = tcp_v4_get_syncookie(sk, iph, th, &cookie);
iph              5902 net/core/filter.c 		mss = tcp_v6_get_syncookie(sk, iph, th, &cookie);
iph               730 net/core/flow_dissector.c 			void *target_container, void *data, const struct iphdr *iph)
iph               740 net/core/flow_dissector.c 	key_ip->tos = iph->tos;
iph               741 net/core/flow_dissector.c 	key_ip->ttl = iph->ttl;
iph               747 net/core/flow_dissector.c 			void *target_container, void *data, const struct ipv6hdr *iph)
iph               757 net/core/flow_dissector.c 	key_ip->tos = ipv6_get_dsfield(iph);
iph               758 net/core/flow_dissector.c 	key_ip->ttl = iph->hop_limit;
iph              1007 net/core/flow_dissector.c 		const struct iphdr *iph;
iph              1010 net/core/flow_dissector.c 		iph = __skb_header_pointer(skb, nhoff, sizeof(_iph), data, hlen, &_iph);
iph              1011 net/core/flow_dissector.c 		if (!iph || iph->ihl < 5) {
iph              1016 net/core/flow_dissector.c 		nhoff += iph->ihl * 4;
iph              1018 net/core/flow_dissector.c 		ip_proto = iph->protocol;
iph              1026 net/core/flow_dissector.c 			memcpy(&key_addrs->v4addrs, &iph->saddr,
iph              1031 net/core/flow_dissector.c 		if (ip_is_fragment(iph)) {
iph              1034 net/core/flow_dissector.c 			if (iph->frag_off & htons(IP_OFFSET)) {
iph              1048 net/core/flow_dissector.c 					target_container, data, iph);
iph              1053 net/core/flow_dissector.c 		const struct ipv6hdr *iph;
iph              1056 net/core/flow_dissector.c 		iph = __skb_header_pointer(skb, nhoff, sizeof(_iph), data, hlen, &_iph);
iph              1057 net/core/flow_dissector.c 		if (!iph) {
iph              1062 net/core/flow_dissector.c 		ip_proto = iph->nexthdr;
iph              1071 net/core/flow_dissector.c 			memcpy(&key_addrs->v6addrs, &iph->saddr,
iph              1079 net/core/flow_dissector.c 		    ip6_flowlabel(iph)) {
iph              1080 net/core/flow_dissector.c 			__be32 flow_label = ip6_flowlabel(iph);
iph              1096 net/core/flow_dissector.c 					target_container, data, iph);
iph                92 net/core/lwt_bpf.c 		struct iphdr *iph = ip_hdr(skb);
iph                96 net/core/lwt_bpf.c 		err = ip_route_input_noref(skb, iph->daddr, iph->saddr,
iph                97 net/core/lwt_bpf.c 					   iph->tos, dev);
iph               202 net/core/lwt_bpf.c 		struct iphdr *iph = ip_hdr(skb);
iph               209 net/core/lwt_bpf.c 		fl4.flowi4_tos = RT_TOS(iph->tos);
iph               211 net/core/lwt_bpf.c 		fl4.flowi4_proto = iph->protocol;
iph               212 net/core/lwt_bpf.c 		fl4.daddr = iph->daddr;
iph               213 net/core/lwt_bpf.c 		fl4.saddr = iph->saddr;
iph               594 net/core/lwt_bpf.c 	struct iphdr *iph;
iph               602 net/core/lwt_bpf.c 	iph = (struct iphdr *)hdr;
iph               603 net/core/lwt_bpf.c 	if (iph->version == 4) {
iph               605 net/core/lwt_bpf.c 		if (unlikely(len < iph->ihl * 4))
iph               607 net/core/lwt_bpf.c 	} else if (iph->version == 6) {
iph               630 net/core/lwt_bpf.c 		skb_postpush_rcsum(skb, iph, len);
iph               638 net/core/lwt_bpf.c 		iph = ip_hdr(skb);
iph               640 net/core/lwt_bpf.c 		if (!iph->check)
iph               641 net/core/lwt_bpf.c 			iph->check = ip_fast_csum((unsigned char *)iph,
iph               642 net/core/lwt_bpf.c 						  iph->ihl);
iph               367 net/core/netpoll.c 	struct iphdr *iph;
iph               378 net/core/netpoll.c 		ip_len = udp_len + sizeof(*iph);
iph               434 net/core/netpoll.c 		skb_push(skb, sizeof(*iph));
iph               436 net/core/netpoll.c 		iph = ip_hdr(skb);
iph               439 net/core/netpoll.c 		put_unaligned(0x45, (unsigned char *)iph);
iph               440 net/core/netpoll.c 		iph->tos      = 0;
iph               441 net/core/netpoll.c 		put_unaligned(htons(ip_len), &(iph->tot_len));
iph               442 net/core/netpoll.c 		iph->id       = htons(atomic_inc_return(&ip_ident));
iph               443 net/core/netpoll.c 		iph->frag_off = 0;
iph               444 net/core/netpoll.c 		iph->ttl      = 64;
iph               445 net/core/netpoll.c 		iph->protocol = IPPROTO_UDP;
iph               446 net/core/netpoll.c 		iph->check    = 0;
iph               447 net/core/netpoll.c 		put_unaligned(np->local_ip.ip, &(iph->saddr));
iph               448 net/core/netpoll.c 		put_unaligned(np->remote_ip.ip, &(iph->daddr));
iph               449 net/core/netpoll.c 		iph->check    = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph              2559 net/core/pktgen.c 			struct iphdr *iph;
iph              2585 net/core/pktgen.c 			iph = ip_hdr(skb);
iph              2586 net/core/pktgen.c 			iph->tot_len = htons(skb->len - ETH_HLEN);
iph              2587 net/core/pktgen.c 			ip_send_check(iph);
iph              2726 net/core/pktgen.c 	struct iphdr *iph;
iph              2782 net/core/pktgen.c 	iph = skb_put(skb, sizeof(struct iphdr));
iph              2803 net/core/pktgen.c 	iph->ihl = 5;
iph              2804 net/core/pktgen.c 	iph->version = 4;
iph              2805 net/core/pktgen.c 	iph->ttl = 32;
iph              2806 net/core/pktgen.c 	iph->tos = pkt_dev->tos;
iph              2807 net/core/pktgen.c 	iph->protocol = IPPROTO_UDP;	/* UDP */
iph              2808 net/core/pktgen.c 	iph->saddr = pkt_dev->cur_saddr;
iph              2809 net/core/pktgen.c 	iph->daddr = pkt_dev->cur_daddr;
iph              2810 net/core/pktgen.c 	iph->id = htons(pkt_dev->ip_id);
iph              2812 net/core/pktgen.c 	iph->frag_off = 0;
iph              2814 net/core/pktgen.c 	iph->tot_len = htons(iplen);
iph              2815 net/core/pktgen.c 	ip_send_check(iph);
iph              2827 net/core/pktgen.c 		udp4_hwcsum(skb, iph->saddr, iph->daddr);
iph              2832 net/core/pktgen.c 		udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr,
iph              2854 net/core/pktgen.c 	struct ipv6hdr *iph;
iph              2910 net/core/pktgen.c 	iph = skb_put(skb, sizeof(struct ipv6hdr));
iph              2936 net/core/pktgen.c 	*(__be32 *) iph = htonl(0x60000000);	/* Version + flow */
iph              2940 net/core/pktgen.c 		*(__be32 *)iph |= htonl(0x60000000 | (pkt_dev->traffic_class << 20));
iph              2943 net/core/pktgen.c 	iph->hop_limit = 32;
iph              2945 net/core/pktgen.c 	iph->payload_len = htons(udplen);
iph              2946 net/core/pktgen.c 	iph->nexthdr = IPPROTO_UDP;
iph              2948 net/core/pktgen.c 	iph->daddr = pkt_dev->cur_in6_daddr;
iph              2949 net/core/pktgen.c 	iph->saddr = pkt_dev->cur_in6_saddr;
iph              2963 net/core/pktgen.c 		udph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, udplen, IPPROTO_UDP, 0);
iph              2968 net/core/pktgen.c 		udph->check = csum_ipv6_magic(&iph->saddr, &iph->daddr, udplen, IPPROTO_UDP, csum);
iph                25 net/core/tso.c 		struct iphdr *iph = (void *)(hdr + mac_hdr_len);
iph                27 net/core/tso.c 		iph->id = htons(tso->ip_id);
iph                28 net/core/tso.c 		iph->tot_len = htons(size + hdr_len - mac_hdr_len);
iph                31 net/core/tso.c 		struct ipv6hdr *iph = (void *)(hdr + mac_hdr_len);
iph                33 net/core/tso.c 		iph->payload_len = htons(size + tcp_hdrlen(skb));
iph               144 net/dccp/ipv4.c 					  const struct iphdr *iph,
iph               232 net/dccp/ipv4.c 	const struct iphdr *iph = (struct iphdr *)skb->data;
iph               233 net/dccp/ipv4.c 	const u8 offset = iph->ihl << 2;
iph               253 net/dccp/ipv4.c 				       iph->daddr, dh->dccph_dport,
iph               254 net/dccp/ipv4.c 				       iph->saddr, ntohs(dh->dccph_sport),
iph               305 net/dccp/ipv4.c 				dccp_do_pmtu_discovery(sk, iph, info);
iph               456 net/dccp/ipv4.c 	const struct iphdr *iph = ip_hdr(skb);
iph               459 net/dccp/ipv4.c 		.daddr = iph->saddr,
iph               460 net/dccp/ipv4.c 		.saddr = iph->daddr,
iph               773 net/dccp/ipv4.c 	const struct iphdr *iph;
iph               783 net/dccp/ipv4.c 	iph = ip_hdr(skb);
iph               785 net/dccp/ipv4.c 	if (dccp_v4_csum_finish(skb, iph->saddr, iph->daddr)) {
iph               797 net/dccp/ipv4.c 		      &iph->saddr, ntohs(dh->dccph_sport),
iph               798 net/dccp/ipv4.c 		      &iph->daddr, ntohs(dh->dccph_dport),
iph              1304 net/ipv4/af_inet.c 	struct iphdr *iph;
iph              1312 net/ipv4/af_inet.c 	if (unlikely(!pskb_may_pull(skb, sizeof(*iph))))
iph              1315 net/ipv4/af_inet.c 	iph = ip_hdr(skb);
iph              1316 net/ipv4/af_inet.c 	ihl = iph->ihl * 4;
iph              1317 net/ipv4/af_inet.c 	if (ihl < sizeof(*iph))
iph              1320 net/ipv4/af_inet.c 	id = ntohs(iph->id);
iph              1321 net/ipv4/af_inet.c 	proto = iph->protocol;
iph              1357 net/ipv4/af_inet.c 		iph = (struct iphdr *)(skb_mac_header(skb) + nhoff);
iph              1359 net/ipv4/af_inet.c 			iph->frag_off = htons(offset >> 3);
iph              1361 net/ipv4/af_inet.c 				iph->frag_off |= htons(IP_MF);
iph              1366 net/ipv4/af_inet.c 				iph->id = htons(id);
iph              1373 net/ipv4/af_inet.c 					  skb->head - (unsigned char *)iph;
iph              1378 net/ipv4/af_inet.c 				iph->id = htons(id++);
iph              1381 net/ipv4/af_inet.c 		iph->tot_len = htons(tot_len);
iph              1382 net/ipv4/af_inet.c 		ip_send_check(iph);
iph              1385 net/ipv4/af_inet.c 		skb->network_header = (u8 *)iph - skb->head;
iph              1411 net/ipv4/af_inet.c 	const struct iphdr *iph;
iph              1420 net/ipv4/af_inet.c 	hlen = off + sizeof(*iph);
iph              1421 net/ipv4/af_inet.c 	iph = skb_gro_header_fast(skb, off);
iph              1423 net/ipv4/af_inet.c 		iph = skb_gro_header_slow(skb, hlen, off);
iph              1424 net/ipv4/af_inet.c 		if (unlikely(!iph))
iph              1428 net/ipv4/af_inet.c 	proto = iph->protocol;
iph              1435 net/ipv4/af_inet.c 	if (*(u8 *)iph != 0x45)
iph              1438 net/ipv4/af_inet.c 	if (ip_is_fragment(iph))
iph              1441 net/ipv4/af_inet.c 	if (unlikely(ip_fast_csum((u8 *)iph, 5)))
iph              1444 net/ipv4/af_inet.c 	id = ntohl(*(__be32 *)&iph->id);
iph              1445 net/ipv4/af_inet.c 	flush = (u16)((ntohl(*(__be32 *)iph) ^ skb_gro_len(skb)) | (id & ~IP_DF));
iph              1461 net/ipv4/af_inet.c 		if ((iph->protocol ^ iph2->protocol) |
iph              1462 net/ipv4/af_inet.c 		    ((__force u32)iph->saddr ^ (__force u32)iph2->saddr) |
iph              1463 net/ipv4/af_inet.c 		    ((__force u32)iph->daddr ^ (__force u32)iph2->daddr)) {
iph              1470 net/ipv4/af_inet.c 			(iph->ttl ^ iph2->ttl) |
iph              1471 net/ipv4/af_inet.c 			(iph->tos ^ iph2->tos) |
iph              1472 net/ipv4/af_inet.c 			((iph->frag_off ^ iph2->frag_off) & htons(IP_DF));
iph              1489 net/ipv4/af_inet.c 		    !(iph->frag_off & htons(IP_DF))) {
iph              1503 net/ipv4/af_inet.c 	NAPI_GRO_CB(skb)->is_atomic = !!(iph->frag_off & htons(IP_DF));
iph              1513 net/ipv4/af_inet.c 	skb_gro_pull(skb, sizeof(*iph));
iph              1584 net/ipv4/af_inet.c 	struct iphdr *iph = (struct iphdr *)(skb->data + nhoff);
iph              1586 net/ipv4/af_inet.c 	int proto = iph->protocol;
iph              1594 net/ipv4/af_inet.c 	csum_replace2(&iph->check, iph->tot_len, newlen);
iph              1595 net/ipv4/af_inet.c 	iph->tot_len = newlen;
iph              1608 net/ipv4/af_inet.c 			      skb, nhoff + sizeof(*iph));
iph                80 net/ipv4/ah4.c static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr)
iph                82 net/ipv4/ah4.c 	unsigned char *optptr = (unsigned char *)(iph+1);
iph                83 net/ipv4/ah4.c 	int  l = iph->ihl*4 - sizeof(struct iphdr);
iph               123 net/ipv4/ah4.c 	struct iphdr *iph;
iph               131 net/ipv4/ah4.c 	iph = AH_SKB_CB(skb)->tmp;
iph               132 net/ipv4/ah4.c 	icv = ah_tmp_icv(ahp->ahash, iph, ihl);
iph               135 net/ipv4/ah4.c 	top_iph->tos = iph->tos;
iph               136 net/ipv4/ah4.c 	top_iph->ttl = iph->ttl;
iph               137 net/ipv4/ah4.c 	top_iph->frag_off = iph->frag_off;
iph               139 net/ipv4/ah4.c 		top_iph->daddr = iph->daddr;
iph               140 net/ipv4/ah4.c 		memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
iph               157 net/ipv4/ah4.c 	struct iphdr *iph, *top_iph;
iph               181 net/ipv4/ah4.c 	iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len);
iph               182 net/ipv4/ah4.c 	if (!iph)
iph               184 net/ipv4/ah4.c 	seqhi = (__be32 *)((char *)iph + ihl);
iph               194 net/ipv4/ah4.c 	iph->tos = top_iph->tos;
iph               195 net/ipv4/ah4.c 	iph->ttl = top_iph->ttl;
iph               196 net/ipv4/ah4.c 	iph->frag_off = top_iph->frag_off;
iph               199 net/ipv4/ah4.c 		iph->daddr = top_iph->daddr;
iph               200 net/ipv4/ah4.c 		memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
iph               237 net/ipv4/ah4.c 	AH_SKB_CB(skb)->tmp = iph;
iph               251 net/ipv4/ah4.c 	top_iph->tos = iph->tos;
iph               252 net/ipv4/ah4.c 	top_iph->ttl = iph->ttl;
iph               253 net/ipv4/ah4.c 	top_iph->frag_off = iph->frag_off;
iph               255 net/ipv4/ah4.c 		top_iph->daddr = iph->daddr;
iph               256 net/ipv4/ah4.c 		memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
iph               260 net/ipv4/ah4.c 	kfree(iph);
iph               315 net/ipv4/ah4.c 	struct iphdr *iph, *work_iph;
iph               360 net/ipv4/ah4.c 	iph = ip_hdr(skb);
iph               382 net/ipv4/ah4.c 	memcpy(work_iph, iph, ihl);
iph               386 net/ipv4/ah4.c 	iph->ttl = 0;
iph               387 net/ipv4/ah4.c 	iph->tos = 0;
iph               388 net/ipv4/ah4.c 	iph->frag_off = 0;
iph               389 net/ipv4/ah4.c 	iph->check = 0;
iph               390 net/ipv4/ah4.c 	if (ihl > sizeof(*iph)) {
iph               392 net/ipv4/ah4.c 		err = ip_clear_mutable_options(iph, &dummy);
iph               445 net/ipv4/ah4.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               446 net/ipv4/ah4.c 	struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2));
iph               459 net/ipv4/ah4.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
iph              1509 net/ipv4/cipso_ipv4.c 	const struct iphdr *iph = ip_hdr(skb);
iph              1514 net/ipv4/cipso_ipv4.c 	for (optlen = iph->ihl*4 - sizeof(struct iphdr); optlen > 1; ) {
iph              2173 net/ipv4/cipso_ipv4.c 	struct iphdr *iph;
iph              2203 net/ipv4/cipso_ipv4.c 		iph = ip_hdr(skb);
iph              2205 net/ipv4/cipso_ipv4.c 		memmove((char *)iph - len_delta, iph, iph->ihl << 2);
iph              2207 net/ipv4/cipso_ipv4.c 		iph = ip_hdr(skb);
iph              2209 net/ipv4/cipso_ipv4.c 		iph = ip_hdr(skb);
iph              2210 net/ipv4/cipso_ipv4.c 		memset(iph + 1, IPOPT_NOP, opt->optlen);
iph              2212 net/ipv4/cipso_ipv4.c 		iph = ip_hdr(skb);
iph              2225 net/ipv4/cipso_ipv4.c 	memcpy(iph + 1, buf, buf_len);
iph              2227 net/ipv4/cipso_ipv4.c 		memset((char *)(iph + 1) + buf_len, 0, opt_len - buf_len);
iph              2229 net/ipv4/cipso_ipv4.c 		iph->ihl = 5 + (opt_len >> 2);
iph              2230 net/ipv4/cipso_ipv4.c 		iph->tot_len = htons(skb->len);
iph              2232 net/ipv4/cipso_ipv4.c 	ip_send_check(iph);
iph              2249 net/ipv4/cipso_ipv4.c 	struct iphdr *iph;
iph              2265 net/ipv4/cipso_ipv4.c 	iph = ip_hdr(skb);
iph              2266 net/ipv4/cipso_ipv4.c 	cipso_ptr = (unsigned char *)iph + opt->cipso;
iph              2271 net/ipv4/cipso_ipv4.c 	ip_send_check(iph);
iph               581 net/ipv4/esp4.c 	const struct iphdr *iph;
iph               598 net/ipv4/esp4.c 	iph = ip_hdr(skb);
iph               599 net/ipv4/esp4.c 	ihl = iph->ihl * 4;
iph               611 net/ipv4/esp4.c 		if (iph->saddr != x->props.saddr.a4 ||
iph               615 net/ipv4/esp4.c 			ipaddr.a4 = iph->saddr;
iph               792 net/ipv4/esp4.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               793 net/ipv4/esp4.c 	struct ip_esp_hdr *esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2));
iph               806 net/ipv4/esp4.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
iph                95 net/ipv4/esp4_offload.c 	struct iphdr *iph = ip_hdr(skb);
iph                97 net/ipv4/esp4_offload.c 	int proto = iph->protocol;
iph               177 net/ipv4/gre_demux.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               178 net/ipv4/gre_demux.c 	u8 ver = skb->data[(iph->ihl<<2) + 1]&0x7f;
iph               463 net/ipv4/icmp.c 					const struct iphdr *iph,
iph               474 net/ipv4/icmp.c 		      param->replyopts.opt.opt.faddr : iph->saddr);
iph               572 net/ipv4/icmp.c 	struct iphdr *iph;
iph               599 net/ipv4/icmp.c 	iph = ip_hdr(skb_in);
iph               601 net/ipv4/icmp.c 	if ((u8 *)iph < skb_in->head ||
iph               602 net/ipv4/icmp.c 	    (skb_network_header(skb_in) + sizeof(*iph)) >
iph               622 net/ipv4/icmp.c 	if (iph->frag_off & htons(IP_OFFSET))
iph               633 net/ipv4/icmp.c 		if (iph->protocol == IPPROTO_ICMP) {
iph               638 net/ipv4/icmp.c 						 (iph->ihl << 2) +
iph               676 net/ipv4/icmp.c 	saddr = iph->daddr;
iph               692 net/ipv4/icmp.c 	tos = icmp_pointers[type].error ? ((iph->tos & IPTOS_TOS_MASK) |
iph               694 net/ipv4/icmp.c 					  iph->tos;
iph               714 net/ipv4/icmp.c 	ipc.addr = iph->saddr;
iph               717 net/ipv4/icmp.c 	rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, mark,
iph               753 net/ipv4/icmp.c 	const struct iphdr *iph = (const struct iphdr *) skb->data;
iph               755 net/ipv4/icmp.c 	int protocol = iph->protocol;
iph               760 net/ipv4/icmp.c 	if (!pskb_may_pull(skb, iph->ihl * 4 + 8)) {
iph               789 net/ipv4/icmp.c 	const struct iphdr *iph;
iph               806 net/ipv4/icmp.c 	iph   = (const struct iphdr *)skb->data;
iph               808 net/ipv4/icmp.c 	if (iph->ihl < 5) /* Mangled header, drop. */
iph               827 net/ipv4/icmp.c 						    &iph->daddr);
iph               832 net/ipv4/icmp.c 				if (!icmp_tag_validation(iph->protocol))
iph               841 net/ipv4/icmp.c 					    &iph->daddr);
iph               878 net/ipv4/icmp.c 	    inet_addr_type_dev_table(net, skb->dev, iph->daddr) == RTN_BROADCAST) {
iph               882 net/ipv4/icmp.c 				     &iph->daddr, skb->dev->name);
iph              1087 net/ipv4/icmp.c 	struct iphdr *iph = (struct iphdr *)skb->data;
iph              1088 net/ipv4/icmp.c 	int offset = iph->ihl<<2;
iph               728 net/ipv4/igmp.c 	struct iphdr *iph;
iph               769 net/ipv4/igmp.c 	iph = ip_hdr(skb);
iph               772 net/ipv4/igmp.c 	iph->version  = 4;
iph               773 net/ipv4/igmp.c 	iph->ihl      = (sizeof(struct iphdr)+4)>>2;
iph               774 net/ipv4/igmp.c 	iph->tos      = 0xc0;
iph               775 net/ipv4/igmp.c 	iph->frag_off = htons(IP_DF);
iph               776 net/ipv4/igmp.c 	iph->ttl      = 1;
iph               777 net/ipv4/igmp.c 	iph->daddr    = dst;
iph               778 net/ipv4/igmp.c 	iph->saddr    = fl4.saddr;
iph               779 net/ipv4/igmp.c 	iph->protocol = IPPROTO_IGMP;
iph               781 net/ipv4/igmp.c 	((u8 *)&iph[1])[0] = IPOPT_RA;
iph               782 net/ipv4/igmp.c 	((u8 *)&iph[1])[1] = 4;
iph               783 net/ipv4/igmp.c 	((u8 *)&iph[1])[2] = 0;
iph               784 net/ipv4/igmp.c 	((u8 *)&iph[1])[3] = 0;
iph              1484 net/ipv4/igmp.c 	const struct iphdr *iph;
iph              1486 net/ipv4/igmp.c 	unsigned int offset = skb_network_offset(skb) + sizeof(*iph);
iph              1491 net/ipv4/igmp.c 	iph = ip_hdr(skb);
iph              1493 net/ipv4/igmp.c 	if (iph->version != 4 || ip_hdrlen(skb) < sizeof(*iph))
iph              1496 net/ipv4/igmp.c 	offset += ip_hdrlen(skb) - sizeof(*iph);
iph              1501 net/ipv4/igmp.c 	iph = ip_hdr(skb);
iph              1503 net/ipv4/igmp.c 	if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl)))
iph              1506 net/ipv4/igmp.c 	len = skb_network_offset(skb) + ntohs(iph->tot_len);
iph                89 net/ipv4/ip_forward.c 	struct iphdr *iph;	/* Our header */
iph               141 net/ipv4/ip_forward.c 	iph = ip_hdr(skb);
iph               144 net/ipv4/ip_forward.c 	ip_decrease_ttl(iph);
iph               155 net/ipv4/ip_forward.c 		skb->priority = rt_tos2priority(iph->tos);
iph               136 net/ipv4/ip_fragment.c 	const struct iphdr *iph;
iph               175 net/ipv4/ip_fragment.c 	iph = ip_hdr(head);
iph               176 net/ipv4/ip_fragment.c 	err = ip_route_input_noref(head, iph->daddr, iph->saddr,
iph               177 net/ipv4/ip_fragment.c 					   iph->tos, head->dev);
iph               203 net/ipv4/ip_fragment.c static struct ipq *ip_find(struct net *net, struct iphdr *iph,
iph               207 net/ipv4/ip_fragment.c 		.saddr = iph->saddr,
iph               208 net/ipv4/ip_fragment.c 		.daddr = iph->daddr,
iph               211 net/ipv4/ip_fragment.c 		.id = iph->id,
iph               212 net/ipv4/ip_fragment.c 		.protocol = iph->protocol,
iph               406 net/ipv4/ip_fragment.c 	struct iphdr *iph;
iph               435 net/ipv4/ip_fragment.c 	iph = ip_hdr(skb);
iph               436 net/ipv4/ip_fragment.c 	iph->tot_len = htons(len);
iph               437 net/ipv4/ip_fragment.c 	iph->tos |= ecn;
iph               449 net/ipv4/ip_fragment.c 		iph->frag_off = htons(IP_DF);
iph               451 net/ipv4/ip_fragment.c 		iph->frag_off = 0;
iph               454 net/ipv4/ip_fragment.c 	ip_send_check(iph);
iph               505 net/ipv4/ip_fragment.c 	struct iphdr iph;
iph               514 net/ipv4/ip_fragment.c 	if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0)
iph               517 net/ipv4/ip_fragment.c 	if (iph.ihl < 5 || iph.version != 4)
iph               520 net/ipv4/ip_fragment.c 	len = ntohs(iph.tot_len);
iph               521 net/ipv4/ip_fragment.c 	if (skb->len < netoff + len || len < (iph.ihl * 4))
iph               524 net/ipv4/ip_fragment.c 	if (ip_is_fragment(&iph)) {
iph               527 net/ipv4/ip_fragment.c 			if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) {
iph               138 net/ipv4/ip_gre.c 	const struct iphdr *iph;
iph               152 net/ipv4/ip_gre.c 	iph = (const struct iphdr *)(icmp_hdr(skb) + 1);
iph               154 net/ipv4/ip_gre.c 			     iph->daddr, iph->saddr, tpi->key);
iph               191 net/ipv4/ip_gre.c            !ip6_err_gen_icmpv6_unreach(skb, iph->ihl * 4 + tpi->hdr_len,
iph               196 net/ipv4/ip_gre.c 	if (t->parms.iph.daddr == 0 ||
iph               197 net/ipv4/ip_gre.c 	    ipv4_is_multicast(t->parms.iph.daddr))
iph               200 net/ipv4/ip_gre.c 	if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED)
iph               228 net/ipv4/ip_gre.c 	const struct iphdr *iph = (struct iphdr *)skb->data;
iph               234 net/ipv4/ip_gre.c 			     iph->ihl * 4) < 0)
iph               259 net/ipv4/ip_gre.c 	const struct iphdr *iph;
iph               266 net/ipv4/ip_gre.c 	iph = ip_hdr(skb);
iph               272 net/ipv4/ip_gre.c 				  iph->saddr, iph->daddr, tpi->key);
iph               335 net/ipv4/ip_gre.c 	const struct iphdr *iph;
iph               338 net/ipv4/ip_gre.c 	iph = ip_hdr(skb);
iph               340 net/ipv4/ip_gre.c 				  iph->saddr, iph->daddr, tpi->key);
iph               622 net/ipv4/ip_gre.c 		tnl_params = &tunnel->parms.iph;
iph               679 net/ipv4/ip_gre.c 	__gre_xmit(skb, dev, &tunnel->parms.iph, proto);
iph               707 net/ipv4/ip_gre.c 	__gre_xmit(skb, dev, &tunnel->parms.iph, htons(ETH_P_TEB));
iph               756 net/ipv4/ip_gre.c 		if (p.iph.version != 4 || p.iph.protocol != IPPROTO_GRE ||
iph               757 net/ipv4/ip_gre.c 		    p.iph.ihl != 5 || (p.iph.frag_off & htons(~IP_DF)) ||
iph               820 net/ipv4/ip_gre.c 	struct iphdr *iph;
iph               823 net/ipv4/ip_gre.c 	iph = skb_push(skb, t->hlen + sizeof(*iph));
iph               824 net/ipv4/ip_gre.c 	greh = (struct gre_base_hdr *)(iph+1);
iph               828 net/ipv4/ip_gre.c 	memcpy(iph, &t->parms.iph, sizeof(struct iphdr));
iph               832 net/ipv4/ip_gre.c 		memcpy(&iph->saddr, saddr, 4);
iph               834 net/ipv4/ip_gre.c 		memcpy(&iph->daddr, daddr, 4);
iph               835 net/ipv4/ip_gre.c 	if (iph->daddr)
iph               836 net/ipv4/ip_gre.c 		return t->hlen + sizeof(*iph);
iph               838 net/ipv4/ip_gre.c 	return -(t->hlen + sizeof(*iph));
iph               843 net/ipv4/ip_gre.c 	const struct iphdr *iph = (const struct iphdr *) skb_mac_header(skb);
iph               844 net/ipv4/ip_gre.c 	memcpy(haddr, &iph->saddr, 4);
iph               858 net/ipv4/ip_gre.c 	if (ipv4_is_multicast(t->parms.iph.daddr)) {
iph               863 net/ipv4/ip_gre.c 					 t->parms.iph.daddr,
iph               864 net/ipv4/ip_gre.c 					 t->parms.iph.saddr,
iph               866 net/ipv4/ip_gre.c 					 RT_TOS(t->parms.iph.tos),
iph               875 net/ipv4/ip_gre.c 		ip_mc_inc_group(__in_dev_get_rtnl(dev), t->parms.iph.daddr);
iph               884 net/ipv4/ip_gre.c 	if (ipv4_is_multicast(t->parms.iph.daddr) && t->mlink) {
iph               888 net/ipv4/ip_gre.c 			ip_mc_dec_group(in_dev, t->parms.iph.daddr);
iph               926 net/ipv4/ip_gre.c 	tunnel->parms.iph.protocol = IPPROTO_GRE;
iph               954 net/ipv4/ip_gre.c 	struct iphdr *iph = &tunnel->parms.iph;
iph               958 net/ipv4/ip_gre.c 	memcpy(dev->dev_addr, &iph->saddr, 4);
iph               959 net/ipv4/ip_gre.c 	memcpy(dev->broadcast, &iph->daddr, 4);
iph               965 net/ipv4/ip_gre.c 	if (iph->daddr && !tunnel->collect_md) {
iph               967 net/ipv4/ip_gre.c 		if (ipv4_is_multicast(iph->daddr)) {
iph               968 net/ipv4/ip_gre.c 			if (!iph->saddr)
iph              1098 net/ipv4/ip_gre.c 	parms->iph.protocol = IPPROTO_GRE;
iph              1119 net/ipv4/ip_gre.c 		parms->iph.saddr = nla_get_in_addr(data[IFLA_GRE_LOCAL]);
iph              1122 net/ipv4/ip_gre.c 		parms->iph.daddr = nla_get_in_addr(data[IFLA_GRE_REMOTE]);
iph              1125 net/ipv4/ip_gre.c 		parms->iph.ttl = nla_get_u8(data[IFLA_GRE_TTL]);
iph              1128 net/ipv4/ip_gre.c 		parms->iph.tos = nla_get_u8(data[IFLA_GRE_TOS]);
iph              1133 net/ipv4/ip_gre.c 		parms->iph.frag_off = htons(IP_DF);
iph              1144 net/ipv4/ip_gre.c 		  && (parms->iph.frag_off & htons(IP_DF)))
iph              1259 net/ipv4/ip_gre.c 	tunnel->parms.iph.protocol = IPPROTO_GRE;
iph              1480 net/ipv4/ip_gre.c 	    nla_put_in_addr(skb, IFLA_GRE_LOCAL, p->iph.saddr) ||
iph              1481 net/ipv4/ip_gre.c 	    nla_put_in_addr(skb, IFLA_GRE_REMOTE, p->iph.daddr) ||
iph              1482 net/ipv4/ip_gre.c 	    nla_put_u8(skb, IFLA_GRE_TTL, p->iph.ttl) ||
iph              1483 net/ipv4/ip_gre.c 	    nla_put_u8(skb, IFLA_GRE_TOS, p->iph.tos) ||
iph              1485 net/ipv4/ip_gre.c 		       !!(p->iph.frag_off & htons(IP_DF))) ||
iph               260 net/ipv4/ip_input.c 	const struct iphdr *iph;
iph               274 net/ipv4/ip_input.c 	iph = ip_hdr(skb);
iph               276 net/ipv4/ip_input.c 	opt->optlen = iph->ihl*4 - sizeof(struct iphdr);
iph               290 net/ipv4/ip_input.c 							     &iph->saddr,
iph               291 net/ipv4/ip_input.c 							     &iph->daddr);
iph               310 net/ipv4/ip_input.c 	const struct iphdr *iph = ip_hdr(skb);
iph               318 net/ipv4/ip_input.c 	    !ip_is_fragment(iph)) {
iph               320 net/ipv4/ip_input.c 		int protocol = iph->protocol;
iph               329 net/ipv4/ip_input.c 			iph = ip_hdr(skb);
iph               338 net/ipv4/ip_input.c 		err = ip_route_input_noref(skb, iph->daddr, iph->saddr,
iph               339 net/ipv4/ip_input.c 					   iph->tos, dev);
iph               355 net/ipv4/ip_input.c 	if (iph->ihl > 5 && ip_rcv_options(skb, dev))
iph               422 net/ipv4/ip_input.c 	const struct iphdr *iph;
iph               442 net/ipv4/ip_input.c 	iph = ip_hdr(skb);
iph               455 net/ipv4/ip_input.c 	if (iph->ihl < 5 || iph->version != 4)
iph               462 net/ipv4/ip_input.c 		       IPSTATS_MIB_NOECTPKTS + (iph->tos & INET_ECN_MASK),
iph               465 net/ipv4/ip_input.c 	if (!pskb_may_pull(skb, iph->ihl*4))
iph               468 net/ipv4/ip_input.c 	iph = ip_hdr(skb);
iph               470 net/ipv4/ip_input.c 	if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl)))
iph               473 net/ipv4/ip_input.c 	len = ntohs(iph->tot_len);
iph               477 net/ipv4/ip_input.c 	} else if (len < (iph->ihl*4))
iph               489 net/ipv4/ip_input.c 	iph = ip_hdr(skb);
iph               490 net/ipv4/ip_input.c 	skb->transport_header = skb->network_header + iph->ihl*4;
iph                47 net/ipv4/ip_options.c 	unsigned char *iph = skb_network_header(skb);
iph                50 net/ipv4/ip_options.c 	memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen);
iph                54 net/ipv4/ip_options.c 		memcpy(iph+opt->srr+iph[opt->srr+1]-4, &daddr, 4);
iph                58 net/ipv4/ip_options.c 			ip_rt_get_source(iph+opt->rr+iph[opt->rr+2]-5, skb, rt);
iph                60 net/ipv4/ip_options.c 			ip_rt_get_source(iph+opt->ts+iph[opt->ts+2]-9, skb, rt);
iph                65 net/ipv4/ip_options.c 			memcpy(iph+opt->ts+iph[opt->ts+2]-5, &midtime, 4);
iph                70 net/ipv4/ip_options.c 		memset(iph+opt->rr, IPOPT_NOP, iph[opt->rr+1]);
iph                75 net/ipv4/ip_options.c 		memset(iph+opt->ts, IPOPT_NOP, iph[opt->ts+1]);
iph               262 net/ipv4/ip_options.c 	unsigned char *iph;
iph               270 net/ipv4/ip_options.c 	iph = optptr - sizeof(struct iphdr);
iph               322 net/ipv4/ip_options.c 			opt->srr = optptr - iph;
iph               350 net/ipv4/ip_options.c 			opt->rr = optptr - iph;
iph               433 net/ipv4/ip_options.c 			opt->ts = optptr - iph;
iph               441 net/ipv4/ip_options.c 				opt->router_alert = optptr - iph;
iph               448 net/ipv4/ip_options.c 			opt->cipso = optptr - iph;
iph               473 net/ipv4/ip_options.c 		*info = htonl((pp_ptr-iph)<<24);
iph               621 net/ipv4/ip_options.c 	struct iphdr *iph = ip_hdr(skb);
iph               651 net/ipv4/ip_options.c 		err = ip_route_input(skb, nexthop, iph->saddr, iph->tos, dev);
iph               662 net/ipv4/ip_options.c 		iph->daddr = nexthop;
iph                91 net/ipv4/ip_output.c void ip_send_check(struct iphdr *iph)
iph                93 net/ipv4/ip_output.c 	iph->check = 0;
iph                94 net/ipv4/ip_output.c 	iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph               100 net/ipv4/ip_output.c 	struct iphdr *iph = ip_hdr(skb);
iph               102 net/ipv4/ip_output.c 	iph->tot_len = htons(skb->len);
iph               103 net/ipv4/ip_output.c 	ip_send_check(iph);
iph               150 net/ipv4/ip_output.c 	struct iphdr *iph;
iph               155 net/ipv4/ip_output.c 	iph = ip_hdr(skb);
iph               156 net/ipv4/ip_output.c 	iph->version  = 4;
iph               157 net/ipv4/ip_output.c 	iph->ihl      = 5;
iph               158 net/ipv4/ip_output.c 	iph->tos      = inet->tos;
iph               159 net/ipv4/ip_output.c 	iph->ttl      = ip_select_ttl(inet, &rt->dst);
iph               160 net/ipv4/ip_output.c 	iph->daddr    = (opt && opt->opt.srr ? opt->opt.faddr : daddr);
iph               161 net/ipv4/ip_output.c 	iph->saddr    = saddr;
iph               162 net/ipv4/ip_output.c 	iph->protocol = sk->sk_protocol;
iph               164 net/ipv4/ip_output.c 		iph->frag_off = htons(IP_DF);
iph               165 net/ipv4/ip_output.c 		iph->id = 0;
iph               167 net/ipv4/ip_output.c 		iph->frag_off = 0;
iph               168 net/ipv4/ip_output.c 		__ip_select_ident(net, iph, 1);
iph               172 net/ipv4/ip_output.c 		iph->ihl += opt->opt.optlen>>2;
iph               444 net/ipv4/ip_output.c static void ip_copy_addrs(struct iphdr *iph, const struct flowi4 *fl4)
iph               448 net/ipv4/ip_output.c 	memcpy(&iph->saddr, &fl4->saddr,
iph               461 net/ipv4/ip_output.c 	struct iphdr *iph;
iph               508 net/ipv4/ip_output.c 	iph = ip_hdr(skb);
iph               509 net/ipv4/ip_output.c 	*((__be16 *)iph) = htons((4 << 12) | (5 << 8) | (tos & 0xff));
iph               511 net/ipv4/ip_output.c 		iph->frag_off = htons(IP_DF);
iph               513 net/ipv4/ip_output.c 		iph->frag_off = 0;
iph               514 net/ipv4/ip_output.c 	iph->ttl      = ip_select_ttl(inet, &rt->dst);
iph               515 net/ipv4/ip_output.c 	iph->protocol = sk->sk_protocol;
iph               516 net/ipv4/ip_output.c 	ip_copy_addrs(iph, fl4);
iph               521 net/ipv4/ip_output.c 		iph->ihl += inet_opt->opt.optlen >> 2;
iph               572 net/ipv4/ip_output.c 	struct iphdr *iph = ip_hdr(skb);
iph               574 net/ipv4/ip_output.c 	if ((iph->frag_off & htons(IP_DF)) == 0)
iph               590 net/ipv4/ip_output.c void ip_fraglist_init(struct sk_buff *skb, struct iphdr *iph,
iph               599 net/ipv4/ip_output.c 	iter->iph = iph;
iph               604 net/ipv4/ip_output.c 	iph->tot_len = htons(first_len);
iph               605 net/ipv4/ip_output.c 	iph->frag_off = htons(IP_MF);
iph               606 net/ipv4/ip_output.c 	ip_send_check(iph);
iph               625 net/ipv4/ip_output.c 	struct iphdr *iph = iter->iph;
iph               633 net/ipv4/ip_output.c 	memcpy(skb_network_header(frag), iph, hlen);
iph               634 net/ipv4/ip_output.c 	iter->iph = ip_hdr(frag);
iph               635 net/ipv4/ip_output.c 	iph = iter->iph;
iph               636 net/ipv4/ip_output.c 	iph->tot_len = htons(frag->len);
iph               639 net/ipv4/ip_output.c 	iph->frag_off = htons(iter->offset >> 3);
iph               641 net/ipv4/ip_output.c 		iph->frag_off |= htons(IP_MF);
iph               643 net/ipv4/ip_output.c 	ip_send_check(iph);
iph               651 net/ipv4/ip_output.c 	struct iphdr *iph = ip_hdr(skb);
iph               661 net/ipv4/ip_output.c 	state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3;
iph               662 net/ipv4/ip_output.c 	state->not_last_frag = iph->frag_off & htons(IP_MF);
iph               686 net/ipv4/ip_output.c 	struct iphdr *iph;
iph               737 net/ipv4/ip_output.c 	iph = ip_hdr(skb2);
iph               738 net/ipv4/ip_output.c 	iph->frag_off = htons((state->offset >> 3));
iph               740 net/ipv4/ip_output.c 		iph->frag_off |= htons(IP_DF);
iph               747 net/ipv4/ip_output.c 		iph->frag_off |= htons(IP_MF);
iph               751 net/ipv4/ip_output.c 	iph->tot_len = htons(len + state->hlen);
iph               753 net/ipv4/ip_output.c 	ip_send_check(iph);
iph               769 net/ipv4/ip_output.c 	struct iphdr *iph;
iph               787 net/ipv4/ip_output.c 	iph = ip_hdr(skb);
iph               797 net/ipv4/ip_output.c 	hlen = iph->ihl * 4;
iph               815 net/ipv4/ip_output.c 		    ip_is_fragment(iph) ||
iph               840 net/ipv4/ip_output.c 		ip_fraglist_init(skb, iph, hlen, &iter);
iph              1476 net/ipv4/ip_output.c 	struct iphdr *iph;
iph              1524 net/ipv4/ip_output.c 	iph = ip_hdr(skb);
iph              1525 net/ipv4/ip_output.c 	iph->version = 4;
iph              1526 net/ipv4/ip_output.c 	iph->ihl = 5;
iph              1527 net/ipv4/ip_output.c 	iph->tos = (cork->tos != -1) ? cork->tos : inet->tos;
iph              1528 net/ipv4/ip_output.c 	iph->frag_off = df;
iph              1529 net/ipv4/ip_output.c 	iph->ttl = ttl;
iph              1530 net/ipv4/ip_output.c 	iph->protocol = sk->sk_protocol;
iph              1531 net/ipv4/ip_output.c 	ip_copy_addrs(iph, fl4);
iph              1535 net/ipv4/ip_output.c 		iph->ihl += opt->optlen>>2;
iph              1549 net/ipv4/ip_output.c 	if (iph->protocol == IPPROTO_ICMP)
iph               425 net/ipv4/ip_sockglue.c 	struct iphdr *iph;
iph               437 net/ipv4/ip_sockglue.c 	iph = ip_hdr(skb);
iph               438 net/ipv4/ip_sockglue.c 	iph->daddr = daddr;
iph               448 net/ipv4/ip_sockglue.c 	serr->addr_offset = (u8 *)&iph->daddr - skb_network_header(skb);
iph                96 net/ipv4/ip_tunnel.c 		if (local != t->parms.iph.saddr ||
iph                97 net/ipv4/ip_tunnel.c 		    remote != t->parms.iph.daddr ||
iph               111 net/ipv4/ip_tunnel.c 		if (remote != t->parms.iph.daddr ||
iph               112 net/ipv4/ip_tunnel.c 		    t->parms.iph.saddr != 0 ||
iph               129 net/ipv4/ip_tunnel.c 		if ((local != t->parms.iph.saddr || t->parms.iph.daddr != 0) &&
iph               130 net/ipv4/ip_tunnel.c 		    (local != t->parms.iph.daddr || !ipv4_is_multicast(local)))
iph               147 net/ipv4/ip_tunnel.c 		    t->parms.iph.saddr != 0 ||
iph               148 net/ipv4/ip_tunnel.c 		    t->parms.iph.daddr != 0 ||
iph               179 net/ipv4/ip_tunnel.c 	if (parms->iph.daddr && !ipv4_is_multicast(parms->iph.daddr))
iph               180 net/ipv4/ip_tunnel.c 		remote = parms->iph.daddr;
iph               211 net/ipv4/ip_tunnel.c 	__be32 remote = parms->iph.daddr;
iph               212 net/ipv4/ip_tunnel.c 	__be32 local = parms->iph.saddr;
iph               220 net/ipv4/ip_tunnel.c 		if (local == t->parms.iph.saddr &&
iph               221 net/ipv4/ip_tunnel.c 		    remote == t->parms.iph.daddr &&
iph               281 net/ipv4/ip_tunnel.c 	const struct iphdr *iph;
iph               286 net/ipv4/ip_tunnel.c 	iph = &tunnel->parms.iph;
iph               289 net/ipv4/ip_tunnel.c 	if (iph->daddr) {
iph               293 net/ipv4/ip_tunnel.c 		ip_tunnel_init_flow(&fl4, iph->protocol, iph->daddr,
iph               294 net/ipv4/ip_tunnel.c 				    iph->saddr, tunnel->parms.o_key,
iph               295 net/ipv4/ip_tunnel.c 				    RT_TOS(iph->tos), tunnel->parms.link,
iph               362 net/ipv4/ip_tunnel.c 	const struct iphdr *iph = ip_hdr(skb);
iph               366 net/ipv4/ip_tunnel.c 	if (ipv4_is_multicast(iph->daddr)) {
iph               391 net/ipv4/ip_tunnel.c 	err = IP_ECN_decapsulate(iph, skb);
iph               395 net/ipv4/ip_tunnel.c 					&iph->saddr, iph->tos);
iph               522 net/ipv4/ip_tunnel.c 		daddr = md ? dst : tunnel->parms.iph.daddr;
iph               656 net/ipv4/ip_tunnel.c 	connected = (tunnel->parms.iph.daddr != 0);
iph               836 net/ipv4/ip_tunnel.c 	t->parms.iph.saddr = p->iph.saddr;
iph               837 net/ipv4/ip_tunnel.c 	t->parms.iph.daddr = p->iph.daddr;
iph               841 net/ipv4/ip_tunnel.c 		memcpy(dev->dev_addr, &p->iph.saddr, 4);
iph               842 net/ipv4/ip_tunnel.c 		memcpy(dev->broadcast, &p->iph.daddr, 4);
iph               846 net/ipv4/ip_tunnel.c 	t->parms.iph.ttl = p->iph.ttl;
iph               847 net/ipv4/ip_tunnel.c 	t->parms.iph.tos = p->iph.tos;
iph               848 net/ipv4/ip_tunnel.c 	t->parms.iph.frag_off = p->iph.frag_off;
iph               885 net/ipv4/ip_tunnel.c 		if (p->iph.ttl)
iph               886 net/ipv4/ip_tunnel.c 			p->iph.frag_off |= htons(IP_DF);
iph               915 net/ipv4/ip_tunnel.c 				if (ipv4_is_multicast(p->iph.daddr))
iph               917 net/ipv4/ip_tunnel.c 				else if (p->iph.daddr)
iph              1188 net/ipv4/ip_tunnel.c 			if (ipv4_is_multicast(p->iph.daddr))
iph              1190 net/ipv4/ip_tunnel.c 			else if (p->iph.daddr)
iph              1207 net/ipv4/ip_tunnel.c 	struct iphdr *iph = &tunnel->parms.iph;
iph              1232 net/ipv4/ip_tunnel.c 	iph->version		= 4;
iph              1233 net/ipv4/ip_tunnel.c 	iph->ihl		= 5;
iph                53 net/ipv4/ip_tunnel_core.c 	struct iphdr *iph;
iph                66 net/ipv4/ip_tunnel_core.c 	iph = ip_hdr(skb);
iph                68 net/ipv4/ip_tunnel_core.c 	iph->version	=	4;
iph                69 net/ipv4/ip_tunnel_core.c 	iph->ihl	=	sizeof(struct iphdr) >> 2;
iph                70 net/ipv4/ip_tunnel_core.c 	iph->frag_off	=	ip_mtu_locked(&rt->dst) ? 0 : df;
iph                71 net/ipv4/ip_tunnel_core.c 	iph->protocol	=	proto;
iph                72 net/ipv4/ip_tunnel_core.c 	iph->tos	=	tos;
iph                73 net/ipv4/ip_tunnel_core.c 	iph->daddr	=	dst;
iph                74 net/ipv4/ip_tunnel_core.c 	iph->saddr	=	src;
iph                75 net/ipv4/ip_tunnel_core.c 	iph->ttl	=	ttl;
iph                76 net/ipv4/ip_tunnel_core.c 	__ip_select_ident(net, iph, skb_shinfo(skb)->gso_segs ?: 1);
iph                51 net/ipv4/ip_vti.c 	const struct iphdr *iph = ip_hdr(skb);
iph                56 net/ipv4/ip_vti.c 				  iph->saddr, iph->daddr, 0);
iph                97 net/ipv4/ip_vti.c 	const struct iphdr *iph = ip_hdr(skb);
iph               101 net/ipv4/ip_vti.c 				  iph->saddr, iph->daddr, 0);
iph               253 net/ipv4/ip_vti.c 	if (!vti_state_check(dst->xfrm, parms->iph.daddr, parms->iph.saddr)) {
iph               349 net/ipv4/ip_vti.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               350 net/ipv4/ip_vti.c 	int protocol = iph->protocol;
iph               354 net/ipv4/ip_vti.c 				  iph->daddr, iph->saddr, 0);
iph               362 net/ipv4/ip_vti.c 		esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2));
iph               366 net/ipv4/ip_vti.c 		ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2));
iph               370 net/ipv4/ip_vti.c 		ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2));
iph               387 net/ipv4/ip_vti.c 	x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr,
iph               411 net/ipv4/ip_vti.c 		if (p.iph.version != 4 || p.iph.protocol != IPPROTO_IPIP ||
iph               412 net/ipv4/ip_vti.c 		    p.iph.ihl != 5)
iph               457 net/ipv4/ip_vti.c 	struct iphdr *iph = &tunnel->parms.iph;
iph               459 net/ipv4/ip_vti.c 	memcpy(dev->dev_addr, &iph->saddr, 4);
iph               460 net/ipv4/ip_vti.c 	memcpy(dev->broadcast, &iph->daddr, 4);
iph               473 net/ipv4/ip_vti.c 	struct iphdr *iph = &tunnel->parms.iph;
iph               475 net/ipv4/ip_vti.c 	iph->version		= 4;
iph               476 net/ipv4/ip_vti.c 	iph->protocol		= IPPROTO_IPIP;
iph               477 net/ipv4/ip_vti.c 	iph->ihl		= 5;
iph               548 net/ipv4/ip_vti.c 	parms->iph.protocol = IPPROTO_IPIP;
iph               565 net/ipv4/ip_vti.c 		parms->iph.saddr = nla_get_in_addr(data[IFLA_VTI_LOCAL]);
iph               568 net/ipv4/ip_vti.c 		parms->iph.daddr = nla_get_in_addr(data[IFLA_VTI_REMOTE]);
iph               623 net/ipv4/ip_vti.c 	    nla_put_in_addr(skb, IFLA_VTI_LOCAL, p->iph.saddr) ||
iph               624 net/ipv4/ip_vti.c 	    nla_put_in_addr(skb, IFLA_VTI_REMOTE, p->iph.daddr) ||
iph                26 net/ipv4/ipcomp.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph                27 net/ipv4/ipcomp.c 	struct ip_comp_hdr *ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2));
iph                41 net/ipv4/ipcomp.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
iph               604 net/ipv4/ipconfig.c 	struct iphdr iph;	/* IP header */
iph               982 net/ipv4/ipconfig.c 	h = &b->iph;
iph              1018 net/ipv4/ipconfig.c 	h = &b->iph;
iph              1045 net/ipv4/ipconfig.c 		u8 *end = (u8 *) b + ntohs(b->iph.tot_len);
iph              1087 net/ipv4/ipconfig.c 					 &ic_myaddr, &b->iph.saddr);
iph              1131 net/ipv4/ipconfig.c 	ic_addrservaddr = b->iph.saddr;
iph               132 net/ipv4/ipip.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               139 net/ipv4/ipip.c 			     iph->daddr, iph->saddr, 0);
iph               173 net/ipv4/ipip.c 		ipv4_update_pmtu(skb, net, info, t->parms.link, iph->protocol);
iph               178 net/ipv4/ipip.c 		ipv4_redirect(skb, net, t->parms.link, iph->protocol);
iph               182 net/ipv4/ipip.c 	if (t->parms.iph.daddr == 0) {
iph               187 net/ipv4/ipip.c 	if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED)
iph               218 net/ipv4/ipip.c 	const struct iphdr *iph;
iph               220 net/ipv4/ipip.c 	iph = ip_hdr(skb);
iph               222 net/ipv4/ipip.c 			iph->saddr, iph->daddr, 0);
iph               226 net/ipv4/ipip.c 		if (tunnel->parms.iph.protocol != ipproto &&
iph               227 net/ipv4/ipip.c 		    tunnel->parms.iph.protocol != 0)
iph               275 net/ipv4/ipip.c 	const struct iphdr  *tiph = &tunnel->parms.iph;
iph               339 net/ipv4/ipip.c 		if (p.iph.version != 4 ||
iph               340 net/ipv4/ipip.c 		    !ipip_tunnel_ioctl_verify_protocol(p.iph.protocol) ||
iph               341 net/ipv4/ipip.c 		    p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF)))
iph               392 net/ipv4/ipip.c 	memcpy(dev->dev_addr, &tunnel->parms.iph.saddr, 4);
iph               393 net/ipv4/ipip.c 	memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4);
iph               421 net/ipv4/ipip.c 	parms->iph.version = 4;
iph               422 net/ipv4/ipip.c 	parms->iph.protocol = IPPROTO_IPIP;
iph               423 net/ipv4/ipip.c 	parms->iph.ihl = 5;
iph               433 net/ipv4/ipip.c 		parms->iph.saddr = nla_get_in_addr(data[IFLA_IPTUN_LOCAL]);
iph               436 net/ipv4/ipip.c 		parms->iph.daddr = nla_get_in_addr(data[IFLA_IPTUN_REMOTE]);
iph               439 net/ipv4/ipip.c 		parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]);
iph               440 net/ipv4/ipip.c 		if (parms->iph.ttl)
iph               441 net/ipv4/ipip.c 			parms->iph.frag_off = htons(IP_DF);
iph               445 net/ipv4/ipip.c 		parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]);
iph               448 net/ipv4/ipip.c 		parms->iph.protocol = nla_get_u8(data[IFLA_IPTUN_PROTO]);
iph               451 net/ipv4/ipip.c 		parms->iph.frag_off = htons(IP_DF);
iph               535 net/ipv4/ipip.c 	if (((dev->flags & IFF_POINTOPOINT) && !p.iph.daddr) ||
iph               536 net/ipv4/ipip.c 	    (!(dev->flags & IFF_POINTOPOINT) && p.iph.daddr))
iph               580 net/ipv4/ipip.c 	    nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) ||
iph               581 net/ipv4/ipip.c 	    nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) ||
iph               582 net/ipv4/ipip.c 	    nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) ||
iph               583 net/ipv4/ipip.c 	    nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) ||
iph               584 net/ipv4/ipip.c 	    nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) ||
iph               586 net/ipv4/ipip.c 		       !!(parm->iph.frag_off & htons(IP_DF))) ||
iph               433 net/ipv4/ipmr.c 		p.iph.daddr = v->vifc_rmt_addr.s_addr;
iph               434 net/ipv4/ipmr.c 		p.iph.saddr = v->vifc_lcl_addr.s_addr;
iph               435 net/ipv4/ipmr.c 		p.iph.version = 4;
iph               436 net/ipv4/ipmr.c 		p.iph.ihl = 5;
iph               437 net/ipv4/ipmr.c 		p.iph.protocol = IPPROTO_IPIP;
iph               481 net/ipv4/ipmr.c 		p.iph.daddr = v->vifc_rmt_addr.s_addr;
iph               482 net/ipv4/ipmr.c 		p.iph.saddr = v->vifc_lcl_addr.s_addr;
iph               483 net/ipv4/ipmr.c 		p.iph.version = 4;
iph               484 net/ipv4/ipmr.c 		p.iph.ihl = 5;
iph               485 net/ipv4/ipmr.c 		p.iph.protocol = IPPROTO_IPIP;
iph              1121 net/ipv4/ipmr.c 	const struct iphdr *iph = ip_hdr(skb);
iph              1128 net/ipv4/ipmr.c 		if (c->mfc_mcastgrp == iph->daddr &&
iph              1129 net/ipv4/ipmr.c 		    c->mfc_origin == iph->saddr) {
iph              1147 net/ipv4/ipmr.c 		c->mfc_origin	= iph->saddr;
iph              1148 net/ipv4/ipmr.c 		c->mfc_mcastgrp	= iph->daddr;
iph              1776 net/ipv4/ipmr.c 	struct iphdr *iph;
iph              1782 net/ipv4/ipmr.c 	iph = ip_hdr(skb);
iph              1784 net/ipv4/ipmr.c 	iph->version	=	4;
iph              1785 net/ipv4/ipmr.c 	iph->tos	=	old_iph->tos;
iph              1786 net/ipv4/ipmr.c 	iph->ttl	=	old_iph->ttl;
iph              1787 net/ipv4/ipmr.c 	iph->frag_off	=	0;
iph              1788 net/ipv4/ipmr.c 	iph->daddr	=	daddr;
iph              1789 net/ipv4/ipmr.c 	iph->saddr	=	saddr;
iph              1790 net/ipv4/ipmr.c 	iph->protocol	=	IPPROTO_IPIP;
iph              1791 net/ipv4/ipmr.c 	iph->ihl	=	5;
iph              1792 net/ipv4/ipmr.c 	iph->tot_len	=	htons(skb->len);
iph              1794 net/ipv4/ipmr.c 	ip_send_check(iph);
iph              1841 net/ipv4/ipmr.c 	const struct iphdr *iph = ip_hdr(skb);
iph              1868 net/ipv4/ipmr.c 					   RT_TOS(iph->tos), vif->link);
iph              1873 net/ipv4/ipmr.c 		rt = ip_route_output_ports(net, &fl4, NULL, iph->daddr, 0,
iph              1876 net/ipv4/ipmr.c 					   RT_TOS(iph->tos), vif->link);
iph              1883 net/ipv4/ipmr.c 	if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) {
iph              2072 net/ipv4/ipmr.c 	struct iphdr *iph = ip_hdr(skb);
iph              2074 net/ipv4/ipmr.c 		.daddr = iph->daddr,
iph              2075 net/ipv4/ipmr.c 		.saddr = iph->saddr,
iph              2076 net/ipv4/ipmr.c 		.flowi4_tos = RT_TOS(iph->tos),
iph              2279 net/ipv4/ipmr.c 		struct iphdr *iph;
iph              2303 net/ipv4/ipmr.c 		iph = ip_hdr(skb2);
iph              2304 net/ipv4/ipmr.c 		iph->ihl = sizeof(struct iphdr) >> 2;
iph              2305 net/ipv4/ipmr.c 		iph->saddr = saddr;
iph              2306 net/ipv4/ipmr.c 		iph->daddr = daddr;
iph              2307 net/ipv4/ipmr.c 		iph->version = 0;
iph                22 net/ipv4/netfilter.c 	const struct iphdr *iph = ip_hdr(skb);
iph                25 net/ipv4/netfilter.c 	__be32 saddr = iph->saddr;
iph                41 net/ipv4/netfilter.c 	fl4.daddr = iph->daddr;
iph                43 net/ipv4/netfilter.c 	fl4.flowi4_tos = RT_TOS(iph->tos);
iph               340 net/ipv4/netfilter/ipt_CLUSTERIP.c 	const struct iphdr *iph = ip_hdr(skb);
iph               345 net/ipv4/netfilter/ipt_CLUSTERIP.c 	poff = proto_ports_offset(iph->protocol);
iph               350 net/ipv4/netfilter/ipt_CLUSTERIP.c 		ports = skb_header_pointer(skb, iph->ihl * 4 + poff, 4, _ports);
iph               356 net/ipv4/netfilter/ipt_CLUSTERIP.c 		net_info_ratelimited("unknown protocol %u\n", iph->protocol);
iph               361 net/ipv4/netfilter/ipt_CLUSTERIP.c 		hashval = jhash_1word(ntohl(iph->saddr),
iph               365 net/ipv4/netfilter/ipt_CLUSTERIP.c 		hashval = jhash_2words(ntohl(iph->saddr), sport,
iph               369 net/ipv4/netfilter/ipt_CLUSTERIP.c 		hashval = jhash_3words(ntohl(iph->saddr), sport, dport,
iph                28 net/ipv4/netfilter/ipt_ECN.c 	struct iphdr *iph = ip_hdr(skb);
iph                30 net/ipv4/netfilter/ipt_ECN.c 	if ((iph->tos & IPT_ECN_IP_MASK) != (einfo->ip_ect & IPT_ECN_IP_MASK)) {
iph                34 net/ipv4/netfilter/ipt_ECN.c 		iph = ip_hdr(skb);
iph                35 net/ipv4/netfilter/ipt_ECN.c 		oldtos = iph->tos;
iph                36 net/ipv4/netfilter/ipt_ECN.c 		iph->tos &= ~IPT_ECN_IP_MASK;
iph                37 net/ipv4/netfilter/ipt_ECN.c 		iph->tos |= (einfo->ip_ect & IPT_ECN_IP_MASK);
iph                38 net/ipv4/netfilter/ipt_ECN.c 		csum_replace2(&iph->check, htons(oldtos), htons(iph->tos));
iph                57 net/ipv4/netfilter/ipt_rpfilter.c 	const struct iphdr *iph;
iph                67 net/ipv4/netfilter/ipt_rpfilter.c 	iph = ip_hdr(skb);
iph                68 net/ipv4/netfilter/ipt_rpfilter.c 	if (ipv4_is_zeronet(iph->saddr)) {
iph                69 net/ipv4/netfilter/ipt_rpfilter.c 		if (ipv4_is_lbcast(iph->daddr) ||
iph                70 net/ipv4/netfilter/ipt_rpfilter.c 		    ipv4_is_local_multicast(iph->daddr))
iph                76 net/ipv4/netfilter/ipt_rpfilter.c 	flow.daddr = iph->saddr;
iph                77 net/ipv4/netfilter/ipt_rpfilter.c 	flow.saddr = rpfilter_get_saddr(iph->daddr);
iph                79 net/ipv4/netfilter/ipt_rpfilter.c 	flow.flowi4_tos = RT_TOS(iph->tos);
iph                43 net/ipv4/netfilter/iptable_mangle.c 	const struct iphdr *iph;
iph                51 net/ipv4/netfilter/iptable_mangle.c 	iph = ip_hdr(skb);
iph                52 net/ipv4/netfilter/iptable_mangle.c 	saddr = iph->saddr;
iph                53 net/ipv4/netfilter/iptable_mangle.c 	daddr = iph->daddr;
iph                54 net/ipv4/netfilter/iptable_mangle.c 	tos = iph->tos;
iph                59 net/ipv4/netfilter/iptable_mangle.c 		iph = ip_hdr(skb);
iph                61 net/ipv4/netfilter/iptable_mangle.c 		if (iph->saddr != saddr ||
iph                62 net/ipv4/netfilter/iptable_mangle.c 		    iph->daddr != daddr ||
iph                64 net/ipv4/netfilter/iptable_mangle.c 		    iph->tos != tos) {
iph                26 net/ipv4/netfilter/nf_dup_ipv4.c 	const struct iphdr *iph = ip_hdr(skb);
iph                35 net/ipv4/netfilter/nf_dup_ipv4.c 	fl4.flowi4_tos = RT_TOS(iph->tos);
iph                53 net/ipv4/netfilter/nf_dup_ipv4.c 	struct iphdr *iph;
iph                80 net/ipv4/netfilter/nf_dup_ipv4.c 	iph = ip_hdr(skb);
iph                81 net/ipv4/netfilter/nf_dup_ipv4.c 	iph->frag_off |= htons(IP_DF);
iph                84 net/ipv4/netfilter/nf_dup_ipv4.c 		--iph->ttl;
iph               128 net/ipv4/netfilter/nf_nat_snmp_basic_main.c 	struct iphdr *iph = ip_hdr(skb);
iph               129 net/ipv4/netfilter/nf_nat_snmp_basic_main.c 	struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl);
iph               166 net/ipv4/netfilter/nf_nat_snmp_basic_main.c 	const struct iphdr *iph = ip_hdr(skb);
iph               167 net/ipv4/netfilter/nf_nat_snmp_basic_main.c 	const struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl);
iph               184 net/ipv4/netfilter/nf_nat_snmp_basic_main.c 	if (ntohs(udph->len) != skb->len - (iph->ihl << 2)) {
iph               172 net/ipv4/netfilter/nf_reject_ipv4.c 	struct iphdr *iph = ip_hdr(skb_in);
iph               173 net/ipv4/netfilter/nf_reject_ipv4.c 	u8 proto = iph->protocol;
iph               175 net/ipv4/netfilter/nf_reject_ipv4.c 	if (iph->frag_off & htons(IP_OFFSET))
iph                97 net/ipv4/netfilter/nf_socket_ipv4.c 	const struct iphdr *iph = ip_hdr(skb);
iph               106 net/ipv4/netfilter/nf_socket_ipv4.c 	if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) {
iph               111 net/ipv4/netfilter/nf_socket_ipv4.c 					iph->protocol == IPPROTO_UDP ?
iph               116 net/ipv4/netfilter/nf_socket_ipv4.c 		protocol = iph->protocol;
iph               117 net/ipv4/netfilter/nf_socket_ipv4.c 		saddr = iph->saddr;
iph               119 net/ipv4/netfilter/nf_socket_ipv4.c 		daddr = iph->daddr;
iph               122 net/ipv4/netfilter/nf_socket_ipv4.c 		doff = iph->protocol == IPPROTO_TCP ?
iph               126 net/ipv4/netfilter/nf_socket_ipv4.c 	} else if (iph->protocol == IPPROTO_ICMP) {
iph               141 net/ipv4/netfilter/nf_socket_ipv4.c 	    ((iph->protocol != IPPROTO_ICMP &&
iph               143 net/ipv4/netfilter/nf_socket_ipv4.c 	     (iph->protocol == IPPROTO_ICMP &&
iph               148 net/ipv4/netfilter/nf_socket_ipv4.c 		dport = (iph->protocol == IPPROTO_TCP) ?
iph                22 net/ipv4/netfilter/nf_tproxy_ipv4.c 	const struct iphdr *iph = ip_hdr(skb);
iph                36 net/ipv4/netfilter/nf_tproxy_ipv4.c 		sk2 = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
iph                37 net/ipv4/netfilter/nf_tproxy_ipv4.c 					    iph->saddr, laddr ? laddr : iph->daddr,
iph                34 net/ipv4/netfilter/nft_fib_ipv4.c 	struct iphdr *iph, _iph;
iph                42 net/ipv4/netfilter/nft_fib_ipv4.c 	iph = skb_header_pointer(pkt->skb, noff, sizeof(_iph), &_iph);
iph                43 net/ipv4/netfilter/nft_fib_ipv4.c 	if (!iph) {
iph                49 net/ipv4/netfilter/nft_fib_ipv4.c 		addr = iph->daddr;
iph                51 net/ipv4/netfilter/nft_fib_ipv4.c 		addr = iph->saddr;
iph                63 net/ipv4/netfilter/nft_fib_ipv4.c 	struct iphdr *iph, _iph;
iph                92 net/ipv4/netfilter/nft_fib_ipv4.c 	iph = skb_header_pointer(pkt->skb, noff, sizeof(_iph), &_iph);
iph                93 net/ipv4/netfilter/nft_fib_ipv4.c 	if (!iph) {
iph                98 net/ipv4/netfilter/nft_fib_ipv4.c 	if (ipv4_is_zeronet(iph->saddr)) {
iph                99 net/ipv4/netfilter/nft_fib_ipv4.c 		if (ipv4_is_lbcast(iph->daddr) ||
iph               100 net/ipv4/netfilter/nft_fib_ipv4.c 		    ipv4_is_local_multicast(iph->daddr)) {
iph               109 net/ipv4/netfilter/nft_fib_ipv4.c 	fl4.flowi4_tos = iph->tos & DSCP_BITS;
iph               112 net/ipv4/netfilter/nft_fib_ipv4.c 		fl4.daddr = iph->daddr;
iph               113 net/ipv4/netfilter/nft_fib_ipv4.c 		fl4.saddr = get_saddr(iph->saddr);
iph               115 net/ipv4/netfilter/nft_fib_ipv4.c 		fl4.daddr = iph->saddr;
iph               116 net/ipv4/netfilter/nft_fib_ipv4.c 		fl4.saddr = get_saddr(iph->daddr);
iph               169 net/ipv4/raw.c static int raw_v4_input(struct sk_buff *skb, const struct iphdr *iph, int hash)
iph               184 net/ipv4/raw.c 	sk = __raw_v4_lookup(net, __sk_head(head), iph->protocol,
iph               185 net/ipv4/raw.c 			     iph->saddr, iph->daddr, dif, sdif);
iph               189 net/ipv4/raw.c 		if ((iph->protocol != IPPROTO_ICMP || !icmp_filter(sk, skb)) &&
iph               190 net/ipv4/raw.c 		    ip_mc_sf_allow(sk, iph->daddr, iph->saddr,
iph               198 net/ipv4/raw.c 		sk = __raw_v4_lookup(net, sk_next(sk), iph->protocol,
iph               199 net/ipv4/raw.c 				     iph->saddr, iph->daddr,
iph               272 net/ipv4/raw.c 		const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               273 net/ipv4/raw.c 		u8 *payload = skb->data + (iph->ihl << 2);
iph               290 net/ipv4/raw.c 	const struct iphdr *iph;
iph               301 net/ipv4/raw.c 		iph = (const struct iphdr *)skb->data;
iph               305 net/ipv4/raw.c 						iph->daddr, iph->saddr,
iph               309 net/ipv4/raw.c 			iph = (const struct iphdr *)skb->data;
iph               350 net/ipv4/raw.c 	struct iphdr *iph;
iph               384 net/ipv4/raw.c 	iph = ip_hdr(skb);
iph               396 net/ipv4/raw.c 	if (memcpy_from_msg(iph, msg, length))
iph               399 net/ipv4/raw.c 	iphlen = iph->ihl * 4;
iph               412 net/ipv4/raw.c 	if (iphlen >= sizeof(*iph)) {
iph               413 net/ipv4/raw.c 		if (!iph->saddr)
iph               414 net/ipv4/raw.c 			iph->saddr = fl4->saddr;
iph               415 net/ipv4/raw.c 		iph->check   = 0;
iph               416 net/ipv4/raw.c 		iph->tot_len = htons(length);
iph               417 net/ipv4/raw.c 		if (!iph->id)
iph               420 net/ipv4/raw.c 		iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph               422 net/ipv4/raw.c 		if (iph->protocol == IPPROTO_ICMP &&
iph               506 net/ipv4/route.c void __ip_select_ident(struct net *net, struct iphdr *iph, int segs)
iph               515 net/ipv4/route.c 	hash = siphash_3u32((__force u32)iph->daddr,
iph               516 net/ipv4/route.c 			    (__force u32)iph->saddr,
iph               517 net/ipv4/route.c 			    iph->protocol,
iph               520 net/ipv4/route.c 	iph->id = htons(id);
iph               526 net/ipv4/route.c 			     const struct iphdr *iph,
iph               541 net/ipv4/route.c 			   iph->daddr, iph->saddr, 0, 0,
iph               549 net/ipv4/route.c 	const struct iphdr *iph = ip_hdr(skb);
iph               551 net/ipv4/route.c 	u8 tos = RT_TOS(iph->tos);
iph               552 net/ipv4/route.c 	u8 prot = iph->protocol;
iph               555 net/ipv4/route.c 	__build_flow_key(net, fl4, sk, iph, oif, tos, prot, mark, 0);
iph               805 net/ipv4/route.c 		const struct iphdr *iph = (const struct iphdr *) skb->data;
iph               806 net/ipv4/route.c 		__be32 daddr = iph->daddr;
iph               807 net/ipv4/route.c 		__be32 saddr = iph->saddr;
iph               822 net/ipv4/route.c 	const struct iphdr *iph = (const struct iphdr *) skb->data;
iph               825 net/ipv4/route.c 	u8 tos = RT_TOS(iph->tos);
iph               826 net/ipv4/route.c 	u8 prot = iph->protocol;
iph               831 net/ipv4/route.c 	__build_flow_key(net, &fl4, sk, iph, oif, tos, prot, mark, 0);
iph              1058 net/ipv4/route.c 	const struct iphdr *iph = (const struct iphdr *) skb->data;
iph              1063 net/ipv4/route.c 	__build_flow_key(net, &fl4, NULL, iph, oif,
iph              1064 net/ipv4/route.c 			 RT_TOS(iph->tos), protocol, mark, 0);
iph              1075 net/ipv4/route.c 	const struct iphdr *iph = (const struct iphdr *) skb->data;
iph              1079 net/ipv4/route.c 	__build_flow_key(sock_net(sk), &fl4, sk, iph, 0, 0, 0, 0, 0);
iph              1093 net/ipv4/route.c 	const struct iphdr *iph = (const struct iphdr *) skb->data;
iph              1112 net/ipv4/route.c 	__build_flow_key(net, &fl4, sk, iph, 0, 0, 0, 0, 0);
iph              1148 net/ipv4/route.c 	const struct iphdr *iph = (const struct iphdr *) skb->data;
iph              1152 net/ipv4/route.c 	__build_flow_key(net, &fl4, NULL, iph, oif,
iph              1153 net/ipv4/route.c 			 RT_TOS(iph->tos), protocol, 0, 0);
iph              1164 net/ipv4/route.c 	const struct iphdr *iph = (const struct iphdr *) skb->data;
iph              1169 net/ipv4/route.c 	__build_flow_key(net, &fl4, sk, iph, 0, 0, 0, 0, 0);
iph              1261 net/ipv4/route.c 		struct iphdr *iph = ip_hdr(skb);
iph              1263 net/ipv4/route.c 			.daddr = iph->daddr,
iph              1264 net/ipv4/route.c 			.saddr = iph->saddr,
iph              1265 net/ipv4/route.c 			.flowi4_tos = RT_TOS(iph->tos),
iph              1276 net/ipv4/route.c 					       rt_nexthop(rt, iph->daddr),
iph              2950 net/ipv4/route.c 	struct iphdr *iph;
iph              2962 net/ipv4/route.c 	iph = skb_put(skb, sizeof(struct iphdr));
iph              2963 net/ipv4/route.c 	iph->protocol = ip_proto;
iph              2964 net/ipv4/route.c 	iph->saddr = src;
iph              2965 net/ipv4/route.c 	iph->daddr = dst;
iph              2966 net/ipv4/route.c 	iph->version = 0x4;
iph              2967 net/ipv4/route.c 	iph->frag_off = 0;
iph              2968 net/ipv4/route.c 	iph->ihl = 0x5;
iph              2971 net/ipv4/route.c 	switch (iph->protocol) {
iph               161 net/ipv4/syncookies.c u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th,
iph               172 net/ipv4/syncookies.c 	return secure_tcp_syn_cookie(iph->saddr, iph->daddr,
iph               180 net/ipv4/syncookies.c 	const struct iphdr *iph = ip_hdr(skb);
iph               183 net/ipv4/syncookies.c 	return __cookie_v4_init_sequence(iph, th, mssp);
iph               190 net/ipv4/syncookies.c int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
iph               194 net/ipv4/syncookies.c 	__u32 mssind = check_tcp_syn_cookie(cookie, iph->saddr, iph->daddr,
iph               119 net/ipv4/tcp_fastopen.c 		const struct iphdr *iph = ip_hdr(syn);
iph               121 net/ipv4/tcp_fastopen.c 		foc->val[0] = cpu_to_le64(siphash(&iph->saddr,
iph               122 net/ipv4/tcp_fastopen.c 					  sizeof(iph->saddr) +
iph               123 net/ipv4/tcp_fastopen.c 					  sizeof(iph->daddr),
iph               426 net/ipv4/tcp_ipv4.c 	const struct iphdr *iph = (const struct iphdr *)icmp_skb->data;
iph               427 net/ipv4/tcp_ipv4.c 	struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2));
iph               442 net/ipv4/tcp_ipv4.c 	sk = __inet_lookup_established(net, &tcp_hashinfo, iph->daddr,
iph               443 net/ipv4/tcp_ipv4.c 				       th->dest, iph->saddr, ntohs(th->source),
iph               476 net/ipv4/tcp_ipv4.c 	if (unlikely(iph->ttl < inet_sk(sk)->min_ttl)) {
iph              1253 net/ipv4/tcp_ipv4.c 		const struct iphdr *iph = ip_hdr(skb);
iph              1254 net/ipv4/tcp_ipv4.c 		saddr = iph->saddr;
iph              1255 net/ipv4/tcp_ipv4.c 		daddr = iph->daddr;
iph              1304 net/ipv4/tcp_ipv4.c 	const struct iphdr *iph = ip_hdr(skb);
iph              1309 net/ipv4/tcp_ipv4.c 	hash_expected = tcp_md5_do_lookup(sk, (union tcp_md5_addr *)&iph->saddr,
iph              1337 net/ipv4/tcp_ipv4.c 				     &iph->saddr, ntohs(th->source),
iph              1338 net/ipv4/tcp_ipv4.c 				     &iph->daddr, ntohs(th->dest),
iph              1525 net/ipv4/tcp_ipv4.c u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph,
iph              1533 net/ipv4/tcp_ipv4.c 		*cookie = __cookie_v4_init_sequence(iph, th, &mss);
iph              1612 net/ipv4/tcp_ipv4.c 	const struct iphdr *iph;
iph              1622 net/ipv4/tcp_ipv4.c 	iph = ip_hdr(skb);
iph              1629 net/ipv4/tcp_ipv4.c 				       iph->saddr, th->source,
iph              1630 net/ipv4/tcp_ipv4.c 				       iph->daddr, ntohs(th->dest),
iph              1782 net/ipv4/tcp_ipv4.c static void tcp_v4_fill_cb(struct sk_buff *skb, const struct iphdr *iph,
iph              1798 net/ipv4/tcp_ipv4.c 	TCP_SKB_CB(skb)->ip_dsfield = ipv4_get_dsfield(iph);
iph              1813 net/ipv4/tcp_ipv4.c 	const struct iphdr *iph;
iph              1844 net/ipv4/tcp_ipv4.c 	iph = ip_hdr(skb);
iph              1882 net/ipv4/tcp_ipv4.c 			iph = ip_hdr(skb);
iph              1883 net/ipv4/tcp_ipv4.c 			tcp_v4_fill_cb(skb, iph, th);
iph              1911 net/ipv4/tcp_ipv4.c 	if (unlikely(iph->ttl < inet_sk(sk)->min_ttl)) {
iph              1927 net/ipv4/tcp_ipv4.c 	iph = ip_hdr(skb);
iph              1928 net/ipv4/tcp_ipv4.c 	tcp_v4_fill_cb(skb, iph, th);
iph              1965 net/ipv4/tcp_ipv4.c 	tcp_v4_fill_cb(skb, iph, th);
iph              1993 net/ipv4/tcp_ipv4.c 	tcp_v4_fill_cb(skb, iph, th);
iph              2004 net/ipv4/tcp_ipv4.c 							iph->saddr, th->source,
iph              2005 net/ipv4/tcp_ipv4.c 							iph->daddr, th->dest,
iph                39 net/ipv4/tcp_offload.c 		const struct iphdr *iph = ip_hdr(skb);
iph                48 net/ipv4/tcp_offload.c 		__tcp_v4_send_check(skb, iph->saddr, iph->daddr);
iph               321 net/ipv4/tcp_offload.c 	const struct iphdr *iph = ip_hdr(skb);
iph               324 net/ipv4/tcp_offload.c 	th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr,
iph               325 net/ipv4/tcp_offload.c 				  iph->daddr, 0);
iph               480 net/ipv4/udp.c 	const struct iphdr *iph = ip_hdr(skb);
iph               482 net/ipv4/udp.c 	return __udp4_lib_lookup(dev_net(skb->dev), iph->saddr, sport,
iph               483 net/ipv4/udp.c 				 iph->daddr, dport, inet_iif(skb),
iph               490 net/ipv4/udp.c 	const struct iphdr *iph = ip_hdr(skb);
iph               492 net/ipv4/udp.c 	return __udp4_lib_lookup(dev_net(skb->dev), iph->saddr, sport,
iph               493 net/ipv4/udp.c 				 iph->daddr, dport, inet_iif(skb),
iph               583 net/ipv4/udp.c 					 const struct iphdr *iph,
iph               598 net/ipv4/udp.c 	skb_set_transport_header(skb, iph->ihl << 2);
iph               600 net/ipv4/udp.c 	sk = __udp4_lib_lookup(net, iph->daddr, uh->source,
iph               601 net/ipv4/udp.c 			       iph->saddr, uh->dest, skb->dev->ifindex, 0,
iph               635 net/ipv4/udp.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               636 net/ipv4/udp.c 	struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2));
iph               645 net/ipv4/udp.c 	sk = __udp4_lib_lookup(net, iph->daddr, uh->dest,
iph               646 net/ipv4/udp.c 			       iph->saddr, uh->source, skb->dev->ifindex,
iph               652 net/ipv4/udp.c 			sk = __udp4_lib_err_encap(net, iph, uh, udptable, skb,
iph              2438 net/ipv4/udp.c 	const struct iphdr *iph;
iph              2450 net/ipv4/udp.c 	iph = ip_hdr(skb);
iph              2459 net/ipv4/udp.c 		ours = ip_check_mc_rcu(in_dev, iph->daddr, iph->saddr,
iph              2460 net/ipv4/udp.c 				       iph->protocol);
iph              2464 net/ipv4/udp.c 		sk = __udp4_lib_mcast_demux_lookup(net, uh->dest, iph->daddr,
iph              2465 net/ipv4/udp.c 						   uh->source, iph->saddr,
iph              2468 net/ipv4/udp.c 		sk = __udp4_lib_demux_lookup(net, uh->dest, iph->daddr,
iph              2469 net/ipv4/udp.c 					     uh->source, iph->saddr, dif, sdif);
iph              2494 net/ipv4/udp.c 			return ip_mc_validate_source(skb, iph->daddr,
iph              2495 net/ipv4/udp.c 						     iph->saddr, iph->tos,
iph               295 net/ipv4/udp_offload.c 	struct iphdr *iph;
iph               323 net/ipv4/udp_offload.c 	iph = ip_hdr(skb);
iph               327 net/ipv4/udp_offload.c 	uh->check = udp_v4_check(skb->len, iph->saddr, iph->daddr, csum);
iph               544 net/ipv4/udp_offload.c 	const struct iphdr *iph = ip_hdr(skb);
iph               548 net/ipv4/udp_offload.c 		uh->check = ~udp_v4_check(skb->len - nhoff, iph->saddr,
iph               549 net/ipv4/udp_offload.c 					  iph->daddr, 0);
iph                36 net/ipv4/xfrm4_input.c 		const struct iphdr *iph = ip_hdr(skb);
iph                38 net/ipv4/xfrm4_input.c 		if (ip_route_input_noref(skb, iph->daddr, iph->saddr,
iph                39 net/ipv4/xfrm4_input.c 					 iph->tos, skb->dev))
iph                55 net/ipv4/xfrm4_input.c 	struct iphdr *iph = ip_hdr(skb);
iph                57 net/ipv4/xfrm4_input.c 	iph->protocol = XFRM_MODE_SKB_CB(skb)->protocol;
iph                61 net/ipv4/xfrm4_input.c 		return -iph->protocol;
iph                65 net/ipv4/xfrm4_input.c 	iph->tot_len = htons(skb->len);
iph                66 net/ipv4/xfrm4_input.c 	ip_send_check(iph);
iph                91 net/ipv4/xfrm4_input.c 	struct iphdr *iph;
iph               150 net/ipv4/xfrm4_input.c 	iph = ip_hdr(skb);
iph               151 net/ipv4/xfrm4_input.c 	iphlen = iph->ihl << 2;
iph               152 net/ipv4/xfrm4_input.c 	iph->tot_len = htons(ntohs(iph->tot_len) - len);
iph                20 net/ipv4/xfrm4_state.c 	const struct iphdr *iph = ip_hdr(skb);
iph                22 net/ipv4/xfrm4_state.c 	XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph);
iph                23 net/ipv4/xfrm4_state.c 	XFRM_MODE_SKB_CB(skb)->id = iph->id;
iph                24 net/ipv4/xfrm4_state.c 	XFRM_MODE_SKB_CB(skb)->frag_off = iph->frag_off;
iph                25 net/ipv4/xfrm4_state.c 	XFRM_MODE_SKB_CB(skb)->tos = iph->tos;
iph                26 net/ipv4/xfrm4_state.c 	XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl;
iph                27 net/ipv4/xfrm4_state.c 	XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph);
iph              2844 net/ipv6/addrconf.c 		p.iph.daddr = ireq.ifr6_addr.s6_addr32[3];
iph              2845 net/ipv6/addrconf.c 		p.iph.saddr = 0;
iph              2846 net/ipv6/addrconf.c 		p.iph.version = 4;
iph              2847 net/ipv6/addrconf.c 		p.iph.ihl = 5;
iph              2848 net/ipv6/addrconf.c 		p.iph.protocol = IPPROTO_IPV6;
iph              2849 net/ipv6/addrconf.c 		p.iph.ttl = 64;
iph               149 net/ipv6/ah6.c static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt)
iph               188 net/ipv6/ah6.c 				hao->addr = iph->saddr;
iph               189 net/ipv6/ah6.c 				iph->saddr = final_addr;
iph               202 net/ipv6/ah6.c static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) {}
iph               214 net/ipv6/ah6.c static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr)
iph               240 net/ipv6/ah6.c 	addrs[0] = iph->daddr;
iph               241 net/ipv6/ah6.c 	iph->daddr = final_addr;
iph               244 net/ipv6/ah6.c static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir)
iph               247 net/ipv6/ah6.c 		struct ipv6hdr *iph;
iph               251 net/ipv6/ah6.c 	} exthdr = { .iph = iph };
iph               253 net/ipv6/ah6.c 	int nexthdr = iph->nexthdr;
iph               255 net/ipv6/ah6.c 	exthdr.iph++;
iph               261 net/ipv6/ah6.c 				ipv6_rearrange_destopt(iph, exthdr.opth);
iph               273 net/ipv6/ah6.c 			ipv6_rearrange_rthdr(iph, exthdr.rth);
iph               649 net/ipv6/ah6.c 	struct ipv6hdr *iph = (struct ipv6hdr *)skb->data;
iph               657 net/ipv6/ah6.c 	x = xfrm_state_lookup(net, skb->mark, (xfrm_address_t *)&iph->daddr, ah->spi, IPPROTO_AH, AF_INET6);
iph               326 net/ipv6/datagram.c 	struct ipv6hdr *iph;
iph               340 net/ipv6/datagram.c 	iph = ipv6_hdr(skb);
iph               341 net/ipv6/datagram.c 	iph->daddr = fl6->daddr;
iph               342 net/ipv6/datagram.c 	ip6_flow_hdr(iph, 0, 0);
iph               352 net/ipv6/datagram.c 	serr->addr_offset = (u8 *)&iph->daddr - skb_network_header(skb);
iph               365 net/ipv6/datagram.c 	struct ipv6hdr *iph;
iph               378 net/ipv6/datagram.c 	iph = ipv6_hdr(skb);
iph               379 net/ipv6/datagram.c 	iph->daddr = fl6->daddr;
iph               692 net/ipv6/esp6.c 	const struct ipv6hdr *iph = (const struct ipv6hdr *)skb->data;
iph               700 net/ipv6/esp6.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
iph               122 net/ipv6/esp6_offload.c 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph               124 net/ipv6/esp6_offload.c 	u8 proto = iph->nexthdr;
iph               311 net/ipv6/icmp.c 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph               322 net/ipv6/icmp.c 			tmp = iph->saddr;
iph               323 net/ipv6/icmp.c 			iph->saddr = hao->addr;
iph               637 net/ipv6/ip6_gre.c 	const struct iphdr *iph = ip_hdr(skb);
iph               646 net/ipv6/ip6_gre.c 		*dsfield = ipv4_get_dsfield(iph);
iph               157 net/ipv6/ip6_offload.c static int ipv6_exthdrs_len(struct ipv6hdr *iph,
iph               160 net/ipv6/ip6_offload.c 	struct ipv6_opt_hdr *opth = (void *)iph;
iph               161 net/ipv6/ip6_offload.c 	int len = 0, proto, optlen = sizeof(*iph);
iph               163 net/ipv6/ip6_offload.c 	proto = iph->nexthdr;
iph               190 net/ipv6/ip6_offload.c 	struct ipv6hdr *iph;
iph               198 net/ipv6/ip6_offload.c 	hlen = off + sizeof(*iph);
iph               199 net/ipv6/ip6_offload.c 	iph = skb_gro_header_fast(skb, off);
iph               201 net/ipv6/ip6_offload.c 		iph = skb_gro_header_slow(skb, hlen, off);
iph               202 net/ipv6/ip6_offload.c 		if (unlikely(!iph))
iph               207 net/ipv6/ip6_offload.c 	skb_gro_pull(skb, sizeof(*iph));
iph               210 net/ipv6/ip6_offload.c 	flush += ntohs(iph->payload_len) != skb_gro_len(skb);
iph               213 net/ipv6/ip6_offload.c 	proto = iph->nexthdr;
iph               227 net/ipv6/ip6_offload.c 		iph = ipv6_hdr(skb);
iph               243 net/ipv6/ip6_offload.c 		first_word = *(__be32 *)iph ^ *(__be32 *)iph2;
iph               252 net/ipv6/ip6_offload.c 		    !ipv6_addr_equal(&iph->saddr, &iph2->saddr) ||
iph               253 net/ipv6/ip6_offload.c 		    !ipv6_addr_equal(&iph->daddr, &iph2->daddr) ||
iph               254 net/ipv6/ip6_offload.c 		    *(u16 *)&iph->nexthdr != *(u16 *)&iph2->nexthdr) {
iph               260 net/ipv6/ip6_offload.c 			if (memcmp(iph + 1, iph2 + 1,
iph               278 net/ipv6/ip6_offload.c 	skb_gro_postpull_rcsum(skb, iph, nlen);
iph               327 net/ipv6/ip6_offload.c 	struct ipv6hdr *iph = (struct ipv6hdr *)(skb->data + nhoff);
iph               335 net/ipv6/ip6_offload.c 	iph->payload_len = htons(skb->len - nhoff - sizeof(*iph));
iph               339 net/ipv6/ip6_offload.c 	nhoff += sizeof(*iph) + ipv6_exthdrs_len(iph, &ops);
iph              1233 net/ipv6/ip6_tunnel.c 	const struct iphdr  *iph;
iph              1241 net/ipv6/ip6_tunnel.c 	iph = ip_hdr(skb);
iph              1271 net/ipv6/ip6_tunnel.c 			dsfield = ipv4_get_dsfield(iph);
iph              1281 net/ipv6/ip6_tunnel.c 	dsfield = INET_ECN_encapsulate(dsfield, ipv4_get_dsfield(iph));
iph               600 net/ipv6/ip6_vti.c 	const struct ipv6hdr *iph = (const struct ipv6hdr *)skb->data;
iph               601 net/ipv6/ip6_vti.c 	int protocol = iph->nexthdr;
iph               603 net/ipv6/ip6_vti.c 	t = vti6_tnl_lookup(dev_net(skb->dev), &iph->daddr, &iph->saddr);
iph               630 net/ipv6/ip6_vti.c 	x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr,
iph              2274 net/ipv6/ip6mr.c 		struct ipv6hdr *iph;
iph              2297 net/ipv6/ip6mr.c 		iph = ipv6_hdr(skb2);
iph              2298 net/ipv6/ip6mr.c 		iph->version = 0;
iph              2299 net/ipv6/ip6mr.c 		iph->priority = 0;
iph              2300 net/ipv6/ip6mr.c 		iph->flow_lbl[0] = 0;
iph              2301 net/ipv6/ip6mr.c 		iph->flow_lbl[1] = 0;
iph              2302 net/ipv6/ip6mr.c 		iph->flow_lbl[2] = 0;
iph              2303 net/ipv6/ip6mr.c 		iph->payload_len = 0;
iph              2304 net/ipv6/ip6mr.c 		iph->nexthdr = IPPROTO_NONE;
iph              2305 net/ipv6/ip6mr.c 		iph->hop_limit = 0;
iph              2306 net/ipv6/ip6mr.c 		iph->saddr = rt->rt6i_src.addr;
iph              2307 net/ipv6/ip6mr.c 		iph->daddr = rt->rt6i_dst.addr;
iph                49 net/ipv6/ipcomp6.c 	const struct ipv6hdr *iph = (const struct ipv6hdr *)skb->data;
iph                59 net/ipv6/ipcomp6.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
iph               121 net/ipv6/mip6.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               126 net/ipv6/mip6.c 	if (!ipv6_addr_equal(&iph->saddr, (struct in6_addr *)x->coaddr) &&
iph               140 net/ipv6/mip6.c 	struct ipv6hdr *iph;
iph               147 net/ipv6/mip6.c 	iph = ipv6_hdr(skb);
iph               164 net/ipv6/mip6.c 	memcpy(&hao->addr, &iph->saddr, sizeof(hao->addr));
iph               166 net/ipv6/mip6.c 	memcpy(&iph->saddr, x->coaddr, sizeof(iph->saddr));
iph               341 net/ipv6/mip6.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               346 net/ipv6/mip6.c 	if (!ipv6_addr_equal(&iph->daddr, (struct in6_addr *)x->coaddr) &&
iph               359 net/ipv6/mip6.c 	struct ipv6hdr *iph;
iph               364 net/ipv6/mip6.c 	iph = ipv6_hdr(skb);
iph               378 net/ipv6/mip6.c 	memcpy(&rt2->addr, &iph->daddr, sizeof(rt2->addr));
iph               380 net/ipv6/mip6.c 	memcpy(&iph->daddr, x->coaddr, sizeof(iph->daddr));
iph                25 net/ipv6/netfilter.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph                29 net/ipv6/netfilter.c 	int strict = (ipv6_addr_type(&iph->daddr) &
iph                36 net/ipv6/netfilter.c 		.daddr = iph->daddr,
iph                37 net/ipv6/netfilter.c 		.saddr = iph->saddr,
iph                83 net/ipv6/netfilter.c 		const struct ipv6hdr *iph = ipv6_hdr(skb);
iph                84 net/ipv6/netfilter.c 		if (!ipv6_addr_equal(&iph->daddr, &rt_info->daddr) ||
iph                85 net/ipv6/netfilter.c 		    !ipv6_addr_equal(&iph->saddr, &rt_info->saddr) ||
iph                36 net/ipv6/netfilter/ip6t_rpfilter.c 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph                40 net/ipv6/netfilter/ip6t_rpfilter.c 		.flowlabel = (* (__be32 *) iph) & IPV6_FLOWINFO_MASK,
iph                41 net/ipv6/netfilter/ip6t_rpfilter.c 		.flowi6_proto = iph->nexthdr,
iph                42 net/ipv6/netfilter/ip6t_rpfilter.c 		.daddr = iph->saddr,
iph                46 net/ipv6/netfilter/ip6t_rpfilter.c 	if (rpfilter_addr_unicast(&iph->daddr)) {
iph                47 net/ipv6/netfilter/ip6t_rpfilter.c 		memcpy(&fl6.saddr, &iph->daddr, sizeof(struct in6_addr));
iph                55 net/ipv6/netfilter/ip6t_rpfilter.c 	if (rpfilter_addr_linklocal(&iph->saddr)) {
iph                94 net/ipv6/netfilter/ip6t_rpfilter.c 	struct ipv6hdr *iph;
iph               100 net/ipv6/netfilter/ip6t_rpfilter.c 	iph = ipv6_hdr(skb);
iph               101 net/ipv6/netfilter/ip6t_rpfilter.c 	saddrtype = ipv6_addr_type(&iph->saddr);
iph                22 net/ipv6/netfilter/nf_dup_ipv6.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph                31 net/ipv6/netfilter/nf_dup_ipv6.c 	fl6.flowlabel = (__force __be32)(((iph->flow_lbl[0] & 0xF) << 16) |
iph                32 net/ipv6/netfilter/nf_dup_ipv6.c 			(iph->flow_lbl[1] << 8) | iph->flow_lbl[2]);
iph                62 net/ipv6/netfilter/nf_dup_ipv6.c 		struct ipv6hdr *iph = ipv6_hdr(skb);
iph                63 net/ipv6/netfilter/nf_dup_ipv6.c 		--iph->hop_limit;
iph               331 net/ipv6/netfilter/nf_log_ipv6.c 			const struct iphdr *iph =
iph               333 net/ipv6/netfilter/nf_log_ipv6.c 			nf_log_buf_add(m, "TUNNEL=%pI4->%pI4 ", &iph->saddr,
iph               334 net/ipv6/netfilter/nf_log_ipv6.c 				       &iph->daddr);
iph               102 net/ipv6/netfilter/nf_socket_ipv6.c 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph               122 net/ipv6/netfilter/nf_socket_ipv6.c 		saddr = &iph->saddr;
iph               124 net/ipv6/netfilter/nf_socket_ipv6.c 		daddr = &iph->daddr;
iph                45 net/ipv6/netfilter/nf_tproxy_ipv6.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph                60 net/ipv6/netfilter/nf_tproxy_ipv6.c 					    &iph->saddr,
iph                61 net/ipv6/netfilter/nf_tproxy_ipv6.c 					    nf_tproxy_laddr6(skb, laddr, &iph->daddr),
iph                25 net/ipv6/netfilter/nft_fib_ipv6.c 			       struct ipv6hdr *iph)
iph                30 net/ipv6/netfilter/nft_fib_ipv6.c 		fl6->daddr = iph->daddr;
iph                31 net/ipv6/netfilter/nft_fib_ipv6.c 		fl6->saddr = iph->saddr;
iph                33 net/ipv6/netfilter/nft_fib_ipv6.c 		fl6->daddr = iph->saddr;
iph                34 net/ipv6/netfilter/nft_fib_ipv6.c 		fl6->saddr = iph->daddr;
iph                48 net/ipv6/netfilter/nft_fib_ipv6.c 	fl6->flowlabel = (*(__be32 *)iph) & IPV6_FLOWINFO_MASK;
iph                55 net/ipv6/netfilter/nft_fib_ipv6.c 				struct ipv6hdr *iph)
iph                71 net/ipv6/netfilter/nft_fib_ipv6.c 	nft_fib6_flowi_init(&fl6, priv, pkt, dev, iph);
iph               126 net/ipv6/netfilter/nft_fib_ipv6.c 	struct ipv6hdr *iph, _iph;
iph               128 net/ipv6/netfilter/nft_fib_ipv6.c 	iph = skb_header_pointer(pkt->skb, noff, sizeof(_iph), &_iph);
iph               129 net/ipv6/netfilter/nft_fib_ipv6.c 	if (!iph) {
iph               134 net/ipv6/netfilter/nft_fib_ipv6.c 	*dest = __nft_fib6_eval_type(priv, pkt, iph);
iph               145 net/ipv6/netfilter/nft_fib_ipv6.c 	struct ipv6hdr *iph, _iph;
iph               158 net/ipv6/netfilter/nft_fib_ipv6.c 	iph = skb_header_pointer(pkt->skb, noff, sizeof(_iph), &_iph);
iph               159 net/ipv6/netfilter/nft_fib_ipv6.c 	if (!iph) {
iph               164 net/ipv6/netfilter/nft_fib_ipv6.c 	lookup_flags = nft_fib6_flowi_init(&fl6, priv, pkt, oif, iph);
iph               624 net/ipv6/raw.c 	struct ipv6hdr *iph;
iph               654 net/ipv6/raw.c 	iph = ipv6_hdr(skb);
iph               664 net/ipv6/raw.c 	err = memcpy_from_msg(iph, msg, length);
iph              2446 net/ipv6/route.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph              2452 net/ipv6/route.c 		.daddr = iph->daddr,
iph              2453 net/ipv6/route.c 		.saddr = iph->saddr,
iph              2454 net/ipv6/route.c 		.flowlabel = ip6_flowinfo(iph),
iph              2456 net/ipv6/route.c 		.flowi6_proto = iph->nexthdr,
iph              2725 net/ipv6/route.c 				 const struct ipv6hdr *iph, u32 mtu,
iph              2736 net/ipv6/route.c 	if (iph) {
iph              2737 net/ipv6/route.c 		daddr = &iph->daddr;
iph              2738 net/ipv6/route.c 		saddr = &iph->saddr;
iph              2813 net/ipv6/route.c 	const struct ipv6hdr *iph = (struct ipv6hdr *) skb->data;
iph              2818 net/ipv6/route.c 		.daddr = iph->daddr,
iph              2819 net/ipv6/route.c 		.saddr = iph->saddr,
iph              2820 net/ipv6/route.c 		.flowlabel = ip6_flowinfo(iph),
iph              2826 net/ipv6/route.c 		__ip6_rt_update_pmtu(dst, NULL, iph, ntohl(mtu), true);
iph              3028 net/ipv6/route.c 	const struct ipv6hdr *iph = (struct ipv6hdr *) skb->data;
iph              3034 net/ipv6/route.c 		.daddr = iph->daddr,
iph              3035 net/ipv6/route.c 		.saddr = iph->saddr,
iph              3036 net/ipv6/route.c 		.flowlabel = ip6_flowinfo(iph),
iph              3048 net/ipv6/route.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph              3055 net/ipv6/route.c 		.saddr = iph->daddr,
iph              3059 net/ipv6/route.c 	dst = ip6_route_redirect(net, &fl6, skb, &iph->saddr);
iph               359 net/ipv6/seg6_local.c 	struct iphdr *iph;
iph               371 net/ipv6/seg6_local.c 	iph = ip_hdr(skb);
iph               373 net/ipv6/seg6_local.c 	nhaddr = slwt->nh4.s_addr ?: iph->daddr;
iph               379 net/ipv6/seg6_local.c 	err = ip_route_input(skb, nhaddr, iph->saddr, 0, skb->dev);
iph               101 net/ipv6/sit.c 		if (local == t->parms.iph.saddr &&
iph               102 net/ipv6/sit.c 		    remote == t->parms.iph.daddr &&
iph               109 net/ipv6/sit.c 		if (remote == t->parms.iph.daddr &&
iph               116 net/ipv6/sit.c 		if (local == t->parms.iph.saddr &&
iph               131 net/ipv6/sit.c 	__be32 remote = parms->iph.daddr;
iph               132 net/ipv6/sit.c 	__be32 local = parms->iph.saddr;
iph               200 net/ipv6/sit.c 	memcpy(dev->dev_addr, &t->parms.iph.saddr, 4);
iph               201 net/ipv6/sit.c 	memcpy(dev->broadcast, &t->parms.iph.daddr, 4);
iph               226 net/ipv6/sit.c 	__be32 remote = parms->iph.daddr;
iph               227 net/ipv6/sit.c 	__be32 local = parms->iph.saddr;
iph               237 net/ipv6/sit.c 		if (local == t->parms.iph.saddr &&
iph               238 net/ipv6/sit.c 		    remote == t->parms.iph.daddr &&
iph               445 net/ipv6/sit.c isatap_chksrc(struct sk_buff *skb, const struct iphdr *iph, struct ip_tunnel *t)
iph               451 net/ipv6/sit.c 	p = __ipip6_tunnel_locate_prl(t, iph->saddr);
iph               461 net/ipv6/sit.c 		    (addr6->s6_addr32[3] == iph->saddr) &&
iph               488 net/ipv6/sit.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               527 net/ipv6/sit.c 				iph->daddr, iph->saddr, sifindex);
iph               533 net/ipv6/sit.c 				 t->parms.link, iph->protocol);
iph               539 net/ipv6/sit.c 			      iph->protocol);
iph               546 net/ipv6/sit.c 	    !ip6_err_gen_icmpv6_unreach(skb, iph->ihl * 4, type, data_len))
iph               549 net/ipv6/sit.c 	if (t->parms.iph.daddr == 0)
iph               552 net/ipv6/sit.c 	if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED)
iph               601 net/ipv6/sit.c 			      const struct iphdr *iph,
iph               607 net/ipv6/sit.c 		if (!isatap_chksrc(skb, iph, tunnel))
iph               618 net/ipv6/sit.c 	if (unlikely(is_spoofed_6rd(tunnel, iph->saddr, &ipv6h->saddr))) {
iph               620 net/ipv6/sit.c 				     &iph->saddr, &ipv6h->saddr,
iph               621 net/ipv6/sit.c 				     &iph->daddr, &ipv6h->daddr);
iph               625 net/ipv6/sit.c 	if (likely(!is_spoofed_6rd(tunnel, iph->daddr, &ipv6h->daddr)))
iph               632 net/ipv6/sit.c 			     &iph->saddr, &ipv6h->saddr,
iph               633 net/ipv6/sit.c 			     &iph->daddr, &ipv6h->daddr);
iph               639 net/ipv6/sit.c 	const struct iphdr *iph = ip_hdr(skb);
iph               646 net/ipv6/sit.c 				     iph->saddr, iph->daddr, sifindex);
iph               650 net/ipv6/sit.c 		if (tunnel->parms.iph.protocol != IPPROTO_IPV6 &&
iph               651 net/ipv6/sit.c 		    tunnel->parms.iph.protocol != 0)
iph               659 net/ipv6/sit.c 		if (packet_is_spoofed(skb, iph, tunnel)) {
iph               671 net/ipv6/sit.c 		iph = (const struct iphdr *)skb_mac_header(skb);
iph               672 net/ipv6/sit.c 		err = IP_ECN_decapsulate(iph, skb);
iph               676 net/ipv6/sit.c 						     &iph->saddr, iph->tos);
iph               716 net/ipv6/sit.c 	const struct iphdr *iph;
iph               722 net/ipv6/sit.c 	iph = ip_hdr(skb);
iph               724 net/ipv6/sit.c 				     iph->saddr, iph->daddr, sifindex);
iph               728 net/ipv6/sit.c 		if (tunnel->parms.iph.protocol != ipproto &&
iph               729 net/ipv6/sit.c 		    tunnel->parms.iph.protocol != 0)
iph               820 net/ipv6/sit.c 	const struct iphdr  *tiph = &tunnel->parms.iph;
iph               822 net/ipv6/sit.c 	u8     tos = tunnel->parms.iph.tos;
iph               946 net/ipv6/sit.c 		if (tunnel->parms.iph.daddr)
iph              1013 net/ipv6/sit.c 	const struct iphdr  *tiph = &tunnel->parms.iph;
iph              1063 net/ipv6/sit.c 	const struct iphdr *iph;
iph              1067 net/ipv6/sit.c 	iph = &tunnel->parms.iph;
iph              1069 net/ipv6/sit.c 	if (iph->daddr) {
iph              1072 net/ipv6/sit.c 							  iph->daddr, iph->saddr,
iph              1075 net/ipv6/sit.c 							  RT_TOS(iph->tos),
iph              1106 net/ipv6/sit.c 	t->parms.iph.saddr = p->iph.saddr;
iph              1107 net/ipv6/sit.c 	t->parms.iph.daddr = p->iph.daddr;
iph              1108 net/ipv6/sit.c 	memcpy(t->dev->dev_addr, &p->iph.saddr, 4);
iph              1109 net/ipv6/sit.c 	memcpy(t->dev->broadcast, &p->iph.daddr, 4);
iph              1111 net/ipv6/sit.c 	t->parms.iph.ttl = p->iph.ttl;
iph              1112 net/ipv6/sit.c 	t->parms.iph.tos = p->iph.tos;
iph              1113 net/ipv6/sit.c 	t->parms.iph.frag_off = p->iph.frag_off;
iph              1225 net/ipv6/sit.c 		if (!ipip6_valid_ip_proto(p.iph.protocol))
iph              1227 net/ipv6/sit.c 		if (p.iph.version != 4 ||
iph              1228 net/ipv6/sit.c 		    p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF)))
iph              1230 net/ipv6/sit.c 		if (p.iph.ttl)
iph              1231 net/ipv6/sit.c 			p.iph.frag_off |= htons(IP_DF);
iph              1242 net/ipv6/sit.c 				if (((dev->flags&IFF_POINTOPOINT) && !p.iph.daddr) ||
iph              1243 net/ipv6/sit.c 				    (!(dev->flags&IFF_POINTOPOINT) && p.iph.daddr)) {
iph              1420 net/ipv6/sit.c 	struct iphdr *iph = &tunnel->parms.iph;
iph              1424 net/ipv6/sit.c 	iph->version		= 4;
iph              1425 net/ipv6/sit.c 	iph->protocol		= IPPROTO_IPV6;
iph              1426 net/ipv6/sit.c 	iph->ihl		= 5;
iph              1427 net/ipv6/sit.c 	iph->ttl		= 64;
iph              1454 net/ipv6/sit.c 	parms->iph.version = 4;
iph              1455 net/ipv6/sit.c 	parms->iph.protocol = IPPROTO_IPV6;
iph              1456 net/ipv6/sit.c 	parms->iph.ihl = 5;
iph              1457 net/ipv6/sit.c 	parms->iph.ttl = 64;
iph              1466 net/ipv6/sit.c 		parms->iph.saddr = nla_get_be32(data[IFLA_IPTUN_LOCAL]);
iph              1469 net/ipv6/sit.c 		parms->iph.daddr = nla_get_be32(data[IFLA_IPTUN_REMOTE]);
iph              1472 net/ipv6/sit.c 		parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]);
iph              1473 net/ipv6/sit.c 		if (parms->iph.ttl)
iph              1474 net/ipv6/sit.c 			parms->iph.frag_off = htons(IP_DF);
iph              1478 net/ipv6/sit.c 		parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]);
iph              1481 net/ipv6/sit.c 		parms->iph.frag_off = htons(IP_DF);
iph              1487 net/ipv6/sit.c 		parms->iph.protocol = nla_get_u8(data[IFLA_IPTUN_PROTO]);
iph              1635 net/ipv6/sit.c 	if (((dev->flags & IFF_POINTOPOINT) && !p.iph.daddr) ||
iph              1636 net/ipv6/sit.c 	    (!(dev->flags & IFF_POINTOPOINT) && p.iph.daddr))
iph              1705 net/ipv6/sit.c 	    nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) ||
iph              1706 net/ipv6/sit.c 	    nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) ||
iph              1707 net/ipv6/sit.c 	    nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) ||
iph              1708 net/ipv6/sit.c 	    nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) ||
iph              1710 net/ipv6/sit.c 		       !!(parm->iph.frag_off & htons(IP_DF))) ||
iph              1711 net/ipv6/sit.c 	    nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) ||
iph                92 net/ipv6/syncookies.c u32 __cookie_v6_init_sequence(const struct ipv6hdr *iph,
iph               104 net/ipv6/syncookies.c 	return secure_tcp_syn_cookie(&iph->saddr, &iph->daddr, th->source,
iph               111 net/ipv6/syncookies.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               114 net/ipv6/syncookies.c 	return __cookie_v6_init_sequence(iph, th, mssp);
iph               117 net/ipv6/syncookies.c int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th,
iph               121 net/ipv6/syncookies.c 	__u32 mssind = check_tcp_syn_cookie(cookie, &iph->saddr, &iph->daddr,
iph              1073 net/ipv6/tcp_ipv6.c u16 tcp_v6_get_syncookie(struct sock *sk, struct ipv6hdr *iph,
iph              1081 net/ipv6/tcp_ipv6.c 		*cookie = __cookie_v6_init_sequence(iph, th, &mss);
iph                31 net/ipv6/tcpv6_offload.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph                34 net/ipv6/tcpv6_offload.c 	th->check = ~tcp_v6_check(skb->len - thoff, &iph->saddr,
iph                35 net/ipv6/tcpv6_offload.c 				  &iph->daddr, 0);
iph               217 net/ipv6/udp.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               219 net/ipv6/udp.c 	return __udp6_lib_lookup(dev_net(skb->dev), &iph->saddr, sport,
iph               220 net/ipv6/udp.c 				 &iph->daddr, dport, inet6_iif(skb),
iph               227 net/ipv6/udp.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               229 net/ipv6/udp.c 	return __udp6_lib_lookup(dev_net(skb->dev), &iph->saddr, sport,
iph               230 net/ipv6/udp.c 				 &iph->daddr, dport, inet6_iif(skb),
iph                26 net/ipv6/xfrm6_state.c 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph                28 net/ipv6/xfrm6_state.c 	XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph);
iph                31 net/ipv6/xfrm6_state.c 	XFRM_MODE_SKB_CB(skb)->tos = ipv6_get_dsfield(iph);
iph                32 net/ipv6/xfrm6_state.c 	XFRM_MODE_SKB_CB(skb)->ttl = iph->hop_limit;
iph                34 net/ipv6/xfrm6_state.c 	memcpy(XFRM_MODE_SKB_CB(skb)->flow_lbl, iph->flow_lbl,
iph               225 net/ipv6/xfrm6_tunnel.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               228 net/ipv6/xfrm6_tunnel.c 	spi = xfrm6_tunnel_spi_lookup(net, (const xfrm_address_t *)&iph->saddr);
iph               121 net/l2tp/l2tp_ip.c 	struct iphdr *iph;
iph               180 net/l2tp/l2tp_ip.c 	iph = (struct iphdr *)skb_network_header(skb);
iph               183 net/l2tp/l2tp_ip.c 	sk = __l2tp_ip_bind_lookup(net, iph->daddr, iph->saddr, inet_iif(skb),
iph               133 net/l2tp/l2tp_ip6.c 	struct ipv6hdr *iph;
iph               192 net/l2tp/l2tp_ip6.c 	iph = ipv6_hdr(skb);
iph               195 net/l2tp/l2tp_ip6.c 	sk = __l2tp_ip6_bind_lookup(net, &iph->daddr, &iph->saddr,
iph               101 net/netfilter/ipset/ip_set_getport.c 	const struct iphdr *iph = ip_hdr(skb);
iph               103 net/netfilter/ipset/ip_set_getport.c 	int protocol = iph->protocol;
iph               109 net/netfilter/ipset/ip_set_getport.c 	if (ntohs(iph->frag_off) & IP_OFFSET)
iph               316 net/netfilter/ipvs/ip_vs_conn.c 			    const struct ip_vs_iphdr *iph,
iph               321 net/netfilter/ipvs/ip_vs_conn.c 	pptr = frag_safe_skb_hp(skb, iph->len, sizeof(_ports), _ports);
iph               325 net/netfilter/ipvs/ip_vs_conn.c 	if (likely(!ip_vs_iph_inverse(iph)))
iph               326 net/netfilter/ipvs/ip_vs_conn.c 		ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->saddr,
iph               327 net/netfilter/ipvs/ip_vs_conn.c 				      pptr[0], &iph->daddr, pptr[1], p);
iph               329 net/netfilter/ipvs/ip_vs_conn.c 		ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->daddr,
iph               330 net/netfilter/ipvs/ip_vs_conn.c 				      pptr[1], &iph->saddr, pptr[0], p);
iph               337 net/netfilter/ipvs/ip_vs_conn.c 			const struct ip_vs_iphdr *iph)
iph               341 net/netfilter/ipvs/ip_vs_conn.c 	if (ip_vs_conn_fill_param_proto(ipvs, af, skb, iph, &p))
iph               442 net/netfilter/ipvs/ip_vs_conn.c 			 const struct ip_vs_iphdr *iph)
iph               446 net/netfilter/ipvs/ip_vs_conn.c 	if (ip_vs_conn_fill_param_proto(ipvs, af, skb, iph, &p))
iph                74 net/netfilter/ipvs/ip_vs_core.c 			 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));
iph                80 net/netfilter/ipvs/ip_vs_core.c 			 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph));
iph               267 net/netfilter/ipvs/ip_vs_core.c 		    int *ignored, struct ip_vs_iphdr *iph)
iph               280 net/netfilter/ipvs/ip_vs_core.c 	if (likely(!ip_vs_iph_inverse(iph))) {
iph               281 net/netfilter/ipvs/ip_vs_core.c 		src_addr = &iph->saddr;
iph               282 net/netfilter/ipvs/ip_vs_core.c 		dst_addr = &iph->daddr;
iph               284 net/netfilter/ipvs/ip_vs_core.c 		src_addr = &iph->daddr;
iph               285 net/netfilter/ipvs/ip_vs_core.c 		dst_addr = &iph->saddr;
iph               318 net/netfilter/ipvs/ip_vs_core.c 		int protocol = iph->protocol;
iph               365 net/netfilter/ipvs/ip_vs_core.c 			dest = sched->schedule(svc, skb, iph);
iph               403 net/netfilter/ipvs/ip_vs_core.c 		 && iph->protocol == IPPROTO_UDP) ?
iph               409 net/netfilter/ipvs/ip_vs_core.c 	ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, src_addr,
iph               455 net/netfilter/ipvs/ip_vs_core.c 	       struct ip_vs_iphdr *iph)
iph               469 net/netfilter/ipvs/ip_vs_core.c 	pptr = frag_safe_skb_hp(skb, iph->len, sizeof(_ports), _ports);
iph               473 net/netfilter/ipvs/ip_vs_core.c 	if (likely(!ip_vs_iph_inverse(iph))) {
iph               475 net/netfilter/ipvs/ip_vs_core.c 		caddr = &iph->saddr;
iph               477 net/netfilter/ipvs/ip_vs_core.c 		vaddr = &iph->daddr;
iph               480 net/netfilter/ipvs/ip_vs_core.c 		caddr = &iph->daddr;
iph               482 net/netfilter/ipvs/ip_vs_core.c 		vaddr = &iph->saddr;
iph               492 net/netfilter/ipvs/ip_vs_core.c 		IP_VS_DBG_PKT(12, svc->af, pp, skb, iph->off,
iph               501 net/netfilter/ipvs/ip_vs_core.c 		iph->hdr_flags ^= IP_VS_HDR_INVERSE;
iph               504 net/netfilter/ipvs/ip_vs_core.c 				     svc->af, skb, iph);
iph               505 net/netfilter/ipvs/ip_vs_core.c 		iph->hdr_flags ^= IP_VS_HDR_INVERSE;
iph               508 net/netfilter/ipvs/ip_vs_core.c 			IP_VS_DBG_PKT(12, svc->af, pp, skb, iph->off,
iph               521 net/netfilter/ipvs/ip_vs_core.c 					   iph);
iph               540 net/netfilter/ipvs/ip_vs_core.c 		dest = sched->schedule(svc, skb, iph);
iph               550 net/netfilter/ipvs/ip_vs_core.c 		 && iph->protocol == IPPROTO_UDP) ?
iph               559 net/netfilter/ipvs/ip_vs_core.c 		ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol,
iph               598 net/netfilter/ipvs/ip_vs_core.c 		struct ip_vs_proto_data *pd, struct ip_vs_iphdr *iph)
iph               604 net/netfilter/ipvs/ip_vs_core.c 	pptr = frag_safe_skb_hp(skb, iph->len, sizeof(_ports), _ports);
iph               607 net/netfilter/ipvs/ip_vs_core.c 	dport = likely(!ip_vs_iph_inverse(iph)) ? pptr[1] : pptr[0];
iph               613 net/netfilter/ipvs/ip_vs_core.c 	    !(iph->hdr_flags & (IP_VS_HDR_INVERSE | IP_VS_HDR_ICMP)) &&
iph               614 net/netfilter/ipvs/ip_vs_core.c 	    ip_vs_addr_is_unicast(net, svc->af, &iph->daddr)) {
iph               618 net/netfilter/ipvs/ip_vs_core.c 				      iph->protocol == IPPROTO_UDP) ?
iph               626 net/netfilter/ipvs/ip_vs_core.c 			ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol,
iph               627 net/netfilter/ipvs/ip_vs_core.c 					      &iph->saddr, pptr[0],
iph               628 net/netfilter/ipvs/ip_vs_core.c 					      &iph->daddr, pptr[1], &p);
iph               643 net/netfilter/ipvs/ip_vs_core.c 		ret = cp->packet_xmit(skb, cp, pd->pp, iph);
iph               663 net/netfilter/ipvs/ip_vs_core.c 	if (unlikely(ip_vs_iph_icmp(iph)))
iph               769 net/netfilter/ipvs/ip_vs_core.c 	struct iphdr *iph	 = ip_hdr(skb);
iph               770 net/netfilter/ipvs/ip_vs_core.c 	unsigned int icmp_offset = iph->ihl*4;
iph               776 net/netfilter/ipvs/ip_vs_core.c 		iph->saddr = cp->vaddr.ip;
iph               777 net/netfilter/ipvs/ip_vs_core.c 		ip_send_check(iph);
iph               781 net/netfilter/ipvs/ip_vs_core.c 		iph->daddr = cp->daddr.ip;
iph               782 net/netfilter/ipvs/ip_vs_core.c 		ip_send_check(iph);
iph               804 net/netfilter/ipvs/ip_vs_core.c 		IP_VS_DBG_PKT(11, AF_INET, pp, skb, (void *)ciph - (void *)iph,
iph               807 net/netfilter/ipvs/ip_vs_core.c 		IP_VS_DBG_PKT(11, AF_INET, pp, skb, (void *)ciph - (void *)iph,
iph               815 net/netfilter/ipvs/ip_vs_core.c 	struct ipv6hdr *iph	 = ipv6_hdr(skb);
iph               831 net/netfilter/ipvs/ip_vs_core.c 		iph->saddr = cp->vaddr.in6;
iph               834 net/netfilter/ipvs/ip_vs_core.c 		iph->daddr = cp->daddr.in6;
iph               853 net/netfilter/ipvs/ip_vs_core.c 	icmph->icmp6_cksum = ~csum_ipv6_magic(&iph->saddr, &iph->daddr,
iph               862 net/netfilter/ipvs/ip_vs_core.c 			      (void *)ciph - (void *)iph,
iph               866 net/netfilter/ipvs/ip_vs_core.c 			      (void *)ciph - (void *)iph,
iph               936 net/netfilter/ipvs/ip_vs_core.c 	struct iphdr *iph;
iph               953 net/netfilter/ipvs/ip_vs_core.c 	iph = ip_hdr(skb);
iph               954 net/netfilter/ipvs/ip_vs_core.c 	offset = ihl = iph->ihl * 4;
iph               961 net/netfilter/ipvs/ip_vs_core.c 		  &iph->saddr, &iph->daddr);
iph              1003 net/netfilter/ipvs/ip_vs_core.c 	snet.ip = iph->saddr;
iph              1094 net/netfilter/ipvs/ip_vs_core.c 			       struct ip_vs_iphdr *iph)
iph              1096 net/netfilter/ipvs/ip_vs_core.c 	switch (iph->protocol) {
iph              1100 net/netfilter/ipvs/ip_vs_core.c 		th = skb_header_pointer(skb, iph->len, sizeof(_tcph), &_tcph);
iph              1108 net/netfilter/ipvs/ip_vs_core.c 		sch = skb_header_pointer(skb, iph->len + sizeof(struct sctphdr),
iph              1151 net/netfilter/ipvs/ip_vs_core.c 				      const struct ip_vs_iphdr *iph,
iph              1165 net/netfilter/ipvs/ip_vs_core.c 	daddr = &iph->saddr;
iph              1166 net/netfilter/ipvs/ip_vs_core.c 	caddr = &iph->daddr;
iph              1185 net/netfilter/ipvs/ip_vs_core.c 		if (ip_vs_conn_fill_param_persist(svc, skb, iph->protocol,
iph              1206 net/netfilter/ipvs/ip_vs_core.c 		 iph->protocol == IPPROTO_UDP) ? IP_VS_CONN_F_ONE_PACKET : 0;
iph              1208 net/netfilter/ipvs/ip_vs_core.c 	ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol,
iph              1244 net/netfilter/ipvs/ip_vs_core.c 					      const struct ip_vs_iphdr *iph)
iph              1253 net/netfilter/ipvs/ip_vs_core.c 	pptr = frag_safe_skb_hp(skb, iph->len,
iph              1258 net/netfilter/ipvs/ip_vs_core.c 	dest = ip_vs_find_real_service(ipvs, af, iph->protocol,
iph              1259 net/netfilter/ipvs/ip_vs_core.c 				       &iph->saddr, pptr[0]);
iph              1268 net/netfilter/ipvs/ip_vs_core.c 				cp = pe->conn_out(svc, dest, skb, iph,
iph              1280 net/netfilter/ipvs/ip_vs_core.c 		struct ip_vs_conn *cp, struct ip_vs_iphdr *iph,
iph              1285 net/netfilter/ipvs/ip_vs_core.c 	IP_VS_DBG_PKT(11, af, pp, skb, iph->off, "Outgoing packet");
iph              1287 net/netfilter/ipvs/ip_vs_core.c 	if (skb_ensure_writable(skb, iph->len))
iph              1292 net/netfilter/ipvs/ip_vs_core.c 	    !SNAT_CALL(pp->snat_handler, skb, pp, cp, iph))
iph              1323 net/netfilter/ipvs/ip_vs_core.c 	IP_VS_DBG_PKT(10, af, pp, skb, iph->off, "After SNAT");
iph              1350 net/netfilter/ipvs/ip_vs_core.c 	struct ip_vs_iphdr iph;
iph              1377 net/netfilter/ipvs/ip_vs_core.c 	ip_vs_fill_iph_skb(af, skb, false, &iph);
iph              1380 net/netfilter/ipvs/ip_vs_core.c 		if (unlikely(iph.protocol == IPPROTO_ICMPV6)) {
iph              1383 net/netfilter/ipvs/ip_vs_core.c 							hooknum, &iph);
iph              1390 net/netfilter/ipvs/ip_vs_core.c 		if (unlikely(iph.protocol == IPPROTO_ICMP)) {
iph              1398 net/netfilter/ipvs/ip_vs_core.c 	pd = ip_vs_proto_data_get(ipvs, iph.protocol);
iph              1412 net/netfilter/ipvs/ip_vs_core.c 			ip_vs_fill_iph_skb(AF_INET, skb, false, &iph);
iph              1419 net/netfilter/ipvs/ip_vs_core.c 			     ipvs, af, skb, &iph);
iph              1424 net/netfilter/ipvs/ip_vs_core.c 		return handle_response(af, skb, pd, cp, &iph, hooknum);
iph              1435 net/netfilter/ipvs/ip_vs_core.c 			cp = __ip_vs_rs_conn_out(hooknum, ipvs, af, skb, &iph);
iph              1437 net/netfilter/ipvs/ip_vs_core.c 				return handle_response(af, skb, pd, cp, &iph,
iph              1448 net/netfilter/ipvs/ip_vs_core.c 		pptr = frag_safe_skb_hp(skb, iph.len,
iph              1452 net/netfilter/ipvs/ip_vs_core.c 		if (ip_vs_has_real_service(ipvs, af, iph.protocol, &iph.saddr,
iph              1459 net/netfilter/ipvs/ip_vs_core.c 			if ((iph.protocol != IPPROTO_TCP &&
iph              1460 net/netfilter/ipvs/ip_vs_core.c 			     iph.protocol != IPPROTO_SCTP)
iph              1461 net/netfilter/ipvs/ip_vs_core.c 			     || ((iph.protocol == IPPROTO_TCP
iph              1462 net/netfilter/ipvs/ip_vs_core.c 				  && !is_tcp_reset(skb, iph.len))
iph              1463 net/netfilter/ipvs/ip_vs_core.c 				 || (iph.protocol == IPPROTO_SCTP
iph              1465 net/netfilter/ipvs/ip_vs_core.c 						iph.len)))) {
iph              1485 net/netfilter/ipvs/ip_vs_core.c 	IP_VS_DBG_PKT(12, af, pp, skb, iph.off,
iph              1548 net/netfilter/ipvs/ip_vs_core.c 		      struct ip_vs_iphdr *iph)
iph              1552 net/netfilter/ipvs/ip_vs_core.c 	if (!iph->fragoffs) {
iph              1558 net/netfilter/ipvs/ip_vs_core.c 		if (!pp->conn_schedule(ipvs, af, skb, pd, verdict, cpp, iph))
iph              1564 net/netfilter/ipvs/ip_vs_core.c 		IP_VS_DBG_PKT(12, af, pp, skb, iph->off,
iph              1568 net/netfilter/ipvs/ip_vs_core.c 		if (iph->fragoffs)
iph              1569 net/netfilter/ipvs/ip_vs_core.c 			IP_VS_DBG_PKT(7, af, pp, skb, iph->off,
iph              1656 net/netfilter/ipvs/ip_vs_core.c 	struct iphdr *iph;
iph              1675 net/netfilter/ipvs/ip_vs_core.c 	iph = ip_hdr(skb);
iph              1676 net/netfilter/ipvs/ip_vs_core.c 	offset = ihl = iph->ihl * 4;
iph              1683 net/netfilter/ipvs/ip_vs_core.c 		  &iph->saddr, &iph->daddr);
iph              1796 net/netfilter/ipvs/ip_vs_core.c 			  &iph->saddr);
iph              1873 net/netfilter/ipvs/ip_vs_core.c 			    struct ip_vs_iphdr *iph)
iph              1885 net/netfilter/ipvs/ip_vs_core.c 	ic = frag_safe_skb_hp(skb, iph->len, sizeof(_icmph), &_icmph);
iph              1903 net/netfilter/ipvs/ip_vs_core.c 	if (iph->flags & IP6_FH_F_FRAG)
iph              1908 net/netfilter/ipvs/ip_vs_core.c 		  &iph->saddr, &iph->daddr);
iph              1910 net/netfilter/ipvs/ip_vs_core.c 	offset = iph->len + sizeof(_icmph);
iph              1980 net/netfilter/ipvs/ip_vs_core.c 	struct ip_vs_iphdr iph;
iph              2000 net/netfilter/ipvs/ip_vs_core.c 		ip_vs_fill_iph_skb(af, skb, false, &iph);
iph              2003 net/netfilter/ipvs/ip_vs_core.c 			      skb->pkt_type, iph.protocol,
iph              2004 net/netfilter/ipvs/ip_vs_core.c 			      IP_VS_DBG_ADDR(af, &iph.daddr), hooknum);
iph              2011 net/netfilter/ipvs/ip_vs_core.c 	ip_vs_fill_iph_skb(af, skb, false, &iph);
iph              2024 net/netfilter/ipvs/ip_vs_core.c 		if (unlikely(iph.protocol == IPPROTO_ICMPV6)) {
iph              2027 net/netfilter/ipvs/ip_vs_core.c 						       hooknum, &iph);
iph              2034 net/netfilter/ipvs/ip_vs_core.c 		if (unlikely(iph.protocol == IPPROTO_ICMP)) {
iph              2044 net/netfilter/ipvs/ip_vs_core.c 	pd = ip_vs_proto_data_get(ipvs, iph.protocol);
iph              2060 net/netfilter/ipvs/ip_vs_core.c 			     ipvs, af, skb, &iph);
iph              2063 net/netfilter/ipvs/ip_vs_core.c 	if (conn_reuse_mode && !iph.fragoffs && is_new_conn(skb, &iph) && cp) {
iph              2096 net/netfilter/ipvs/ip_vs_core.c 		if (!ip_vs_try_to_schedule(ipvs, af, skb, pd, &v, &cp, &iph))
iph              2100 net/netfilter/ipvs/ip_vs_core.c 	IP_VS_DBG_PKT(11, af, pp, skb, iph.off, "Incoming packet");
iph              2126 net/netfilter/ipvs/ip_vs_core.c 		ret = cp->packet_xmit(skb, cp, pp, &iph);
iph               214 net/netfilter/ipvs/ip_vs_dh.c 		  struct ip_vs_iphdr *iph)
iph               222 net/netfilter/ipvs/ip_vs_dh.c 	dest = ip_vs_dh_get(svc->af, s, &iph->daddr);
iph               232 net/netfilter/ipvs/ip_vs_dh.c 		      IP_VS_DBG_ADDR(svc->af, &iph->daddr),
iph                22 net/netfilter/ipvs/ip_vs_fo.c 		  struct ip_vs_iphdr *iph)
iph               482 net/netfilter/ipvs/ip_vs_lblc.c 		    struct ip_vs_iphdr *iph)
iph               491 net/netfilter/ipvs/ip_vs_lblc.c 	en = ip_vs_lblc_get(svc->af, tbl, &iph->daddr);
iph               521 net/netfilter/ipvs/ip_vs_lblc.c 		ip_vs_lblc_new(tbl, &iph->daddr, svc->af, dest);
iph               526 net/netfilter/ipvs/ip_vs_lblc.c 		      IP_VS_DBG_ADDR(svc->af, &iph->daddr),
iph               646 net/netfilter/ipvs/ip_vs_lblcr.c 		     struct ip_vs_iphdr *iph)
iph               655 net/netfilter/ipvs/ip_vs_lblcr.c 	en = ip_vs_lblcr_get(svc->af, tbl, &iph->daddr);
iph               706 net/netfilter/ipvs/ip_vs_lblcr.c 		ip_vs_lblcr_new(tbl, &iph->daddr, svc->af, dest);
iph               711 net/netfilter/ipvs/ip_vs_lblcr.c 		      IP_VS_DBG_ADDR(svc->af, &iph->daddr),
iph                25 net/netfilter/ipvs/ip_vs_lc.c 		  struct ip_vs_iphdr *iph)
iph               446 net/netfilter/ipvs/ip_vs_mh.c ip_vs_mh_get_port(const struct sk_buff *skb, struct ip_vs_iphdr *iph)
iph               455 net/netfilter/ipvs/ip_vs_mh.c 	switch (iph->protocol) {
iph               459 net/netfilter/ipvs/ip_vs_mh.c 		ports = skb_header_pointer(skb, iph->len, sizeof(_ports),
iph               464 net/netfilter/ipvs/ip_vs_mh.c 		if (likely(!ip_vs_iph_inverse(iph)))
iph               476 net/netfilter/ipvs/ip_vs_mh.c 		  struct ip_vs_iphdr *iph)
iph               483 net/netfilter/ipvs/ip_vs_mh.c 	hash_addr = ip_vs_iph_inverse(iph) ? &iph->daddr : &iph->saddr;
iph               488 net/netfilter/ipvs/ip_vs_mh.c 		port = ip_vs_mh_get_port(skb, iph);
iph                54 net/netfilter/ipvs/ip_vs_nq.c 		  struct ip_vs_iphdr *iph)
iph                26 net/netfilter/ipvs/ip_vs_ovf.c 		   struct ip_vs_iphdr *iph)
iph                69 net/netfilter/ipvs/ip_vs_pe_sip.c 	struct ip_vs_iphdr iph;
iph                74 net/netfilter/ipvs/ip_vs_pe_sip.c 	retc = ip_vs_fill_iph_skb(p->af, skb, false, &iph);
iph                77 net/netfilter/ipvs/ip_vs_pe_sip.c 	if (!retc || iph.protocol != IPPROTO_UDP)
iph                82 net/netfilter/ipvs/ip_vs_pe_sip.c 	dataoff = iph.len + sizeof(struct udphdr);
iph               151 net/netfilter/ipvs/ip_vs_pe_sip.c 		   const struct ip_vs_iphdr *iph,
iph               155 net/netfilter/ipvs/ip_vs_pe_sip.c 	if (likely(iph->protocol == IPPROTO_UDP))
iph               156 net/netfilter/ipvs/ip_vs_pe_sip.c 		return ip_vs_new_conn_out(svc, dest, skb, iph, dport, cport);
iph                41 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 			     const struct ip_vs_iphdr *iph,
iph                44 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 	if (likely(!ip_vs_iph_inverse(iph)))
iph                46 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 				      &iph->saddr, htons(PORT_ISAKMP),
iph                47 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 				      &iph->daddr, htons(PORT_ISAKMP), p);
iph                50 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 				      &iph->daddr, htons(PORT_ISAKMP),
iph                51 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 				      &iph->saddr, htons(PORT_ISAKMP), p);
iph                56 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 		   const struct ip_vs_iphdr *iph)
iph                61 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 	ah_esp_conn_fill_param_proto(ipvs, af, iph, &p);
iph                70 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 			      ip_vs_iph_icmp(iph) ? "ICMP+" : "",
iph                71 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 			      ip_vs_proto_get(iph->protocol)->name,
iph                72 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 			      IP_VS_DBG_ADDR(af, &iph->saddr),
iph                73 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 			      IP_VS_DBG_ADDR(af, &iph->daddr));
iph                82 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 		    const struct ip_vs_iphdr *iph)
iph                87 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 	ah_esp_conn_fill_param_proto(ipvs, af, iph, &p);
iph                92 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 			      ip_vs_iph_icmp(iph) ? "ICMP+" : "",
iph                93 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 			      ip_vs_proto_get(iph->protocol)->name,
iph                94 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 			      IP_VS_DBG_ADDR(af, &iph->saddr),
iph                95 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 			      IP_VS_DBG_ADDR(af, &iph->daddr));
iph               106 net/netfilter/ipvs/ip_vs_proto_ah_esp.c 		     struct ip_vs_iphdr *iph)
iph                19 net/netfilter/ipvs/ip_vs_proto_sctp.c 		   struct ip_vs_iphdr *iph)
iph                26 net/netfilter/ipvs/ip_vs_proto_sctp.c 	if (likely(!ip_vs_iph_icmp(iph))) {
iph                27 net/netfilter/ipvs/ip_vs_proto_sctp.c 		sh = skb_header_pointer(skb, iph->len, sizeof(_sctph), &_sctph);
iph                29 net/netfilter/ipvs/ip_vs_proto_sctp.c 			sch = skb_header_pointer(skb, iph->len + sizeof(_sctph),
iph                41 net/netfilter/ipvs/ip_vs_proto_sctp.c 			skb, iph->len, sizeof(_ports), &_ports);
iph                49 net/netfilter/ipvs/ip_vs_proto_sctp.c 	if (likely(!ip_vs_iph_inverse(iph)))
iph                50 net/netfilter/ipvs/ip_vs_proto_sctp.c 		svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
iph                51 net/netfilter/ipvs/ip_vs_proto_sctp.c 					 &iph->daddr, ports[1]);
iph                53 net/netfilter/ipvs/ip_vs_proto_sctp.c 		svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
iph                54 net/netfilter/ipvs/ip_vs_proto_sctp.c 					 &iph->saddr, ports[0]);
iph                70 net/netfilter/ipvs/ip_vs_proto_sctp.c 		*cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph);
iph                73 net/netfilter/ipvs/ip_vs_proto_sctp.c 				*verdict = ip_vs_leave(svc, skb, pd, iph);
iph                92 net/netfilter/ipvs/ip_vs_proto_sctp.c 		  struct ip_vs_conn *cp, struct ip_vs_iphdr *iph)
iph                95 net/netfilter/ipvs/ip_vs_proto_sctp.c 	unsigned int sctphoff = iph->len;
iph                99 net/netfilter/ipvs/ip_vs_proto_sctp.c 	if (cp->af == AF_INET6 && iph->fragoffs)
iph               115 net/netfilter/ipvs/ip_vs_proto_sctp.c 		ret = ip_vs_app_pkt_out(cp, skb, iph);
iph               139 net/netfilter/ipvs/ip_vs_proto_sctp.c 		  struct ip_vs_conn *cp, struct ip_vs_iphdr *iph)
iph               142 net/netfilter/ipvs/ip_vs_proto_sctp.c 	unsigned int sctphoff = iph->len;
iph               146 net/netfilter/ipvs/ip_vs_proto_sctp.c 	if (cp->af == AF_INET6 && iph->fragoffs)
iph               162 net/netfilter/ipvs/ip_vs_proto_sctp.c 		ret = ip_vs_app_pkt_in(cp, skb, iph);
iph                38 net/netfilter/ipvs/ip_vs_proto_tcp.c 		  struct ip_vs_iphdr *iph)
iph                48 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if (likely(!ip_vs_iph_icmp(iph))) {
iph                49 net/netfilter/ipvs/ip_vs_proto_tcp.c 		th = skb_header_pointer(skb, iph->len, sizeof(_tcph), &_tcph);
iph                57 net/netfilter/ipvs/ip_vs_proto_tcp.c 			skb, iph->len, sizeof(_ports), &_ports);
iph                67 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if (likely(!ip_vs_iph_inverse(iph)))
iph                68 net/netfilter/ipvs/ip_vs_proto_tcp.c 		svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
iph                69 net/netfilter/ipvs/ip_vs_proto_tcp.c 					 &iph->daddr, ports[1]);
iph                71 net/netfilter/ipvs/ip_vs_proto_tcp.c 		svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
iph                72 net/netfilter/ipvs/ip_vs_proto_tcp.c 					 &iph->saddr, ports[0]);
iph                90 net/netfilter/ipvs/ip_vs_proto_tcp.c 		*cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph);
iph                93 net/netfilter/ipvs/ip_vs_proto_tcp.c 				*verdict = ip_vs_leave(svc, skb, pd, iph);
iph               148 net/netfilter/ipvs/ip_vs_proto_tcp.c 		 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph)
iph               151 net/netfilter/ipvs/ip_vs_proto_tcp.c 	unsigned int tcphoff = iph->len;
iph               156 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if (cp->af == AF_INET6 && iph->fragoffs)
iph               173 net/netfilter/ipvs/ip_vs_proto_tcp.c 		if (!(ret = ip_vs_app_pkt_out(cp, skb, iph)))
iph               226 net/netfilter/ipvs/ip_vs_proto_tcp.c 		 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph)
iph               229 net/netfilter/ipvs/ip_vs_proto_tcp.c 	unsigned int tcphoff = iph->len;
iph               234 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if (cp->af == AF_INET6 && iph->fragoffs)
iph               254 net/netfilter/ipvs/ip_vs_proto_tcp.c 		if (!(ret = ip_vs_app_pkt_in(cp, skb, iph)))
iph                34 net/netfilter/ipvs/ip_vs_proto_udp.c 		  struct ip_vs_iphdr *iph)
iph                40 net/netfilter/ipvs/ip_vs_proto_udp.c 	if (likely(!ip_vs_iph_icmp(iph))) {
iph                42 net/netfilter/ipvs/ip_vs_proto_udp.c 		uh = skb_header_pointer(skb, iph->len, sizeof(_udph), &_udph);
iph                47 net/netfilter/ipvs/ip_vs_proto_udp.c 			skb, iph->len, sizeof(_ports), &_ports);
iph                55 net/netfilter/ipvs/ip_vs_proto_udp.c 	if (likely(!ip_vs_iph_inverse(iph)))
iph                56 net/netfilter/ipvs/ip_vs_proto_udp.c 		svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
iph                57 net/netfilter/ipvs/ip_vs_proto_udp.c 					 &iph->daddr, ports[1]);
iph                59 net/netfilter/ipvs/ip_vs_proto_udp.c 		svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol,
iph                60 net/netfilter/ipvs/ip_vs_proto_udp.c 					 &iph->saddr, ports[0]);
iph                78 net/netfilter/ipvs/ip_vs_proto_udp.c 		*cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph);
iph                81 net/netfilter/ipvs/ip_vs_proto_udp.c 				*verdict = ip_vs_leave(svc, skb, pd, iph);
iph               137 net/netfilter/ipvs/ip_vs_proto_udp.c 		 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph)
iph               140 net/netfilter/ipvs/ip_vs_proto_udp.c 	unsigned int udphoff = iph->len;
iph               145 net/netfilter/ipvs/ip_vs_proto_udp.c 	if (cp->af == AF_INET6 && iph->fragoffs)
iph               164 net/netfilter/ipvs/ip_vs_proto_udp.c 		if (!(ret = ip_vs_app_pkt_out(cp, skb, iph)))
iph               220 net/netfilter/ipvs/ip_vs_proto_udp.c 		 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph)
iph               223 net/netfilter/ipvs/ip_vs_proto_udp.c 	unsigned int udphoff = iph->len;
iph               228 net/netfilter/ipvs/ip_vs_proto_udp.c 	if (cp->af == AF_INET6 && iph->fragoffs)
iph               248 net/netfilter/ipvs/ip_vs_proto_udp.c 		if (!(ret = ip_vs_app_pkt_in(cp, skb, iph)))
iph                54 net/netfilter/ipvs/ip_vs_rr.c 		  struct ip_vs_iphdr *iph)
iph                58 net/netfilter/ipvs/ip_vs_sed.c 		   struct ip_vs_iphdr *iph)
iph               277 net/netfilter/ipvs/ip_vs_sh.c ip_vs_sh_get_port(const struct sk_buff *skb, struct ip_vs_iphdr *iph)
iph               286 net/netfilter/ipvs/ip_vs_sh.c 	switch (iph->protocol) {
iph               290 net/netfilter/ipvs/ip_vs_sh.c 		ports = skb_header_pointer(skb, iph->len, sizeof(_ports),
iph               295 net/netfilter/ipvs/ip_vs_sh.c 		if (likely(!ip_vs_iph_inverse(iph)))
iph               310 net/netfilter/ipvs/ip_vs_sh.c 		  struct ip_vs_iphdr *iph)
iph               317 net/netfilter/ipvs/ip_vs_sh.c 	hash_addr = ip_vs_iph_inverse(iph) ? &iph->daddr : &iph->saddr;
iph               322 net/netfilter/ipvs/ip_vs_sh.c 		port = ip_vs_sh_get_port(skb, iph);
iph                30 net/netfilter/ipvs/ip_vs_wlc.c 		   struct ip_vs_iphdr *iph)
iph               161 net/netfilter/ipvs/ip_vs_wrr.c 		   struct ip_vs_iphdr *iph)
iph               707 net/netfilter/ipvs/ip_vs_xmit.c 	struct iphdr  *iph = ip_hdr(skb);
iph               711 net/netfilter/ipvs/ip_vs_xmit.c 	if (__ip_vs_get_out_rt(cp->ipvs, cp->af, skb, NULL, iph->daddr,
iph               715 net/netfilter/ipvs/ip_vs_xmit.c 	ip_send_check(iph);
iph               736 net/netfilter/ipvs/ip_vs_xmit.c 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph               741 net/netfilter/ipvs/ip_vs_xmit.c 				  &iph->daddr, NULL,
iph              1146 net/netfilter/ipvs/ip_vs_xmit.c 	struct iphdr  *iph;			/* Our new IP header */
iph              1250 net/netfilter/ipvs/ip_vs_xmit.c 	iph			=	ip_hdr(skb);
iph              1251 net/netfilter/ipvs/ip_vs_xmit.c 	iph->version		=	4;
iph              1252 net/netfilter/ipvs/ip_vs_xmit.c 	iph->ihl		=	sizeof(struct iphdr)>>2;
iph              1253 net/netfilter/ipvs/ip_vs_xmit.c 	iph->frag_off		=	df;
iph              1254 net/netfilter/ipvs/ip_vs_xmit.c 	iph->protocol		=	next_protocol;
iph              1255 net/netfilter/ipvs/ip_vs_xmit.c 	iph->tos		=	dsfield;
iph              1256 net/netfilter/ipvs/ip_vs_xmit.c 	iph->daddr		=	cp->daddr.ip;
iph              1257 net/netfilter/ipvs/ip_vs_xmit.c 	iph->saddr		=	saddr;
iph              1258 net/netfilter/ipvs/ip_vs_xmit.c 	iph->ttl		=	ttl;
iph              1295 net/netfilter/ipvs/ip_vs_xmit.c 	struct ipv6hdr  *iph;		/* Our new IP header */
iph              1398 net/netfilter/ipvs/ip_vs_xmit.c 	iph			=	ipv6_hdr(skb);
iph              1399 net/netfilter/ipvs/ip_vs_xmit.c 	iph->version		=	6;
iph              1400 net/netfilter/ipvs/ip_vs_xmit.c 	iph->nexthdr		=	next_protocol;
iph              1401 net/netfilter/ipvs/ip_vs_xmit.c 	iph->payload_len	=	htons(payload_len);
iph              1402 net/netfilter/ipvs/ip_vs_xmit.c 	memset(&iph->flow_lbl, 0, sizeof(iph->flow_lbl));
iph              1403 net/netfilter/ipvs/ip_vs_xmit.c 	ipv6_change_dsfield(iph, 0, dsfield);
iph              1404 net/netfilter/ipvs/ip_vs_xmit.c 	iph->daddr = cp->daddr.in6;
iph              1405 net/netfilter/ipvs/ip_vs_xmit.c 	iph->saddr = saddr;
iph              1406 net/netfilter/ipvs/ip_vs_xmit.c 	iph->hop_limit		=	ttl;
iph              1510 net/netfilter/ipvs/ip_vs_xmit.c 		struct ip_vs_iphdr *iph)
iph              1524 net/netfilter/ipvs/ip_vs_xmit.c 			rc = cp->packet_xmit(skb, cp, pp, iph);
iph              1542 net/netfilter/ipvs/ip_vs_xmit.c 				   NULL, iph);
iph                24 net/netfilter/nf_conntrack_broadcast.c 	struct iphdr *iph = ip_hdr(skb);
iph                46 net/netfilter/nf_conntrack_broadcast.c 			if (ifa->ifa_broadcast == iph->daddr) {
iph               323 net/netfilter/nf_conntrack_core.c 	const struct iphdr *iph;
iph               326 net/netfilter/nf_conntrack_core.c 	iph = skb_header_pointer(skb, nhoff, sizeof(_iph), &_iph);
iph               327 net/netfilter/nf_conntrack_core.c 	if (!iph)
iph               333 net/netfilter/nf_conntrack_core.c 	if (iph->frag_off & htons(IP_OFFSET))
iph               336 net/netfilter/nf_conntrack_core.c 	dataoff = nhoff + (iph->ihl << 2);
iph               337 net/netfilter/nf_conntrack_core.c 	*protonum = iph->protocol;
iph               342 net/netfilter/nf_conntrack_core.c 			 nhoff, iph->ihl << 2, skb->len);
iph               110 net/netfilter/nf_conntrack_irc.c 	const struct iphdr *iph;
iph               161 net/netfilter/nf_conntrack_irc.c 		iph = ip_hdr(skb);
iph               163 net/netfilter/nf_conntrack_irc.c 			 &iph->saddr, ntohs(th->source),
iph               164 net/netfilter/nf_conntrack_irc.c 			 &iph->daddr, ntohs(th->dest));
iph                74 net/netfilter/nf_flow_table_ip.c static int nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph,
iph                78 net/netfilter/nf_flow_table_ip.c 	switch (iph->protocol) {
iph                93 net/netfilter/nf_flow_table_ip.c 			   struct iphdr *iph, unsigned int thoff,
iph               100 net/netfilter/nf_flow_table_ip.c 		addr = iph->saddr;
iph               102 net/netfilter/nf_flow_table_ip.c 		iph->saddr = new_addr;
iph               105 net/netfilter/nf_flow_table_ip.c 		addr = iph->daddr;
iph               107 net/netfilter/nf_flow_table_ip.c 		iph->daddr = new_addr;
iph               112 net/netfilter/nf_flow_table_ip.c 	csum_replace4(&iph->check, addr, new_addr);
iph               114 net/netfilter/nf_flow_table_ip.c 	return nf_flow_nat_ip_l4proto(skb, iph, thoff, addr, new_addr);
iph               118 net/netfilter/nf_flow_table_ip.c 			   struct iphdr *iph, unsigned int thoff,
iph               125 net/netfilter/nf_flow_table_ip.c 		addr = iph->daddr;
iph               127 net/netfilter/nf_flow_table_ip.c 		iph->daddr = new_addr;
iph               130 net/netfilter/nf_flow_table_ip.c 		addr = iph->saddr;
iph               132 net/netfilter/nf_flow_table_ip.c 		iph->saddr = new_addr;
iph               137 net/netfilter/nf_flow_table_ip.c 	csum_replace4(&iph->check, addr, new_addr);
iph               139 net/netfilter/nf_flow_table_ip.c 	return nf_flow_nat_ip_l4proto(skb, iph, thoff, addr, new_addr);
iph               145 net/netfilter/nf_flow_table_ip.c 	struct iphdr *iph = ip_hdr(skb);
iph               148 net/netfilter/nf_flow_table_ip.c 	    (nf_flow_snat_port(flow, skb, thoff, iph->protocol, dir) < 0 ||
iph               149 net/netfilter/nf_flow_table_ip.c 	     nf_flow_snat_ip(flow, skb, iph, thoff, dir) < 0))
iph               152 net/netfilter/nf_flow_table_ip.c 	    (nf_flow_dnat_port(flow, skb, thoff, iph->protocol, dir) < 0 ||
iph               153 net/netfilter/nf_flow_table_ip.c 	     nf_flow_dnat_ip(flow, skb, iph, thoff, dir) < 0))
iph               169 net/netfilter/nf_flow_table_ip.c 	struct iphdr *iph;
iph               171 net/netfilter/nf_flow_table_ip.c 	if (!pskb_may_pull(skb, sizeof(*iph)))
iph               174 net/netfilter/nf_flow_table_ip.c 	iph = ip_hdr(skb);
iph               175 net/netfilter/nf_flow_table_ip.c 	thoff = iph->ihl * 4;
iph               177 net/netfilter/nf_flow_table_ip.c 	if (ip_is_fragment(iph) ||
iph               181 net/netfilter/nf_flow_table_ip.c 	if (iph->protocol != IPPROTO_TCP &&
iph               182 net/netfilter/nf_flow_table_ip.c 	    iph->protocol != IPPROTO_UDP)
iph               185 net/netfilter/nf_flow_table_ip.c 	if (iph->ttl <= 1)
iph               188 net/netfilter/nf_flow_table_ip.c 	thoff = iph->ihl * 4;
iph               192 net/netfilter/nf_flow_table_ip.c 	iph = ip_hdr(skb);
iph               195 net/netfilter/nf_flow_table_ip.c 	tuple->src_v4.s_addr	= iph->saddr;
iph               196 net/netfilter/nf_flow_table_ip.c 	tuple->dst_v4.s_addr	= iph->daddr;
iph               200 net/netfilter/nf_flow_table_ip.c 	tuple->l4proto		= iph->protocol;
iph               248 net/netfilter/nf_flow_table_ip.c 	struct iphdr *iph;
iph               269 net/netfilter/nf_flow_table_ip.c 	if (skb_try_make_writable(skb, sizeof(*iph)))
iph               285 net/netfilter/nf_flow_table_ip.c 	iph = ip_hdr(skb);
iph               286 net/netfilter/nf_flow_table_ip.c 	ip_decrease_ttl(iph);
iph               358 net/netfilter/nf_nat_proto.c 	struct iphdr *iph;
iph               361 net/netfilter/nf_nat_proto.c 	if (skb_ensure_writable(skb, iphdroff + sizeof(*iph)))
iph               364 net/netfilter/nf_nat_proto.c 	iph = (void *)skb->data + iphdroff;
iph               365 net/netfilter/nf_nat_proto.c 	hdroff = iphdroff + iph->ihl * 4;
iph               369 net/netfilter/nf_nat_proto.c 	iph = (void *)skb->data + iphdroff;
iph               372 net/netfilter/nf_nat_proto.c 		csum_replace4(&iph->check, iph->saddr, target->src.u3.ip);
iph               373 net/netfilter/nf_nat_proto.c 		iph->saddr = target->src.u3.ip;
iph               375 net/netfilter/nf_nat_proto.c 		csum_replace4(&iph->check, iph->daddr, target->dst.u3.ip);
iph               376 net/netfilter/nf_nat_proto.c 		iph->daddr = target->dst.u3.ip;
iph               450 net/netfilter/nf_nat_proto.c 	struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff);
iph               454 net/netfilter/nf_nat_proto.c 		oldip = iph->saddr;
iph               457 net/netfilter/nf_nat_proto.c 		oldip = iph->daddr;
iph               504 net/netfilter/nf_nat_proto.c 		const struct iphdr *iph = ip_hdr(skb);
iph               510 net/netfilter/nf_nat_proto.c 		*check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, datalen,
iph               135 net/netfilter/nf_queue.c 		const struct iphdr *iph = ip_hdr(skb);
iph               137 net/netfilter/nf_queue.c 		rt_info->tos = iph->tos;
iph               138 net/netfilter/nf_queue.c 		rt_info->daddr = iph->daddr;
iph               139 net/netfilter/nf_queue.c 		rt_info->saddr = iph->saddr;
iph               150 net/netfilter/nf_queue.c 		const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               152 net/netfilter/nf_queue.c 		rt_info->daddr = iph->daddr;
iph               153 net/netfilter/nf_queue.c 		rt_info->saddr = iph->saddr;
iph               417 net/netfilter/nf_synproxy_core.c 	struct iphdr *iph;
iph               420 net/netfilter/nf_synproxy_core.c 	iph = skb_put(skb, sizeof(*iph));
iph               421 net/netfilter/nf_synproxy_core.c 	iph->version	= 4;
iph               422 net/netfilter/nf_synproxy_core.c 	iph->ihl	= sizeof(*iph) / 4;
iph               423 net/netfilter/nf_synproxy_core.c 	iph->tos	= 0;
iph               424 net/netfilter/nf_synproxy_core.c 	iph->id		= 0;
iph               425 net/netfilter/nf_synproxy_core.c 	iph->frag_off	= htons(IP_DF);
iph               426 net/netfilter/nf_synproxy_core.c 	iph->ttl	= net->ipv4.sysctl_ip_default_ttl;
iph               427 net/netfilter/nf_synproxy_core.c 	iph->protocol	= IPPROTO_TCP;
iph               428 net/netfilter/nf_synproxy_core.c 	iph->check	= 0;
iph               429 net/netfilter/nf_synproxy_core.c 	iph->saddr	= saddr;
iph               430 net/netfilter/nf_synproxy_core.c 	iph->daddr	= daddr;
iph               432 net/netfilter/nf_synproxy_core.c 	return iph;
iph               470 net/netfilter/nf_synproxy_core.c 	struct iphdr *iph, *niph;
iph               475 net/netfilter/nf_synproxy_core.c 	iph = ip_hdr(skb);
iph               484 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip(net, nskb, iph->daddr, iph->saddr);
iph               490 net/netfilter/nf_synproxy_core.c 	nth->seq	= htonl(__cookie_v4_init_sequence(iph, th, &mss));
iph               514 net/netfilter/nf_synproxy_core.c 	struct iphdr *iph, *niph;
iph               518 net/netfilter/nf_synproxy_core.c 	iph = ip_hdr(skb);
iph               527 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip(net, nskb, iph->saddr, iph->daddr);
iph               559 net/netfilter/nf_synproxy_core.c 	struct iphdr *iph, *niph;
iph               563 net/netfilter/nf_synproxy_core.c 	iph = ip_hdr(skb);
iph               572 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip(net, nskb, iph->daddr, iph->saddr);
iph               597 net/netfilter/nf_synproxy_core.c 	struct iphdr *iph, *niph;
iph               601 net/netfilter/nf_synproxy_core.c 	iph = ip_hdr(skb);
iph               610 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip(net, nskb, iph->saddr, iph->daddr);
iph               817 net/netfilter/nf_synproxy_core.c 	struct ipv6hdr *iph;
iph               820 net/netfilter/nf_synproxy_core.c 	iph = skb_put(skb, sizeof(*iph));
iph               821 net/netfilter/nf_synproxy_core.c 	ip6_flow_hdr(iph, 0, 0);
iph               822 net/netfilter/nf_synproxy_core.c 	iph->hop_limit	= net->ipv6.devconf_all->hop_limit;
iph               823 net/netfilter/nf_synproxy_core.c 	iph->nexthdr	= IPPROTO_TCP;
iph               824 net/netfilter/nf_synproxy_core.c 	iph->saddr	= *saddr;
iph               825 net/netfilter/nf_synproxy_core.c 	iph->daddr	= *daddr;
iph               827 net/netfilter/nf_synproxy_core.c 	return iph;
iph               884 net/netfilter/nf_synproxy_core.c 	struct ipv6hdr *iph, *niph;
iph               889 net/netfilter/nf_synproxy_core.c 	iph = ipv6_hdr(skb);
iph               898 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip_ipv6(net, nskb, &iph->daddr, &iph->saddr);
iph               904 net/netfilter/nf_synproxy_core.c 	nth->seq	= htonl(nf_ipv6_cookie_init_sequence(iph, th, &mss));
iph               929 net/netfilter/nf_synproxy_core.c 	struct ipv6hdr *iph, *niph;
iph               933 net/netfilter/nf_synproxy_core.c 	iph = ipv6_hdr(skb);
iph               942 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip_ipv6(net, nskb, &iph->saddr, &iph->daddr);
iph               974 net/netfilter/nf_synproxy_core.c 	struct ipv6hdr *iph, *niph;
iph               978 net/netfilter/nf_synproxy_core.c 	iph = ipv6_hdr(skb);
iph               987 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip_ipv6(net, nskb, &iph->daddr, &iph->saddr);
iph              1013 net/netfilter/nf_synproxy_core.c 	struct ipv6hdr *iph, *niph;
iph              1017 net/netfilter/nf_synproxy_core.c 	iph = ipv6_hdr(skb);
iph              1026 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip_ipv6(net, nskb, &iph->saddr, &iph->daddr);
iph                20 net/netfilter/nft_chain_route.c 	const struct iphdr *iph;
iph                32 net/netfilter/nft_chain_route.c 	iph = ip_hdr(skb);
iph                33 net/netfilter/nft_chain_route.c 	saddr = iph->saddr;
iph                34 net/netfilter/nft_chain_route.c 	daddr = iph->daddr;
iph                35 net/netfilter/nft_chain_route.c 	tos = iph->tos;
iph                39 net/netfilter/nft_chain_route.c 		iph = ip_hdr(skb);
iph                41 net/netfilter/nft_chain_route.c 		if (iph->saddr != saddr ||
iph                42 net/netfilter/nft_chain_route.c 		    iph->daddr != daddr ||
iph                44 net/netfilter/nft_chain_route.c 		    iph->tos != tos) {
iph                75 net/netfilter/nft_exthdr.c 	struct iphdr *iph, _iph;
iph                81 net/netfilter/nft_exthdr.c 	iph = skb_header_pointer(skb, 0, sizeof(_iph), &_iph);
iph                82 net/netfilter/nft_exthdr.c 	if (!iph)
iph                86 net/netfilter/nft_exthdr.c 	optlen = iph->ihl * 4 - (int)sizeof(struct iphdr);
iph               100 net/netfilter/nft_fwd_netdev.c 		struct iphdr *iph;
iph               106 net/netfilter/nft_fwd_netdev.c 		if (skb_try_make_writable(skb, sizeof(*iph))) {
iph               110 net/netfilter/nft_fwd_netdev.c 		iph = ip_hdr(skb);
iph               111 net/netfilter/nft_fwd_netdev.c 		ip_decrease_ttl(iph);
iph               180 net/netfilter/nft_meta.c 				struct iphdr *iph, _iph;
iph               182 net/netfilter/nft_meta.c 				iph = skb_header_pointer(skb, noff,
iph               184 net/netfilter/nft_meta.c 				if (!iph)
iph               187 net/netfilter/nft_meta.c 				if (ipv4_is_multicast(iph->daddr))
iph                27 net/netfilter/nft_tproxy.c 	const struct iphdr *iph = ip_hdr(skb);
iph                43 net/netfilter/nft_tproxy.c 	sk = nf_tproxy_get_sock_v4(nft_net(pkt), skb, iph->protocol,
iph                44 net/netfilter/nft_tproxy.c 				   iph->saddr, iph->daddr,
iph                50 net/netfilter/nft_tproxy.c 	taddr = nf_tproxy_laddr4(skb, taddr, iph->daddr);
iph                65 net/netfilter/nft_tproxy.c 		sk = nf_tproxy_get_sock_v4(nft_net(pkt), skb, iph->protocol,
iph                66 net/netfilter/nft_tproxy.c 					   iph->saddr, taddr,
iph                84 net/netfilter/nft_tproxy.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               111 net/netfilter/nft_tproxy.c 				   &iph->saddr, &iph->daddr,
iph               117 net/netfilter/nft_tproxy.c 	taddr = *nf_tproxy_laddr6(skb, &taddr, &iph->daddr);
iph               137 net/netfilter/nft_tproxy.c 					   l4proto, &iph->saddr, &taddr,
iph                13 net/netfilter/utils.c 	const struct iphdr *iph = ip_hdr(skb);
iph                22 net/netfilter/utils.c 		    !csum_tcpudp_magic(iph->saddr, iph->daddr,
iph                33 net/netfilter/utils.c 			skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr,
iph                47 net/netfilter/utils.c 	const struct iphdr *iph = ip_hdr(skb);
iph                56 net/netfilter/utils.c 		skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol,
iph               188 net/netfilter/utils.c 		const struct iphdr *iph = ip_hdr(skb);
iph               190 net/netfilter/utils.c 		if (!(iph->tos == rt_info->tos &&
iph               192 net/netfilter/utils.c 		      iph->daddr == rt_info->daddr &&
iph               193 net/netfilter/utils.c 		      iph->saddr == rt_info->saddr))
iph                75 net/netfilter/xt_DSCP.c 	struct iphdr *iph = ip_hdr(skb);
iph                78 net/netfilter/xt_DSCP.c 	orig = ipv4_get_dsfield(iph);
iph                84 net/netfilter/xt_DSCP.c 		iph = ip_hdr(skb);
iph                85 net/netfilter/xt_DSCP.c 		ipv4_change_dsfield(iph, 0, nv);
iph                95 net/netfilter/xt_DSCP.c 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph                98 net/netfilter/xt_DSCP.c 	orig = ipv6_get_dsfield(iph);
iph               104 net/netfilter/xt_DSCP.c 		iph = ipv6_hdr(skb);
iph               105 net/netfilter/xt_DSCP.c 		ipv6_change_dsfield(iph, 0, nv);
iph                28 net/netfilter/xt_HL.c 	struct iphdr *iph;
iph                32 net/netfilter/xt_HL.c 	if (skb_ensure_writable(skb, sizeof(*iph)))
iph                35 net/netfilter/xt_HL.c 	iph = ip_hdr(skb);
iph                42 net/netfilter/xt_HL.c 		new_ttl = iph->ttl + info->ttl;
iph                47 net/netfilter/xt_HL.c 		new_ttl = iph->ttl - info->ttl;
iph                52 net/netfilter/xt_HL.c 		new_ttl = iph->ttl;
iph                56 net/netfilter/xt_HL.c 	if (new_ttl != iph->ttl) {
iph                57 net/netfilter/xt_HL.c 		csum_replace2(&iph->check, htons(iph->ttl << 8),
iph                59 net/netfilter/xt_HL.c 		iph->ttl = new_ttl;
iph               198 net/netfilter/xt_TCPMSS.c 	struct iphdr *iph = ip_hdr(skb);
iph               204 net/netfilter/xt_TCPMSS.c 				   iph->ihl * 4,
iph               205 net/netfilter/xt_TCPMSS.c 				   sizeof(*iph) + sizeof(struct tcphdr));
iph               209 net/netfilter/xt_TCPMSS.c 		iph = ip_hdr(skb);
iph               210 net/netfilter/xt_TCPMSS.c 		newlen = htons(ntohs(iph->tot_len) + ret);
iph               211 net/netfilter/xt_TCPMSS.c 		csum_replace2(&iph->check, iph->tot_len, newlen);
iph               212 net/netfilter/xt_TCPMSS.c 		iph->tot_len = newlen;
iph                39 net/netfilter/xt_TPROXY.c 	const struct iphdr *iph = ip_hdr(skb);
iph                51 net/netfilter/xt_TPROXY.c 	sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
iph                52 net/netfilter/xt_TPROXY.c 				   iph->saddr, iph->daddr,
iph                56 net/netfilter/xt_TPROXY.c 	laddr = nf_tproxy_laddr4(skb, laddr, iph->daddr);
iph                67 net/netfilter/xt_TPROXY.c 		sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
iph                68 net/netfilter/xt_TPROXY.c 					   iph->saddr, laddr,
iph                79 net/netfilter/xt_TPROXY.c 			 iph->protocol, &iph->daddr, ntohs(hp->dest),
iph                87 net/netfilter/xt_TPROXY.c 		 iph->protocol, &iph->saddr, ntohs(hp->source),
iph                88 net/netfilter/xt_TPROXY.c 		 &iph->daddr, ntohs(hp->dest), skb->mark);
iph               115 net/netfilter/xt_TPROXY.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               141 net/netfilter/xt_TPROXY.c 				   &iph->saddr, &iph->daddr,
iph               145 net/netfilter/xt_TPROXY.c 	laddr = nf_tproxy_laddr6(skb, &tgi->laddr.in6, &iph->daddr);
iph               162 net/netfilter/xt_TPROXY.c 					   tproto, &iph->saddr, laddr,
iph               173 net/netfilter/xt_TPROXY.c 			 tproto, &iph->saddr, ntohs(hp->source),
iph               181 net/netfilter/xt_TPROXY.c 		 tproto, &iph->saddr, ntohs(hp->source),
iph               182 net/netfilter/xt_TPROXY.c 		 &iph->daddr, ntohs(hp->dest), skb->mark);
iph                91 net/netfilter/xt_addrtype.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph                95 net/netfilter/xt_addrtype.c 		ret &= match_type6(net, dev, &iph->saddr, info->source) ^
iph                98 net/netfilter/xt_addrtype.c 		ret &= match_type6(net, dev, &iph->daddr, info->dest) ^
iph               115 net/netfilter/xt_addrtype.c 	const struct iphdr *iph = ip_hdr(skb);
iph               119 net/netfilter/xt_addrtype.c 		ret &= match_type(net, NULL, iph->saddr, info->source) ^
iph               122 net/netfilter/xt_addrtype.c 		ret &= match_type(net, NULL, iph->daddr, info->dest) ^
iph               133 net/netfilter/xt_addrtype.c 	const struct iphdr *iph;
iph               146 net/netfilter/xt_addrtype.c 	iph = ip_hdr(skb);
iph               148 net/netfilter/xt_addrtype.c 		ret &= match_type(net, dev, iph->saddr, info->source) ^
iph               151 net/netfilter/xt_addrtype.c 		ret &= match_type(net, dev, iph->daddr, info->dest) ^
iph                52 net/netfilter/xt_connlimit.c 		const struct ipv6hdr *iph = ipv6_hdr(skb);
iph                57 net/netfilter/xt_connlimit.c 		       &iph->daddr : &iph->saddr, sizeof(addr.ip6));
iph                64 net/netfilter/xt_connlimit.c 		const struct iphdr *iph = ip_hdr(skb);
iph                66 net/netfilter/xt_connlimit.c 			  iph->daddr : iph->saddr;
iph                20 net/netfilter/xt_iprange.c 	const struct iphdr *iph = ip_hdr(skb);
iph                24 net/netfilter/xt_iprange.c 		m  = ntohl(iph->saddr) < ntohl(info->src_min.ip);
iph                25 net/netfilter/xt_iprange.c 		m |= ntohl(iph->saddr) > ntohl(info->src_max.ip);
iph                29 net/netfilter/xt_iprange.c 			         &iph->saddr,
iph                37 net/netfilter/xt_iprange.c 		m  = ntohl(iph->daddr) < ntohl(info->dst_min.ip);
iph                38 net/netfilter/xt_iprange.c 		m |= ntohl(iph->daddr) > ntohl(info->dst_max.ip);
iph                42 net/netfilter/xt_iprange.c 			         &iph->daddr,
iph                69 net/netfilter/xt_iprange.c 	const struct ipv6hdr *iph = ipv6_hdr(skb);
iph                73 net/netfilter/xt_iprange.c 		m  = iprange_ipv6_lt(&iph->saddr, &info->src_min.in6);
iph                74 net/netfilter/xt_iprange.c 		m |= iprange_ipv6_lt(&info->src_max.in6, &iph->saddr);
iph                78 net/netfilter/xt_iprange.c 				 &iph->saddr,
iph                86 net/netfilter/xt_iprange.c 		m  = iprange_ipv6_lt(&iph->daddr, &info->dst_min.in6);
iph                87 net/netfilter/xt_iprange.c 		m |= iprange_ipv6_lt(&info->dst_max.in6, &iph->daddr);
iph                91 net/netfilter/xt_iprange.c 				 &iph->daddr,
iph                55 net/netfilter/xt_ipvs.c 	struct ip_vs_iphdr iph;
iph                72 net/netfilter/xt_ipvs.c 	ip_vs_fill_iph_skb(family, skb, true, &iph);
iph                75 net/netfilter/xt_ipvs.c 		if ((iph.protocol == data->l4proto) ^
iph                81 net/netfilter/xt_ipvs.c 	pp = ip_vs_proto_get(iph.protocol);
iph                90 net/netfilter/xt_ipvs.c 	cp = pp->conn_out_get(ipvs, family, skb, &iph);
iph               172 net/netfilter/xt_l2tp.c 	struct iphdr *iph = ip_hdr(skb);
iph               173 net/netfilter/xt_l2tp.c 	u8 ipproto = iph->protocol;
iph               245 net/netfilter/xt_recent.c 		const struct iphdr *iph = ip_hdr(skb);
iph               248 net/netfilter/xt_recent.c 			addr.ip = iph->daddr;
iph               250 net/netfilter/xt_recent.c 			addr.ip = iph->saddr;
iph               252 net/netfilter/xt_recent.c 		ttl = iph->ttl;
iph               254 net/netfilter/xt_recent.c 		const struct ipv6hdr *iph = ipv6_hdr(skb);
iph               257 net/netfilter/xt_recent.c 			memcpy(&addr.in6, &iph->daddr, sizeof(addr.in6));
iph               259 net/netfilter/xt_recent.c 			memcpy(&addr.in6, &iph->saddr, sizeof(addr.in6));
iph               261 net/netfilter/xt_recent.c 		ttl = iph->hop_limit;
iph               211 net/sched/act_csum.c 	const struct iphdr *iph;
iph               220 net/sched/act_csum.c 	iph = ip_hdr(skb);
iph               224 net/sched/act_csum.c 				   iph->saddr, iph->daddr, skb->csum);
iph               260 net/sched/act_csum.c 	const struct iphdr *iph;
iph               277 net/sched/act_csum.c 	iph = ip_hdr(skb);
iph               298 net/sched/act_csum.c 		udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr,
iph               299 net/sched/act_csum.c 						ul, iph->protocol,
iph               389 net/sched/act_csum.c 	const struct iphdr *iph;
iph               394 net/sched/act_csum.c 	if (!pskb_may_pull(skb, sizeof(*iph) + ntkoff))
iph               397 net/sched/act_csum.c 	iph = ip_hdr(skb);
iph               399 net/sched/act_csum.c 	switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) {
iph               402 net/sched/act_csum.c 			if (!tcf_csum_ipv4_icmp(skb, iph->ihl * 4,
iph               403 net/sched/act_csum.c 						ntohs(iph->tot_len)))
iph               408 net/sched/act_csum.c 			if (!tcf_csum_ipv4_igmp(skb, iph->ihl * 4,
iph               409 net/sched/act_csum.c 						ntohs(iph->tot_len)))
iph               414 net/sched/act_csum.c 			if (!tcf_csum_ipv4_tcp(skb, iph->ihl * 4,
iph               415 net/sched/act_csum.c 					       ntohs(iph->tot_len)))
iph               420 net/sched/act_csum.c 			if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4,
iph               421 net/sched/act_csum.c 					       ntohs(iph->tot_len), 0))
iph               426 net/sched/act_csum.c 			if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4,
iph               427 net/sched/act_csum.c 					       ntohs(iph->tot_len), 1))
iph               432 net/sched/act_csum.c 		    !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len)))
iph               438 net/sched/act_csum.c 		if (skb_try_make_writable(skb, sizeof(*iph) + ntkoff))
iph               109 net/sched/act_nat.c 	struct iphdr *iph;
iph               136 net/sched/act_nat.c 	if (!pskb_may_pull(skb, sizeof(*iph) + noff))
iph               139 net/sched/act_nat.c 	iph = ip_hdr(skb);
iph               142 net/sched/act_nat.c 		addr = iph->saddr;
iph               144 net/sched/act_nat.c 		addr = iph->daddr;
iph               147 net/sched/act_nat.c 		if (skb_try_make_writable(skb, sizeof(*iph) + noff))
iph               154 net/sched/act_nat.c 		iph = ip_hdr(skb);
iph               156 net/sched/act_nat.c 			iph->saddr = new_addr;
iph               158 net/sched/act_nat.c 			iph->daddr = new_addr;
iph               160 net/sched/act_nat.c 		csum_replace4(&iph->check, addr, new_addr);
iph               161 net/sched/act_nat.c 	} else if ((iph->frag_off & htons(IP_OFFSET)) ||
iph               162 net/sched/act_nat.c 		   iph->protocol != IPPROTO_ICMP) {
iph               166 net/sched/act_nat.c 	ihl = iph->ihl * 4;
iph               169 net/sched/act_nat.c 	switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) {
iph               214 net/sched/act_nat.c 		if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + sizeof(*iph) +
iph               219 net/sched/act_nat.c 		iph = (void *)(icmph + 1);
iph               221 net/sched/act_nat.c 			addr = iph->daddr;
iph               223 net/sched/act_nat.c 			addr = iph->saddr;
iph               229 net/sched/act_nat.c 					  sizeof(*iph) + noff))
iph               233 net/sched/act_nat.c 		iph = (void *)(icmph + 1);
iph               240 net/sched/act_nat.c 			iph->daddr = new_addr;
iph               242 net/sched/act_nat.c 			iph->saddr = new_addr;
iph               844 net/sched/sch_cake.c 	struct iphdr *iph;
iph               846 net/sched/sch_cake.c 	iph = skb_header_pointer(skb, offset, sizeof(struct iphdr), buf);
iph               848 net/sched/sch_cake.c 	if (!iph)
iph               851 net/sched/sch_cake.c 	if (iph->version == 4 && iph->protocol == IPPROTO_IPV6)
iph               852 net/sched/sch_cake.c 		return skb_header_pointer(skb, offset + iph->ihl * 4,
iph               855 net/sched/sch_cake.c 	else if (iph->version == 4)
iph               856 net/sched/sch_cake.c 		return iph;
iph               858 net/sched/sch_cake.c 	else if (iph->version == 6)
iph               871 net/sched/sch_cake.c 	const struct iphdr *iph;
iph               881 net/sched/sch_cake.c 		iph = (struct iphdr *)ipv6h;
iph               882 net/sched/sch_cake.c 		offset += iph->ihl * 4;
iph               887 net/sched/sch_cake.c 		if (iph->protocol == IPPROTO_IPV6) {
iph               896 net/sched/sch_cake.c 		} else if (iph->protocol != IPPROTO_TCP) {
iph              1120 net/sched/sch_cake.c 	const struct iphdr *iph, *iph_check;
iph              1134 net/sched/sch_cake.c 	iph = cake_get_iphdr(skb, &_iph);
iph              1162 net/sched/sch_cake.c 		if (!tcph_check || iph->version != iph_check->version ||
iph              1168 net/sched/sch_cake.c 			if (iph_check->saddr != iph->saddr ||
iph              1169 net/sched/sch_cake.c 			    iph_check->daddr != iph->daddr)
iph              1175 net/sched/sch_cake.c 			ipv6h = (struct ipv6hdr *)iph;
iph               297 net/sched/sch_taprio.c 	const struct iphdr *iph;
iph               305 net/sched/sch_taprio.c 		iph = (struct iphdr *)ipv6h;
iph               306 net/sched/sch_taprio.c 		offset += iph->ihl * 4;
iph               311 net/sched/sch_taprio.c 		if (iph->protocol == IPPROTO_IPV6) {
iph               317 net/sched/sch_taprio.c 		} else if (iph->protocol != IPPROTO_TCP) {
iph               573 net/sctp/input.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               574 net/sctp/input.c 	const int ihlen = iph->ihl * 4;
iph               172 net/tls/tls_device_fallback.c 	const struct iphdr *iph;
iph               189 net/tls/tls_device_fallback.c 		iph = ip_hdr(skb);
iph               190 net/tls/tls_device_fallback.c 		th->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, datalen,
iph                11 net/xfrm/xfrm_inout.h 	struct ipv6hdr *iph = ipv6_hdr(skb);
iph                13 net/xfrm/xfrm_inout.h 	iph->version = 6;
iph                15 net/xfrm/xfrm_inout.h 	memcpy(iph->flow_lbl, XFRM_MODE_SKB_CB(skb)->flow_lbl,
iph                16 net/xfrm/xfrm_inout.h 	       sizeof(iph->flow_lbl));
iph                17 net/xfrm/xfrm_inout.h 	iph->nexthdr = XFRM_MODE_SKB_CB(skb)->protocol;
iph                19 net/xfrm/xfrm_inout.h 	ipv6_change_dsfield(iph, 0, XFRM_MODE_SKB_CB(skb)->tos);
iph                20 net/xfrm/xfrm_inout.h 	iph->hop_limit = XFRM_MODE_SKB_CB(skb)->ttl;
iph                25 net/xfrm/xfrm_inout.h 	struct iphdr *iph = ip_hdr(skb);
iph                27 net/xfrm/xfrm_inout.h 	iph->ihl = 5;
iph                28 net/xfrm/xfrm_inout.h 	iph->version = 4;
iph                30 net/xfrm/xfrm_inout.h 	iph->protocol = XFRM_MODE_SKB_CB(skb)->protocol;
iph                31 net/xfrm/xfrm_inout.h 	iph->tos = XFRM_MODE_SKB_CB(skb)->tos;
iph                33 net/xfrm/xfrm_inout.h 	iph->id = XFRM_MODE_SKB_CB(skb)->id;
iph                34 net/xfrm/xfrm_inout.h 	iph->frag_off = XFRM_MODE_SKB_CB(skb)->frag_off;
iph                35 net/xfrm/xfrm_inout.h 	iph->ttl = XFRM_MODE_SKB_CB(skb)->ttl;
iph               173 net/xfrm/xfrm_input.c 	struct iphdr *iph;
iph               198 net/xfrm/xfrm_input.c 	skb_push(skb, sizeof(*iph));
iph               204 net/xfrm/xfrm_input.c 	iph = ip_hdr(skb);
iph               206 net/xfrm/xfrm_input.c 	iph->ihl += optlen / 4;
iph               207 net/xfrm/xfrm_input.c 	iph->tot_len = htons(skb->len);
iph               208 net/xfrm/xfrm_input.c 	iph->daddr = x->sel.daddr.a4;
iph               209 net/xfrm/xfrm_input.c 	iph->saddr = x->sel.saddr.a4;
iph               210 net/xfrm/xfrm_input.c 	iph->check = 0;
iph               211 net/xfrm/xfrm_input.c 	iph->check = ip_fast_csum(skb_network_header(skb), iph->ihl);
iph               402 net/xfrm/xfrm_interface.c 	const struct iphdr *iph = (const struct iphdr *)skb->data;
iph               404 net/xfrm/xfrm_interface.c 	int protocol = iph->protocol;
iph               414 net/xfrm/xfrm_interface.c 		esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2));
iph               418 net/xfrm/xfrm_interface.c 		ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2));
iph               422 net/xfrm/xfrm_interface.c 		ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2));
iph               439 net/xfrm/xfrm_interface.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
iph               462 net/xfrm/xfrm_interface.c 	const struct ipv6hdr *iph = (const struct ipv6hdr *)skb->data;
iph               464 net/xfrm/xfrm_interface.c 	int protocol = iph->nexthdr;
iph               493 net/xfrm/xfrm_interface.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
iph                60 net/xfrm/xfrm_output.c 	struct iphdr *iph = ip_hdr(skb);
iph                61 net/xfrm/xfrm_output.c 	int ihl = iph->ihl * 4;
iph                70 net/xfrm/xfrm_output.c 	memmove(skb_network_header(skb), iph, ihl);
iph                82 net/xfrm/xfrm_output.c 	struct ipv6hdr *iph;
iph                86 net/xfrm/xfrm_output.c 	iph = ipv6_hdr(skb);
iph                97 net/xfrm/xfrm_output.c 	memmove(ipv6_hdr(skb), iph, hdr_len);
iph               113 net/xfrm/xfrm_output.c 	struct ipv6hdr *iph;
iph               117 net/xfrm/xfrm_output.c 	iph = ipv6_hdr(skb);
iph               127 net/xfrm/xfrm_output.c 	memmove(ipv6_hdr(skb), iph, hdr_len);
iph              3265 net/xfrm/xfrm_policy.c 	const struct iphdr *iph = ip_hdr(skb);
iph              3266 net/xfrm/xfrm_policy.c 	int ihl = iph->ihl;
iph              3278 net/xfrm/xfrm_policy.c 	fl4->flowi4_proto = iph->protocol;
iph              3279 net/xfrm/xfrm_policy.c 	fl4->daddr = reverse ? iph->saddr : iph->daddr;
iph              3280 net/xfrm/xfrm_policy.c 	fl4->saddr = reverse ? iph->daddr : iph->saddr;
iph              3281 net/xfrm/xfrm_policy.c 	fl4->flowi4_tos = iph->tos;
iph              3283 net/xfrm/xfrm_policy.c 	if (!ip_is_fragment(iph)) {
iph              3284 net/xfrm/xfrm_policy.c 		switch (iph->protocol) {
iph               116 samples/bpf/hbm_kern.h 	struct iphdr iph;
iph               121 samples/bpf/hbm_kern.h 	bpf_skb_load_bytes(skb, 0, &iph, 12);
iph               122 samples/bpf/hbm_kern.h 	if (iph.version == 6) {
iph               123 samples/bpf/hbm_kern.h 		ip6h = (struct ipv6hdr *)&iph;
iph               127 samples/bpf/hbm_kern.h 	} else if (iph.version == 4) {
iph               129 samples/bpf/hbm_kern.h 		pkti->is_tcp = (iph.protocol == 6);
iph               130 samples/bpf/hbm_kern.h 		pkti->ecn = iph.tos & INET_ECN_MASK;
iph                31 samples/bpf/parse_simple.c 	struct iphdr *iph = data + sizeof(*eth);
iph                32 samples/bpf/parse_simple.c 	struct udphdr *udp = data + sizeof(*eth) + sizeof(*iph);
iph                36 samples/bpf/parse_simple.c 	if (data + sizeof(*eth) + sizeof(*iph) + sizeof(*udp) > data_end)
iph                41 samples/bpf/parse_simple.c 	if (iph->protocol != IPPROTO_UDP || iph->ihl != 5)
iph                43 samples/bpf/parse_simple.c 	if (ip_is_fragment(iph))
iph                53 samples/bpf/parse_varlen.c 	struct iphdr *iph;
iph                56 samples/bpf/parse_varlen.c 	iph = data + nh_off;
iph                57 samples/bpf/parse_varlen.c 	if (iph + 1 > data_end)
iph                60 samples/bpf/parse_varlen.c 	if (ip_is_fragment(iph))
iph                62 samples/bpf/parse_varlen.c 	ihl_len = iph->ihl * 4;
iph                64 samples/bpf/parse_varlen.c 	if (iph->protocol == IPPROTO_IPIP) {
iph                65 samples/bpf/parse_varlen.c 		iph = data + nh_off + ihl_len;
iph                66 samples/bpf/parse_varlen.c 		if (iph + 1 > data_end)
iph                68 samples/bpf/parse_varlen.c 		ihl_len += iph->ihl * 4;
iph                71 samples/bpf/parse_varlen.c 	if (iph->protocol == IPPROTO_TCP)
iph                73 samples/bpf/parse_varlen.c 	else if (iph->protocol == IPPROTO_UDP)
iph                81 samples/bpf/parse_varlen.c 	struct iphdr *iph;
iph                92 samples/bpf/parse_varlen.c 		iph = data + nh_off + ihl_len;
iph                93 samples/bpf/parse_varlen.c 		if (iph + 1 > data_end)
iph                95 samples/bpf/parse_varlen.c 		ihl_len += iph->ihl * 4;
iph                96 samples/bpf/parse_varlen.c 		nexthdr = iph->protocol;
iph                78 samples/bpf/tc_l2_redirect_kern.c 		struct iphdr *iph = data + sizeof(*eth);
iph                80 samples/bpf/tc_l2_redirect_kern.c 		if (data + sizeof(*eth) + sizeof(*iph) > data_end)
iph                83 samples/bpf/tc_l2_redirect_kern.c 		if (iph->protocol != IPPROTO_IPIP)
iph                87 samples/bpf/tc_l2_redirect_kern.c 				 _htonl(iph->daddr));
iph               129 samples/bpf/tc_l2_redirect_kern.c 		struct iphdr *iph = data + sizeof(*eth);
iph               130 samples/bpf/tc_l2_redirect_kern.c 		__be32 daddr = iph->daddr;
iph               132 samples/bpf/tc_l2_redirect_kern.c 		if (data + sizeof(*eth) + sizeof(*iph) > data_end)
iph               168 samples/bpf/tc_l2_redirect_kern.c 		struct iphdr *iph = data + sizeof(*eth);
iph               170 samples/bpf/tc_l2_redirect_kern.c 		if (data + sizeof(*eth) + sizeof(*iph) > data_end)
iph               173 samples/bpf/tc_l2_redirect_kern.c 		if (!is_vip_addr(eth->h_proto, iph->daddr))
iph               176 samples/bpf/tc_l2_redirect_kern.c 		bpf_trace_printk(fmt4, sizeof(fmt4), _htonl(iph->daddr),
iph               217 samples/bpf/tc_l2_redirect_kern.c 		struct iphdr *iph = data + sizeof(*eth);
iph               219 samples/bpf/tc_l2_redirect_kern.c 		if (data + sizeof(*eth) + sizeof(*iph) > data_end)
iph               222 samples/bpf/tc_l2_redirect_kern.c 		if (is_vip_addr(eth->h_proto, iph->daddr))
iph                72 samples/bpf/test_lwt_bpf.c 	struct iphdr *iph = data;
iph                74 samples/bpf/test_lwt_bpf.c 	if (data + sizeof(*iph) > data_end) {
iph                79 samples/bpf/test_lwt_bpf.c 	printk("src: %x dst: %x\n", iph->saddr, iph->daddr);
iph                26 samples/bpf/xdp1_kern.c 	struct iphdr *iph = data + nh_off;
iph                28 samples/bpf/xdp1_kern.c 	if (iph + 1 > data_end)
iph                30 samples/bpf/xdp1_kern.c 	return iph->protocol;
iph                42 samples/bpf/xdp2_kern.c 	struct iphdr *iph = data + nh_off;
iph                44 samples/bpf/xdp2_kern.c 	if (iph + 1 > data_end)
iph                46 samples/bpf/xdp2_kern.c 	return iph->protocol;
iph                79 samples/bpf/xdp_adjust_tail_kern.c 	struct iphdr *iph, *orig_iph;
iph                88 samples/bpf/xdp_adjust_tail_kern.c 	iph = data + off;
iph                99 samples/bpf/xdp_adjust_tail_kern.c 	iph->ttl = DEFAULT_TTL;
iph               100 samples/bpf/xdp_adjust_tail_kern.c 	iph->daddr = orig_iph->saddr;
iph               101 samples/bpf/xdp_adjust_tail_kern.c 	iph->saddr = orig_iph->daddr;
iph               102 samples/bpf/xdp_adjust_tail_kern.c 	iph->version = 4;
iph               103 samples/bpf/xdp_adjust_tail_kern.c 	iph->ihl = 5;
iph               104 samples/bpf/xdp_adjust_tail_kern.c 	iph->protocol = IPPROTO_ICMP;
iph               105 samples/bpf/xdp_adjust_tail_kern.c 	iph->tos = 0;
iph               106 samples/bpf/xdp_adjust_tail_kern.c 	iph->tot_len = htons(
iph               108 samples/bpf/xdp_adjust_tail_kern.c 	iph->check = 0;
iph               110 samples/bpf/xdp_adjust_tail_kern.c 	ipv4_csum(iph, sizeof(struct iphdr), &csum);
iph               111 samples/bpf/xdp_adjust_tail_kern.c 	iph->check = csum;
iph                34 samples/bpf/xdp_fwd_kern.c static __always_inline int ip_decrease_ttl(struct iphdr *iph)
iph                36 samples/bpf/xdp_fwd_kern.c 	u32 check = (__force u32)iph->check;
iph                39 samples/bpf/xdp_fwd_kern.c 	iph->check = (__force __sum16)(check + (check >= 0xFFFF));
iph                40 samples/bpf/xdp_fwd_kern.c 	return --iph->ttl;
iph                50 samples/bpf/xdp_fwd_kern.c 	struct iphdr *iph;
iph                63 samples/bpf/xdp_fwd_kern.c 		iph = data + nh_off;
iph                65 samples/bpf/xdp_fwd_kern.c 		if (iph + 1 > data_end)
iph                68 samples/bpf/xdp_fwd_kern.c 		if (iph->ttl <= 1)
iph                72 samples/bpf/xdp_fwd_kern.c 		fib_params.tos		= iph->tos;
iph                73 samples/bpf/xdp_fwd_kern.c 		fib_params.l4_protocol	= iph->protocol;
iph                76 samples/bpf/xdp_fwd_kern.c 		fib_params.tot_len	= ntohs(iph->tot_len);
iph                77 samples/bpf/xdp_fwd_kern.c 		fib_params.ipv4_src	= iph->saddr;
iph                78 samples/bpf/xdp_fwd_kern.c 		fib_params.ipv4_dst	= iph->daddr;
iph               134 samples/bpf/xdp_fwd_kern.c 			ip_decrease_ttl(iph);
iph               159 samples/bpf/xdp_redirect_cpu_kern.c 	struct iphdr *iph = data + nh_off;
iph               163 samples/bpf/xdp_redirect_cpu_kern.c 	if (iph + 1 > data_end)
iph               165 samples/bpf/xdp_redirect_cpu_kern.c 	if (!(iph->protocol == IPPROTO_UDP))
iph               168 samples/bpf/xdp_redirect_cpu_kern.c 	udph = (void *)(iph + 1);
iph               181 samples/bpf/xdp_redirect_cpu_kern.c 	struct iphdr *iph = data + nh_off;
iph               183 samples/bpf/xdp_redirect_cpu_kern.c 	if (iph + 1 > data_end)
iph               185 samples/bpf/xdp_redirect_cpu_kern.c 	return iph->protocol;
iph               473 samples/bpf/xdp_redirect_cpu_kern.c 	struct iphdr *iph = data + nh_off;
iph               476 samples/bpf/xdp_redirect_cpu_kern.c 	if (iph + 1 > data_end)
iph               479 samples/bpf/xdp_redirect_cpu_kern.c 	cpu_hash = iph->saddr + iph->daddr;
iph               480 samples/bpf/xdp_redirect_cpu_kern.c 	cpu_hash = SuperFastHash((char *)&cpu_hash, 4, INITVAL + iph->protocol);
iph                99 samples/bpf/xdp_router_ipv4_kern.c 	struct iphdr *iph = data + nh_off;
iph               101 samples/bpf/xdp_router_ipv4_kern.c 	if (iph + 1 > data_end)
iph               103 samples/bpf/xdp_router_ipv4_kern.c 	*src = iph->saddr;
iph               104 samples/bpf/xdp_router_ipv4_kern.c 	*dest = iph->daddr;
iph               105 samples/bpf/xdp_router_ipv4_kern.c 	return iph->protocol;
iph                84 samples/bpf/xdp_tx_iptunnel_kern.c 	struct iphdr *iph = data + sizeof(struct ethhdr);
iph                92 samples/bpf/xdp_tx_iptunnel_kern.c 	if (iph + 1 > data_end)
iph                95 samples/bpf/xdp_tx_iptunnel_kern.c 	dport = get_dport(iph + 1, data_end, iph->protocol);
iph                99 samples/bpf/xdp_tx_iptunnel_kern.c 	vip.protocol = iph->protocol;
iph               101 samples/bpf/xdp_tx_iptunnel_kern.c 	vip.daddr.v4 = iph->daddr;
iph               103 samples/bpf/xdp_tx_iptunnel_kern.c 	payload_len = ntohs(iph->tot_len);
iph               119 samples/bpf/xdp_tx_iptunnel_kern.c 	iph = data + sizeof(*new_eth);
iph               120 samples/bpf/xdp_tx_iptunnel_kern.c 	old_eth = data + sizeof(*iph);
iph               124 samples/bpf/xdp_tx_iptunnel_kern.c 	    iph + 1 > data_end)
iph               129 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->version = 4;
iph               130 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->ihl = sizeof(*iph) >> 2;
iph               131 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->frag_off =	0;
iph               132 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->protocol = IPPROTO_IPIP;
iph               133 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->check = 0;
iph               134 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->tos = 0;
iph               135 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->tot_len = htons(payload_len + sizeof(*iph));
iph               136 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->daddr = tnl->daddr.v4;
iph               137 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->saddr = tnl->saddr.v4;
iph               138 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->ttl = 8;
iph               140 samples/bpf/xdp_tx_iptunnel_kern.c 	next_iph_u16 = (u16 *)iph;
iph               142 samples/bpf/xdp_tx_iptunnel_kern.c 	for (i = 0; i < sizeof(*iph) >> 1; i++)
iph               145 samples/bpf/xdp_tx_iptunnel_kern.c 	iph->check = ~((csum & 0xffff) + (csum >> 16));
iph                40 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 	struct iphdr iph;
iph                46 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 	struct iphdr iph;
iph                55 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 	struct iphdr iph;
iph                61 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 	struct ipv6hdr iph;
iph                67 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 	struct ipv6hdr iph;
iph                83 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 	struct ipv6hdr iph;
iph               108 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.ihl = 5,
iph               109 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.protocol = IPPROTO_TCP,
iph               110 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
iph               129 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.nexthdr = IPPROTO_TCP,
iph               130 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
iph               150 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.ihl = 5,
iph               151 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.protocol = IPPROTO_TCP,
iph               152 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
iph               173 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.nexthdr = IPPROTO_TCP,
iph               174 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
iph               194 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.ihl = 5,
iph               195 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.protocol = IPPROTO_TCP,
iph               196 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
iph               197 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.frag_off = __bpf_constant_htons(IP_MF),
iph               220 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.ihl = 5,
iph               221 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.protocol = IPPROTO_TCP,
iph               222 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
iph               223 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.frag_off = __bpf_constant_htons(IP_MF),
iph               242 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.nexthdr = IPPROTO_FRAGMENT,
iph               243 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
iph               268 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.nexthdr = IPPROTO_FRAGMENT,
iph               269 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
iph               290 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.nexthdr = IPPROTO_TCP,
iph               291 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
iph               292 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.flow_lbl = { 0xb, 0xee, 0xef },
iph               312 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.nexthdr = IPPROTO_TCP,
iph               313 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
iph               314 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.flow_lbl = { 0xb, 0xee, 0xef },
iph               334 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.ihl = 5,
iph               335 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.protocol = IPPROTO_IPIP,
iph               336 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
iph               362 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.ihl = 5,
iph               363 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.protocol = IPPROTO_IPIP,
iph               364 tools/testing/selftests/bpf/prog_tests/flow_dissector.c 			.iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
iph                16 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c 	struct iphdr *iph = (void *)buf + sizeof(struct ethhdr);
iph                54 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c 			pkt_v4.iph.saddr = vals[i] * 5;
iph                57 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c 			pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5;
iph                63 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c 		    iph->daddr != val)
iph                67 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c 	CHECK(err || retval || size != sizeof(pkt_v4) || iph->daddr != val,
iph                70 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c 	      err, errno, retval, size, iph->daddr);
iph                91 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c 	pkt_v4.iph.saddr = 0;
iph                14 tools/testing/selftests/bpf/prog_tests/xdp.c 	struct iphdr *iph = (void *)buf + sizeof(struct ethhdr);
iph                32 tools/testing/selftests/bpf/prog_tests/xdp.c 	      iph->protocol != IPPROTO_IPIP, "ipv4",
iph               266 tools/testing/selftests/bpf/progs/bpf_flow.c 	struct iphdr *iph, _iph;
iph               269 tools/testing/selftests/bpf/progs/bpf_flow.c 	iph = bpf_flow_dissect_get_header(skb, sizeof(*iph), &_iph);
iph               270 tools/testing/selftests/bpf/progs/bpf_flow.c 	if (!iph)
iph               274 tools/testing/selftests/bpf/progs/bpf_flow.c 	if (iph->ihl < 5)
iph               278 tools/testing/selftests/bpf/progs/bpf_flow.c 	keys->ipv4_src = iph->saddr;
iph               279 tools/testing/selftests/bpf/progs/bpf_flow.c 	keys->ipv4_dst = iph->daddr;
iph               280 tools/testing/selftests/bpf/progs/bpf_flow.c 	keys->ip_proto = iph->protocol;
iph               282 tools/testing/selftests/bpf/progs/bpf_flow.c 	keys->thoff += iph->ihl << 2;
iph               286 tools/testing/selftests/bpf/progs/bpf_flow.c 	if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) {
iph               288 tools/testing/selftests/bpf/progs/bpf_flow.c 		if (iph->frag_off & bpf_htons(IP_OFFSET)) {
iph               307 tools/testing/selftests/bpf/progs/bpf_flow.c 	return parse_ip_proto(skb, iph->protocol);
iph               262 tools/testing/selftests/bpf/progs/test_l4lb.c 	struct iphdr *iph;
iph               271 tools/testing/selftests/bpf/progs/test_l4lb.c 	iph = data + off;
iph               272 tools/testing/selftests/bpf/progs/test_l4lb.c 	if (iph + 1 > data_end)
iph               274 tools/testing/selftests/bpf/progs/test_l4lb.c 	if (iph->ihl != 5)
iph               276 tools/testing/selftests/bpf/progs/test_l4lb.c 	pckt->proto = iph->protocol;
iph               278 tools/testing/selftests/bpf/progs/test_l4lb.c 	pckt->src = iph->daddr;
iph               279 tools/testing/selftests/bpf/progs/test_l4lb.c 	pckt->dst = iph->saddr;
iph               339 tools/testing/selftests/bpf/progs/test_l4lb.c 	struct iphdr *iph;
iph               371 tools/testing/selftests/bpf/progs/test_l4lb.c 		iph = data + off;
iph               372 tools/testing/selftests/bpf/progs/test_l4lb.c 		if (iph + 1 > data_end)
iph               374 tools/testing/selftests/bpf/progs/test_l4lb.c 		if (iph->ihl != 5)
iph               377 tools/testing/selftests/bpf/progs/test_l4lb.c 		protocol = iph->protocol;
iph               379 tools/testing/selftests/bpf/progs/test_l4lb.c 		pkt_bytes = bpf_ntohs(iph->tot_len);
iph               382 tools/testing/selftests/bpf/progs/test_l4lb.c 		if (iph->frag_off & PCKT_FRAGMENTED)
iph               390 tools/testing/selftests/bpf/progs/test_l4lb.c 			pckt.src = iph->saddr;
iph               391 tools/testing/selftests/bpf/progs/test_l4lb.c 			pckt.dst = iph->daddr;
iph               262 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 	struct iphdr *iph;
iph               271 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 	iph = data + off;
iph               272 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 	if (iph + 1 > data_end)
iph               274 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 	if (iph->ihl != 5)
iph               276 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 	pckt->proto = iph->protocol;
iph               278 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 	pckt->src = iph->daddr;
iph               279 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 	pckt->dst = iph->saddr;
iph               339 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 	struct iphdr *iph;
iph               371 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 		iph = data + off;
iph               372 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 		if (iph + 1 > data_end)
iph               374 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 		if (iph->ihl != 5)
iph               377 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 		protocol = iph->protocol;
iph               379 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 		pkt_bytes = bpf_ntohs(iph->tot_len);
iph               382 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 		if (iph->frag_off & PCKT_FRAGMENTED)
iph               390 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 			pckt.src = iph->saddr;
iph               391 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c 			pckt.dst = iph->daddr;
iph                19 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 		struct iphdr iph;
iph                26 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 	hdr.iph.ihl = 5;
iph                27 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 	hdr.iph.version = 4;
iph                28 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 	hdr.iph.ttl = 0x40;
iph                29 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 	hdr.iph.protocol = 47;  /* IPPROTO_GRE */
iph                31 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 	hdr.iph.saddr = 0x640110ac;  /* 172.16.1.100 */
iph                32 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 	hdr.iph.daddr = 0x641010ac;  /* 172.16.16.100 */
iph                34 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 	hdr.iph.saddr = 0xac100164;  /* 172.16.1.100 */
iph                35 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 	hdr.iph.daddr = 0xac101064;  /* 172.16.16.100 */
iph                39 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c 	hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr));
iph                34 tools/testing/selftests/bpf/progs/test_pkt_access.c 		struct iphdr *iph = (struct iphdr *)(eth + 1);
iph                36 tools/testing/selftests/bpf/progs/test_pkt_access.c 		if (iph + 1 > data_end)
iph                38 tools/testing/selftests/bpf/progs/test_pkt_access.c 		ihl_len = iph->ihl * 4;
iph                39 tools/testing/selftests/bpf/progs/test_pkt_access.c 		proto = iph->protocol;
iph                40 tools/testing/selftests/bpf/progs/test_pkt_access.c 		tcp = (struct tcphdr *)((void *)(iph) + ihl_len);
iph                31 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c 		struct iphdr *iph = (struct iphdr *)(data + nh_off);
iph                33 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c 		if (iph + 1 > data_end)
iph                35 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c 		ihl_len = iph->ihl * 4;
iph                36 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c 		proto = iph->protocol;
iph                38 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c 		result = (struct bpf_sock_tuple *)&iph->saddr;
iph                83 tools/testing/selftests/bpf/progs/test_tc_edt.c 	struct iphdr *iph;
iph                89 tools/testing/selftests/bpf/progs/test_tc_edt.c 	iph = (struct iphdr *)(data + sizeof(struct ethhdr));
iph                90 tools/testing/selftests/bpf/progs/test_tc_edt.c 	if ((void *)(iph + 1) > data_end)
iph                92 tools/testing/selftests/bpf/progs/test_tc_edt.c 	ihl = iph->ihl * 4;
iph                93 tools/testing/selftests/bpf/progs/test_tc_edt.c 	if (((void *)iph) + ihl > data_end)
iph                96 tools/testing/selftests/bpf/progs/test_tc_edt.c 	if (iph->protocol == IPPROTO_TCP)
iph                97 tools/testing/selftests/bpf/progs/test_tc_edt.c 		return handle_tcp(skb, (struct tcphdr *)(((void *)iph) + ihl));
iph                57 tools/testing/selftests/bpf/progs/test_tc_tunnel.c static __always_inline void set_ipv4_csum(struct iphdr *iph)
iph                59 tools/testing/selftests/bpf/progs/test_tc_tunnel.c 	__u16 *iph16 = (__u16 *)iph;
iph                63 tools/testing/selftests/bpf/progs/test_tc_tunnel.c 	iph->check = 0;
iph                66 tools/testing/selftests/bpf/progs/test_tc_tunnel.c 	for (i = 0, csum = 0; i < sizeof(*iph) >> 1; i++)
iph                69 tools/testing/selftests/bpf/progs/test_tc_tunnel.c 	iph->check = ~((csum & 0xffff) + (csum >> 16));
iph                27 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c 					   void *iph, __u32 ip_size,
iph                40 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c 		return bpf_tcp_gen_syncookie(sk, iph, ip_size, tcph, thlen);
iph               530 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	struct iphdr *iph = data;
iph               531 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	struct tcphdr *tcp = data + sizeof(*iph);
iph               536 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	if (data + sizeof(*iph) + sizeof(*tcp) > data_end) {
iph               542 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	if (iph->protocol == IPPROTO_ICMP) {
iph               545 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 		if (iph->protocol != IPPROTO_TCP || iph->ihl != 5)
iph               587 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	struct iphdr *iph = data;
iph               588 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	struct tcphdr *tcp = data + sizeof(*iph);
iph               593 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	if (data + sizeof(*iph) + sizeof(*tcp) > data_end) {
iph               636 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	struct ipv6hdr *iph = data;
iph               637 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	struct tcphdr *tcp = data + sizeof(*iph);
iph               642 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	if (data + sizeof(*iph) + sizeof(*tcp) > data_end) {
iph               650 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 	if (iph->nexthdr == 58 /* NEXTHDR_ICMP */) {
iph               653 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 		if (iph->nexthdr != 6 /* NEXTHDR_TCP */) {
iph               654 tools/testing/selftests/bpf/progs/test_tunnel_kern.c 			ERROR(iph->nexthdr);
iph                87 tools/testing/selftests/bpf/progs/test_xdp.c 	struct iphdr *iph = data + sizeof(struct ethhdr);
iph                95 tools/testing/selftests/bpf/progs/test_xdp.c 	if (iph + 1 > data_end)
iph                98 tools/testing/selftests/bpf/progs/test_xdp.c 	dport = get_dport(iph + 1, data_end, iph->protocol);
iph               102 tools/testing/selftests/bpf/progs/test_xdp.c 	vip.protocol = iph->protocol;
iph               104 tools/testing/selftests/bpf/progs/test_xdp.c 	vip.daddr.v4 = iph->daddr;
iph               106 tools/testing/selftests/bpf/progs/test_xdp.c 	payload_len = bpf_ntohs(iph->tot_len);
iph               120 tools/testing/selftests/bpf/progs/test_xdp.c 	iph = data + sizeof(*new_eth);
iph               121 tools/testing/selftests/bpf/progs/test_xdp.c 	old_eth = data + sizeof(*iph);
iph               125 tools/testing/selftests/bpf/progs/test_xdp.c 	    iph + 1 > data_end)
iph               130 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->version = 4;
iph               131 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->ihl = sizeof(*iph) >> 2;
iph               132 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->frag_off =	0;
iph               133 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->protocol = IPPROTO_IPIP;
iph               134 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->check = 0;
iph               135 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->tos = 0;
iph               136 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->tot_len = bpf_htons(payload_len + sizeof(*iph));
iph               137 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->daddr = tnl->daddr.v4;
iph               138 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->saddr = tnl->saddr.v4;
iph               139 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->ttl = 8;
iph               141 tools/testing/selftests/bpf/progs/test_xdp.c 	next_iph = (__u16 *)iph;
iph               143 tools/testing/selftests/bpf/progs/test_xdp.c 	for (i = 0; i < sizeof(*iph) >> 1; i++)
iph               146 tools/testing/selftests/bpf/progs/test_xdp.c 	iph->check = ~((csum & 0xffff) + (csum >> 16));
iph                83 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	struct iphdr *iph = data + sizeof(struct ethhdr);
iph                91 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	if (iph + 1 > data_end)
iph                94 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	dport = get_dport(iph + 1, data_end, iph->protocol);
iph                98 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	vip.protocol = iph->protocol;
iph               100 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	vip.daddr.v4 = iph->daddr;
iph               102 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	payload_len = bpf_ntohs(iph->tot_len);
iph               116 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph = data + sizeof(*new_eth);
iph               117 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	old_eth = data + sizeof(*iph);
iph               121 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	    iph + 1 > data_end)
iph               126 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->version = 4;
iph               127 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->ihl = sizeof(*iph) >> 2;
iph               128 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->frag_off =	0;
iph               129 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->protocol = IPPROTO_IPIP;
iph               130 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->check = 0;
iph               131 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->tos = 0;
iph               132 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->tot_len = bpf_htons(payload_len + sizeof(*iph));
iph               133 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->daddr = tnl->daddr.v4;
iph               134 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->saddr = tnl->saddr.v4;
iph               135 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->ttl = 8;
iph               137 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	next_iph = (__u16 *)iph;
iph               139 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	for (i = 0; i < sizeof(*iph) >> 1; i++)
iph               142 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	iph->check = ~((csum & 0xffff) + (csum >> 16));
iph               330 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	struct iphdr *iph;
iph               342 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph = data + sizeof(struct eth_hdr);
iph               345 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	    old_eth + 1 > data_end || iph + 1 > data_end)
iph               350 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->version = 4;
iph               351 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->ihl = 5;
iph               352 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->frag_off = 0;
iph               353 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->protocol = IPPROTO_IPIP;
iph               354 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->check = 0;
iph               355 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->tos = 1;
iph               356 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->tot_len = bpf_htons(pkt_bytes + sizeof(struct iphdr));
iph               361 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->saddr = ((0xFFFF0000 & ip_suffix) | 4268) ^ dst->dst;
iph               362 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->ttl = 4;
iph               364 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	next_iph_u16 = (__u16 *) iph;
iph               368 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->check = ~((csum & 0xffff) + (csum >> 16));
iph               432 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	struct iphdr *iph;
iph               441 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph = data + off;
iph               446 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->ttl = 4;
iph               447 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	tmp_addr = iph->daddr;
iph               448 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->daddr = iph->saddr;
iph               449 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->saddr = tmp_addr;
iph               450 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->check = 0;
iph               451 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	next_iph_u16 = (__u16 *) iph;
iph               455 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph->check = ~((csum & 0xffff) + (csum >> 16));
iph               513 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	struct iphdr *iph;
iph               523 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph = data + off;
iph               524 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	if (iph + 1 > data_end)
iph               526 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	if (iph->ihl != 5)
iph               528 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	pckt->flow.proto = iph->protocol;
iph               530 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	pckt->flow.src = iph->daddr;
iph               531 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	pckt->flow.dst = iph->saddr;
iph               664 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	struct iphdr *iph;
iph               668 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	iph = data + off;
iph               669 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	if (iph + 1 > data_end)
iph               671 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	if (iph->ihl != 5)
iph               673 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	*protocol = iph->protocol;
iph               675 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	*pkt_bytes = bpf_ntohs(iph->tot_len);
iph               677 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 	if (iph->frag_off & 65343)
iph               684 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 		pckt->flow.src = iph->saddr;
iph               685 tools/testing/selftests/bpf/progs/test_xdp_noinline.c 		pckt->flow.dst = iph->daddr;
iph                65 tools/testing/selftests/bpf/progs/xdping_kern.c 	struct iphdr *iph;
iph                67 tools/testing/selftests/bpf/progs/xdping_kern.c 	if (data + sizeof(*eth) + sizeof(*iph) + ICMP_ECHO_LEN > data_end)
iph                73 tools/testing/selftests/bpf/progs/xdping_kern.c 	iph = data + sizeof(*eth);
iph                75 tools/testing/selftests/bpf/progs/xdping_kern.c 	if (iph->protocol != IPPROTO_ICMP)
iph                78 tools/testing/selftests/bpf/progs/xdping_kern.c 	if (bpf_ntohs(iph->tot_len) - sizeof(*iph) != ICMP_ECHO_LEN)
iph                81 tools/testing/selftests/bpf/progs/xdping_kern.c 	icmph = data + sizeof(*eth) + sizeof(*iph);
iph                97 tools/testing/selftests/bpf/progs/xdping_kern.c 	struct iphdr *iph;
iph               109 tools/testing/selftests/bpf/progs/xdping_kern.c 	iph = data + sizeof(*eth);
iph               110 tools/testing/selftests/bpf/progs/xdping_kern.c 	icmph = data + sizeof(*eth) + sizeof(*iph);
iph               111 tools/testing/selftests/bpf/progs/xdping_kern.c 	raddr = iph->saddr;
iph               139 tools/testing/selftests/bpf/progs/xdping_kern.c 	iph->saddr = iph->daddr;
iph               140 tools/testing/selftests/bpf/progs/xdping_kern.c 	iph->daddr = raddr;
iph               160 tools/testing/selftests/bpf/progs/xdping_kern.c 	struct iphdr *iph;
iph               169 tools/testing/selftests/bpf/progs/xdping_kern.c 	iph = data + sizeof(*eth);
iph               170 tools/testing/selftests/bpf/progs/xdping_kern.c 	icmph = data + sizeof(*eth) + sizeof(*iph);
iph               171 tools/testing/selftests/bpf/progs/xdping_kern.c 	raddr = iph->saddr;
iph               175 tools/testing/selftests/bpf/progs/xdping_kern.c 	iph->saddr = iph->daddr;
iph               176 tools/testing/selftests/bpf/progs/xdping_kern.c 	iph->daddr = raddr;
iph               169 tools/testing/selftests/bpf/test_flow_dissector.c 	struct iphdr *iph = header;
iph               171 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->ihl = 5;
iph               172 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->version = 4;
iph               173 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->tos = tos;
iph               174 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->ttl = 8;
iph               175 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->tot_len = htons(sizeof(*iph) + payload_len);
iph               176 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->id = htons(1337);
iph               177 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->protocol = proto;
iph               178 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->saddr = src;
iph               179 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->daddr = dst;
iph               180 tools/testing/selftests/bpf/test_flow_dissector.c 	iph->check = build_ip_csum((void *) iph, iph->ihl << 1, 0);
iph               210 tools/testing/selftests/bpf/test_flow_dissector.c static uint16_t build_udp_v4_csum(const struct iphdr *iph,
iph               215 tools/testing/selftests/bpf/test_flow_dissector.c 	int num_u16 = sizeof(iph->saddr);	/* halfwords: twice byte len */
iph               217 tools/testing/selftests/bpf/test_flow_dissector.c 	pseudo_sum = add_csum_hword((void *) &iph->saddr, num_u16);
iph               169 tools/testing/selftests/bpf/test_progs.c 	.iph.ihl = 5,
iph               170 tools/testing/selftests/bpf/test_progs.c 	.iph.protocol = IPPROTO_TCP,
iph               171 tools/testing/selftests/bpf/test_progs.c 	.iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
iph               178 tools/testing/selftests/bpf/test_progs.c 	.iph.nexthdr = IPPROTO_TCP,
iph               179 tools/testing/selftests/bpf/test_progs.c 	.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
iph                82 tools/testing/selftests/bpf/test_progs.h 	struct iphdr iph;
iph                90 tools/testing/selftests/bpf/test_progs.h 	struct ipv6hdr iph;
iph                41 tools/testing/selftests/bpf/test_queue_stack_map.h 	struct iphdr *iph = (struct iphdr *)(eth + 1);
iph                43 tools/testing/selftests/bpf/test_queue_stack_map.h 	if (iph + 1 > data_end)
iph                50 tools/testing/selftests/bpf/test_queue_stack_map.h 	iph->daddr = value;
iph                52 tools/testing/selftests/bpf/test_queue_stack_map.h 	err = bpf_map_push_elem(&map_out, &iph->saddr, 0);
iph               257 tools/testing/selftests/net/msg_zerocopy.c static int setup_iph(struct iphdr *iph, uint16_t payload_len)
iph               262 tools/testing/selftests/net/msg_zerocopy.c 	memset(iph, 0, sizeof(*iph));
iph               264 tools/testing/selftests/net/msg_zerocopy.c 	iph->version	= 4;
iph               265 tools/testing/selftests/net/msg_zerocopy.c 	iph->tos	= 0;
iph               266 tools/testing/selftests/net/msg_zerocopy.c 	iph->ihl	= 5;
iph               267 tools/testing/selftests/net/msg_zerocopy.c 	iph->ttl	= 2;
iph               268 tools/testing/selftests/net/msg_zerocopy.c 	iph->saddr	= saddr->sin_addr.s_addr;
iph               269 tools/testing/selftests/net/msg_zerocopy.c 	iph->daddr	= daddr->sin_addr.s_addr;
iph               270 tools/testing/selftests/net/msg_zerocopy.c 	iph->protocol	= IPPROTO_EGP;
iph               271 tools/testing/selftests/net/msg_zerocopy.c 	iph->tot_len	= htons(sizeof(*iph) + payload_len);
iph               272 tools/testing/selftests/net/msg_zerocopy.c 	iph->check	= get_ip_csum((void *) iph, iph->ihl << 1);
iph               274 tools/testing/selftests/net/msg_zerocopy.c 	return sizeof(*iph);
iph               490 tools/testing/selftests/net/msg_zerocopy.c 		struct iphdr iph;
iph               526 tools/testing/selftests/net/msg_zerocopy.c 			iov[1].iov_len = setup_iph(&nh.iph, cfg_payload_len);
iph               119 tools/testing/selftests/net/psock_snd.c 	struct iphdr *iph = header;
iph               121 tools/testing/selftests/net/psock_snd.c 	iph->ihl = 5;
iph               122 tools/testing/selftests/net/psock_snd.c 	iph->version = 4;
iph               123 tools/testing/selftests/net/psock_snd.c 	iph->ttl = 8;
iph               124 tools/testing/selftests/net/psock_snd.c 	iph->tot_len = htons(sizeof(*iph) + sizeof(struct udphdr) + payload_len);
iph               125 tools/testing/selftests/net/psock_snd.c 	iph->id = htons(1337);
iph               126 tools/testing/selftests/net/psock_snd.c 	iph->protocol = IPPROTO_UDP;
iph               127 tools/testing/selftests/net/psock_snd.c 	iph->saddr = htonl((172 << 24) | (17 << 16) | 2);
iph               128 tools/testing/selftests/net/psock_snd.c 	iph->daddr = htonl((172 << 24) | (17 << 16) | 1);
iph               129 tools/testing/selftests/net/psock_snd.c 	iph->check = build_ip_csum((void *) iph, iph->ihl << 1, 0);
iph               131 tools/testing/selftests/net/psock_snd.c 	return iph->ihl << 2;
iph                45 tools/testing/selftests/net/txring_overwrite.c 	struct iphdr *iph;
iph                54 tools/testing/selftests/net/txring_overwrite.c 	iph = buffer + off;
iph                55 tools/testing/selftests/net/txring_overwrite.c 	iph->ttl	= 8;
iph                56 tools/testing/selftests/net/txring_overwrite.c 	iph->ihl	= 5;
iph                57 tools/testing/selftests/net/txring_overwrite.c 	iph->version	= 4;
iph                58 tools/testing/selftests/net/txring_overwrite.c 	iph->saddr	= htonl(INADDR_LOOPBACK);
iph                59 tools/testing/selftests/net/txring_overwrite.c 	iph->daddr	= htonl(INADDR_LOOPBACK + 1);
iph                60 tools/testing/selftests/net/txring_overwrite.c 	iph->protocol	= IPPROTO_UDP;
iph                61 tools/testing/selftests/net/txring_overwrite.c 	iph->tot_len	= htons(blen - off);
iph                62 tools/testing/selftests/net/txring_overwrite.c 	iph->check	= 0;
iph                64 tools/testing/selftests/net/txring_overwrite.c 	off += sizeof(*iph);
iph               337 tools/testing/selftests/networking/timestamping/txtimestamp.c 	struct iphdr *iph = p;
iph               339 tools/testing/selftests/networking/timestamping/txtimestamp.c 	memset(iph, 0, sizeof(*iph));
iph               341 tools/testing/selftests/networking/timestamping/txtimestamp.c 	iph->ihl	= 5;
iph               342 tools/testing/selftests/networking/timestamping/txtimestamp.c 	iph->version	= 4;
iph               343 tools/testing/selftests/networking/timestamping/txtimestamp.c 	iph->ttl	= 2;
iph               344 tools/testing/selftests/networking/timestamping/txtimestamp.c 	iph->saddr	= daddr.sin_addr.s_addr;	/* set for udp csum calc */
iph               345 tools/testing/selftests/networking/timestamping/txtimestamp.c 	iph->daddr	= daddr.sin_addr.s_addr;
iph               346 tools/testing/selftests/networking/timestamping/txtimestamp.c 	iph->protocol	= IPPROTO_UDP;
iph               350 tools/testing/selftests/networking/timestamping/txtimestamp.c 	return sizeof(*iph);