iphdr 62 arch/powerpc/platforms/ps3/gelic_udbg.c static __iomem struct iphdr *h_ip; iphdr 162 arch/powerpc/platforms/ps3/gelic_udbg.c h_ip = (struct iphdr *)(h_vlan + 1); iphdr 165 arch/powerpc/platforms/ps3/gelic_udbg.c h_ip = (struct iphdr *)(h_eth + 1); iphdr 168 arch/powerpc/platforms/ps3/gelic_udbg.c header_size += sizeof(struct iphdr); iphdr 200 arch/powerpc/platforms/ps3/gelic_udbg.c sizeof(struct iphdr); iphdr 138 arch/um/drivers/vector_transports.c header += sizeof(struct iphdr) /* fix for ipv4 raw */; iphdr 173 arch/um/drivers/vector_transports.c header += sizeof(struct iphdr) /* fix for ipv4 raw */; iphdr 298 arch/um/drivers/vector_transports.c vp->rx_header_size += sizeof(struct iphdr); iphdr 395 arch/um/drivers/vector_transports.c vp->rx_header_size += sizeof(struct iphdr); iphdr 880 drivers/crypto/chelsio/chtls/chtls_cm.c iphdrsz = sizeof(struct iphdr) + sizeof(struct tcphdr); iphdr 1028 drivers/crypto/chelsio/chtls/chtls_cm.c const struct iphdr *iph; iphdr 1040 drivers/crypto/chelsio/chtls/chtls_cm.c iph = (const struct iphdr *)network_hdr; iphdr 1159 drivers/crypto/chelsio/chtls/chtls_cm.c struct iphdr *iph; iphdr 1209 drivers/crypto/chelsio/chtls/chtls_cm.c iph = (struct iphdr *)(eh + 1); iphdr 1213 drivers/crypto/chelsio/chtls/chtls_cm.c iph = (struct iphdr *)(vlan_eh + 1); iphdr 285 drivers/infiniband/core/ud_header.c struct iphdr iph; iphdr 604 drivers/infiniband/core/verbs.c const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; iphdr 605 drivers/infiniband/core/verbs.c struct iphdr ip4h_checked; iphdr 2834 drivers/infiniband/hw/bnxt_re/ib_verbs.c len = (eth_type == ETH_P_IP ? sizeof(struct iphdr) : iphdr 252 drivers/infiniband/hw/cxgb4/cm.c sizeof(struct iphdr) : sizeof(struct ipv6hdr)) - iphdr 2591 drivers/infiniband/hw/cxgb4/cm.c hdrs = ((iptype == 4) ? sizeof(struct iphdr) : sizeof(struct ipv6hdr)) + iphdr 4061 drivers/infiniband/hw/cxgb4/cm.c struct iphdr *iph; iphdr 4117 drivers/infiniband/hw/cxgb4/cm.c iph = (struct iphdr *)(eh + 1); iphdr 4120 drivers/infiniband/hw/cxgb4/cm.c iph = (struct iphdr *)(vlan_eh + 1); iphdr 383 drivers/infiniband/hw/i40iw/i40iw_cm.c struct iphdr *iph; iphdr 429 drivers/infiniband/hw/i40iw/i40iw_cm.c iph = (struct iphdr *)buf; iphdr 3127 drivers/infiniband/hw/i40iw/i40iw_cm.c struct iphdr *iph; iphdr 3138 drivers/infiniband/hw/i40iw/i40iw_cm.c iph = (struct iphdr *)rbuf->iph; iphdr 1404 drivers/infiniband/hw/i40iw/i40iw_utils.c struct iphdr *iph = (struct iphdr *)buf->iph; iphdr 1437 drivers/infiniband/hw/i40iw/i40iw_utils.c struct iphdr *iph; iphdr 1443 drivers/infiniband/hw/i40iw/i40iw_utils.c iph = (struct iphdr *)(addr + buf->maclen); iphdr 1459 drivers/infiniband/hw/i40iw/i40iw_utils.c struct iphdr *iph; iphdr 1475 drivers/infiniband/hw/i40iw/i40iw_utils.c iph = (struct iphdr *)buf->iph; iphdr 83 drivers/infiniband/hw/ocrdma/ocrdma_ah.c struct iphdr ipv4; iphdr 139 drivers/infiniband/hw/ocrdma/ocrdma_ah.c memcpy((u8 *)ah->av + eth_sz, &ipv4, sizeof(struct iphdr)); iphdr 591 drivers/infiniband/hw/qedr/qedr_iw_cm.c (sizeof(struct iphdr) + sizeof(struct tcphdr)); iphdr 41 drivers/infiniband/sw/rxe/rxe_icrc.c struct iphdr *ip4h = NULL; iphdr 49 drivers/infiniband/sw/rxe/rxe_icrc.c sizeof(struct iphdr) : sizeof(struct ipv6hdr)); iphdr 64 drivers/infiniband/sw/rxe/rxe_icrc.c ip4h = (struct iphdr *)pshdr; iphdr 293 drivers/infiniband/sw/rxe/rxe_net.c struct iphdr *iph; iphdr 301 drivers/infiniband/sw/rxe/rxe_net.c skb_push(skb, sizeof(struct iphdr)); iphdr 307 drivers/infiniband/sw/rxe/rxe_net.c iph->ihl = sizeof(struct iphdr) >> 2; iphdr 474 drivers/infiniband/sw/rxe/rxe_net.c sizeof(struct iphdr); iphdr 1392 drivers/net/bonding/bond_alb.c const struct iphdr *iph; iphdr 3257 drivers/net/bonding/bond_main.c const struct iphdr *iph; iphdr 3924 drivers/net/bonding/bond_main.c struct iphdr *iph; iphdr 310 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct iphdr *iph; iphdr 591 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct iphdr *iph = ip_hdr(skb); iphdr 1412 drivers/net/ethernet/atheros/alx/main.c struct iphdr *iph = ip_hdr(skb); iphdr 1355 drivers/net/ethernet/atheros/atl1e/atl1e_main.c struct iphdr *iph; iphdr 1368 drivers/net/ethernet/atheros/atl1e/atl1e_main.c iph = (struct iphdr *) (packet + head_len); iphdr 2114 drivers/net/ethernet/atheros/atlx/atl1.c struct iphdr *iph = ip_hdr(skb); iphdr 6637 drivers/net/ethernet/broadcom/bnx2.c struct iphdr *iph; iphdr 526 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c hdrs_len += sizeof(struct iphdr); iphdr 699 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c const struct iphdr *iph = ip_hdr(skb); iphdr 702 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c skb_set_transport_header(skb, sizeof(struct iphdr)); iphdr 3660 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c struct iphdr *iph = ip_hdr(skb); iphdr 1300 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct iphdr *iph = (struct iphdr *)skb->data; iphdr 1367 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct iphdr *iph = ip_hdr(skb); iphdr 1369 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_set_transport_header(skb, nw_off + sizeof(struct iphdr)); iphdr 1401 drivers/net/ethernet/broadcom/bnxt/bnxt.c sizeof(struct ipv6hdr) : sizeof(struct iphdr); iphdr 1414 drivers/net/ethernet/broadcom/bnxt/bnxt.c #define BNXT_IPV4_HDR_SIZE (sizeof(struct iphdr) + sizeof(struct tcphdr)) iphdr 1429 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct iphdr *iph; iphdr 1435 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_set_transport_header(skb, nw_off + sizeof(struct iphdr)); iphdr 3516 drivers/net/ethernet/broadcom/cnic.c l4kwqe3->mss = l4kwqe3->pmtu - sizeof(struct iphdr) - iphdr 7925 drivers/net/ethernet/broadcom/tg3.c struct iphdr *iph = NULL; iphdr 13463 drivers/net/ethernet/broadcom/tg3.c struct iphdr *iph = (struct iphdr *)&tx_data[ETH_HLEN]; iphdr 2496 drivers/net/ethernet/brocade/bna/bnad.c struct iphdr *iph = ip_hdr(skb); iphdr 1336 drivers/net/ethernet/cavium/thunder/nicvf_queues.c struct iphdr *v4; iphdr 2916 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pktsize = pktsize - sizeof(struct iphdr) - sizeof(struct tcphdr); iphdr 1503 drivers/net/ethernet/chelsio/cxgb4/sge.c struct iphdr *iph = ip_hdr(skb); iphdr 1083 drivers/net/ethernet/chelsio/cxgb4vf/sge.c const struct iphdr *iph = ip_hdr(skb); iphdr 51 drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c struct iphdr *ip = (struct iphdr *)((u8 *)(req + 1) + eth_len); iphdr 70 drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h sizeof(struct iphdr)) + iphdr 1131 drivers/net/ethernet/emulex/benet/be_main.c struct iphdr *ip; iphdr 1142 drivers/net/ethernet/emulex/benet/be_main.c ip = (struct iphdr *)ip_hdr(skb); iphdr 1404 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c struct iphdr *iph; iphdr 42 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct iphdr *iphdr; iphdr 85 drivers/net/ethernet/hisilicon/hns/hns_enet.c iphdr = ip_hdr(skb); iphdr 90 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (iphdr->protocol == IPPROTO_TCP && iphdr 2484 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c const struct iphdr *iph = ip_hdr(skb); iphdr 2486 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c depth += sizeof(struct iphdr); iphdr 543 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h struct iphdr *v4; iphdr 54 drivers/net/ethernet/huawei/hinic/hinic_tx.c struct iphdr *v4; iphdr 1191 drivers/net/ethernet/ibm/ibmveth.c struct iphdr *iph = (struct iphdr *)skb->data; iphdr 1233 drivers/net/ethernet/ibm/ibmveth.c struct iphdr *iph = NULL; iphdr 1243 drivers/net/ethernet/ibm/ibmveth.c iph = (struct iphdr *)skb->data; iphdr 2708 drivers/net/ethernet/intel/e1000/e1000_main.c struct iphdr *iph = ip_hdr(skb); iphdr 5453 drivers/net/ethernet/intel/e1000e/netdev.c struct iphdr *iph = ip_hdr(skb); iphdr 5736 drivers/net/ethernet/intel/e1000e/netdev.c const struct iphdr *ip = (struct iphdr *)((u8 *)skb->data + 14); iphdr 806 drivers/net/ethernet/intel/fm10k/fm10k_main.c struct iphdr *ipv4; iphdr 179 drivers/net/ethernet/intel/i40e/i40e_txrx.c struct iphdr *ip; iphdr 191 drivers/net/ethernet/intel/i40e/i40e_txrx.c ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); iphdr 193 drivers/net/ethernet/intel/i40e/i40e_txrx.c + sizeof(struct iphdr)); iphdr 251 drivers/net/ethernet/intel/i40e/i40e_txrx.c struct iphdr *ip; iphdr 265 drivers/net/ethernet/intel/i40e/i40e_txrx.c ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); iphdr 267 drivers/net/ethernet/intel/i40e/i40e_txrx.c + sizeof(struct iphdr)); iphdr 330 drivers/net/ethernet/intel/i40e/i40e_txrx.c struct iphdr *ip; iphdr 343 drivers/net/ethernet/intel/i40e/i40e_txrx.c ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); iphdr 345 drivers/net/ethernet/intel/i40e/i40e_txrx.c + sizeof(struct iphdr)); iphdr 403 drivers/net/ethernet/intel/i40e/i40e_txrx.c struct iphdr *ip; iphdr 417 drivers/net/ethernet/intel/i40e/i40e_txrx.c ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); iphdr 2674 drivers/net/ethernet/intel/i40e/i40e_txrx.c struct iphdr *ipv4; iphdr 2892 drivers/net/ethernet/intel/i40e/i40e_txrx.c struct iphdr *v4; iphdr 3045 drivers/net/ethernet/intel/i40e/i40e_txrx.c struct iphdr *v4; iphdr 1858 drivers/net/ethernet/intel/iavf/iavf_txrx.c struct iphdr *v4; iphdr 1967 drivers/net/ethernet/intel/iavf/iavf_txrx.c struct iphdr *v4; iphdr 1746 drivers/net/ethernet/intel/ice/ice_txrx.c struct iphdr *v4; iphdr 1896 drivers/net/ethernet/intel/ice/ice_txrx.c struct iphdr *v4; iphdr 5693 drivers/net/ethernet/intel/igb/igb_main.c struct iphdr *v4; iphdr 2002 drivers/net/ethernet/intel/igbvf/netdev.c struct iphdr *v4; iphdr 1194 drivers/net/ethernet/intel/ixgb/ixgb_main.c struct iphdr *iph; iphdr 1163 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct iphdr *ip4 = NULL; iphdr 1176 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ip4 = (struct iphdr *)(skb->data + ETH_HLEN); iphdr 7959 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c struct iphdr *v4; iphdr 8362 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c struct iphdr *ipv4; iphdr 550 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct iphdr *ip4 = NULL; iphdr 563 drivers/net/ethernet/intel/ixgbevf/ipsec.c ip4 = (struct iphdr *)(skb->data + ETH_HLEN); iphdr 3747 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c struct iphdr *v4; iphdr 945 drivers/net/ethernet/jme.c if (skb->len < (ETH_HLEN + sizeof(struct iphdr))) iphdr 2072 drivers/net/ethernet/jme.c struct iphdr *iph = ip_hdr(skb); iphdr 1855 drivers/net/ethernet/marvell/mvneta.c struct iphdr *ip4h = ip_hdr(skb); iphdr 2894 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c struct iphdr *ip4h = ip_hdr(skb); iphdr 890 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c sizeof(struct iphdr) - 4, iphdr 1735 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c sizeof(struct iphdr) - 4, iphdr 364 drivers/net/ethernet/mellanox/mlx4/en_netdev.c const struct iphdr *ip; iphdr 377 drivers/net/ethernet/mellanox/mlx4/en_netdev.c ip = (const struct iphdr *)(skb->data + nhoff); iphdr 580 drivers/net/ethernet/mellanox/mlx4/en_rx.c struct iphdr *iph) iphdr 1022 drivers/net/ethernet/mellanox/mlx4/en_tx.c struct iphdr *v4; iphdr 220 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c struct iphdr *ip; iphdr 236 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c sizeof(struct iphdr) + iphdr 276 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c ip = (struct iphdr *)gen_eth_tnl_hdr(encap_header, route_dev, e, iphdr 288 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c err = mlx5e_gen_ip_tunnel_header((char *)ip + sizeof(struct iphdr), iphdr 113 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c struct iphdr *ipv4hdr = ip_hdr(skb); iphdr 149 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c struct iphdr *iph; iphdr 314 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c struct iphdr *iph; iphdr 321 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c iph = (struct iphdr *)(mdata + 1); iphdr 744 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct iphdr *ipv4 = ip_p; iphdr 746 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c tcp = ip_p + sizeof(struct iphdr); iphdr 760 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c tot_len - sizeof(struct iphdr), iphdr 798 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c return pskb_may_pull(skb, *network_depth + sizeof(struct iphdr)); iphdr 817 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c rc = ((proto == htons(ETH_P_IP)) ? IP_ECN_set_ce((struct iphdr *)ip) : iphdr 827 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c return (proto == htons(ETH_P_IP)) ? ((struct iphdr *)ip_p)->protocol : iphdr 873 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct iphdr *ip4; iphdr 889 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c ip4 = (struct iphdr *)(skb->data + network_depth); iphdr 99 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c #define MLX5E_TEST_PKT_SIZE (sizeof(struct ethhdr) + sizeof(struct iphdr) +\ iphdr 109 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c struct iphdr *iph; iphdr 126 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c iph = skb_put(skb, sizeof(struct iphdr)); iphdr 147 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c iplen = sizeof(struct iphdr) + sizeof(struct udphdr) + iphdr 190 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c struct iphdr *iph; iphdr 2203 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct iphdr ip4; iphdr 2641 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (offset != offsetof(struct iphdr, ttl) || iphdr 4964 drivers/net/ethernet/micrel/ksz884x.c struct iphdr *iph; iphdr 4968 drivers/net/ethernet/micrel/ksz884x.c iph = (struct iphdr *) skb_network_header(skb); iphdr 4972 drivers/net/ethernet/micrel/ksz884x.c iph = (struct iphdr *) skb_network_header(skb); iphdr 4035 drivers/net/ethernet/neterion/s2io.c struct iphdr *ip; iphdr 8169 drivers/net/ethernet/neterion/s2io.c static int check_L2_lro_capable(u8 *buffer, struct iphdr **ip, iphdr 8198 drivers/net/ethernet/neterion/s2io.c *ip = (struct iphdr *)(buffer + ip_off); iphdr 8206 drivers/net/ethernet/neterion/s2io.c static int check_for_socket_match(struct lro *lro, struct iphdr *ip, iphdr 8218 drivers/net/ethernet/neterion/s2io.c static inline int get_l4_pyld_length(struct iphdr *ip, struct tcphdr *tcp) iphdr 8224 drivers/net/ethernet/neterion/s2io.c struct iphdr *ip, struct tcphdr *tcp, iphdr 8253 drivers/net/ethernet/neterion/s2io.c struct iphdr *ip = lro->iph; iphdr 8280 drivers/net/ethernet/neterion/s2io.c static void aggregate_new_rx(struct lro *lro, struct iphdr *ip, iphdr 8302 drivers/net/ethernet/neterion/s2io.c static int verify_l3_l4_lro_capable(struct lro *l_lro, struct iphdr *ip, iphdr 8364 drivers/net/ethernet/neterion/s2io.c struct iphdr *ip; iphdr 676 drivers/net/ethernet/neterion/s2io.h struct iphdr *iph; iphdr 635 drivers/net/ethernet/neterion/vxge/vxge-main.c struct iphdr *ip; iphdr 530 drivers/net/ethernet/netronome/nfp/flower/action.c struct iphdr *tos_word_mask; iphdr 531 drivers/net/ethernet/netronome/nfp/flower/action.c struct iphdr *tos_word; iphdr 544 drivers/net/ethernet/netronome/nfp/flower/action.c case offsetof(struct iphdr, daddr): iphdr 552 drivers/net/ethernet/netronome/nfp/flower/action.c case offsetof(struct iphdr, saddr): iphdr 560 drivers/net/ethernet/netronome/nfp/flower/action.c case offsetof(struct iphdr, ttl): iphdr 577 drivers/net/ethernet/netronome/nfp/flower/action.c case round_down(offsetof(struct iphdr, tos), 4): iphdr 578 drivers/net/ethernet/netronome/nfp/flower/action.c tos_word_mask = (struct iphdr *)&mask; iphdr 579 drivers/net/ethernet/netronome/nfp/flower/action.c tos_word = (struct iphdr *)&exact; iphdr 779 drivers/net/ethernet/netronome/nfp/nfp_net_common.c struct iphdr *iph; iphdr 1119 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c struct iphdr *iph = ip_hdr(skb); iphdr 1516 drivers/net/ethernet/packetengines/hamachi.c struct iphdr *ih = (struct iphdr *) skb->data; iphdr 1578 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct iphdr *iph; iphdr 1621 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c iph = (struct iphdr *)(skb->data + vhdr_len); iphdr 1682 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct iphdr *iph; iphdr 1717 drivers/net/ethernet/qlogic/qed/qed_iwarp.c iph = (struct iphdr *)((u8 *)(ethh) + eth_hlen); iphdr 473 drivers/net/ethernet/qlogic/qede/qede_filter.c tp_offset = sizeof(struct iphdr); iphdr 1486 drivers/net/ethernet/qlogic/qede/qede_filter.c size += sizeof(struct iphdr); iphdr 1512 drivers/net/ethernet/qlogic/qede/qede_filter.c __be16 *ports = (__be16 *)(header + ETH_HLEN + sizeof(struct iphdr)); iphdr 1513 drivers/net/ethernet/qlogic/qede/qede_filter.c struct iphdr *ip = (struct iphdr *)(header + ETH_HLEN); iphdr 865 drivers/net/ethernet/qlogic/qede/qede_fp.c const struct iphdr *iph = ip_hdr(skb); iphdr 868 drivers/net/ethernet/qlogic/qede/qede_fp.c skb_set_transport_header(skb, sizeof(struct iphdr)); iphdr 2286 drivers/net/ethernet/qlogic/qla3xxx.c const struct iphdr *ip = ip_hdr(skb); iphdr 1270 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct iphdr *iph; iphdr 1328 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c iph = (struct iphdr *)skb->data; iphdr 1792 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct iphdr *iph; iphdr 1851 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c iph = (struct iphdr *)skb->data; iphdr 47 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c struct iphdr *ip4h; iphdr 51 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ip4h = (struct iphdr *)(skb->data); iphdr 181 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c static void rmnet_map_complement_ipv4_txporthdr_csum_field(void *iphdr) iphdr 183 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c struct iphdr *ip4h = (struct iphdr *)iphdr; iphdr 187 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c txphdr = iphdr + ip4h->ihl * 4; iphdr 196 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c rmnet_map_ipv4_ul_csum_header(void *iphdr, iphdr 200 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c struct iphdr *ip4h = (struct iphdr *)iphdr; iphdr 204 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c (unsigned char *)iphdr)); iphdr 219 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c rmnet_map_complement_ipv4_txporthdr_csum_field(iphdr); iphdr 394 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c void *iphdr; iphdr 404 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c iphdr = (char *)ul_header + iphdr 408 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c rmnet_map_ipv4_ul_csum_header(iphdr, ul_header, skb); iphdr 412 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c rmnet_map_ipv6_ul_csum_header(iphdr, ul_header, skb); iphdr 766 drivers/net/ethernet/realtek/8139cp.c const struct iphdr *ip = ip_hdr(skb); iphdr 5779 drivers/net/ethernet/realtek/r8169_main.c const struct iphdr *ip = ip_hdr(skb); iphdr 2328 drivers/net/ethernet/sfc/ef10.c struct iphdr *ip; iphdr 43 drivers/net/ethernet/sfc/falcon/selftest.c struct iphdr ip; iphdr 397 drivers/net/ethernet/sfc/falcon/selftest.c sizeof(struct iphdr)); iphdr 1606 drivers/net/ethernet/sfc/ptp.c skb_network_header_len(skb) >= sizeof(struct iphdr) && iphdr 43 drivers/net/ethernet/sfc/selftest.c struct iphdr ip; iphdr 397 drivers/net/ethernet/sfc/selftest.c sizeof(struct iphdr)); iphdr 477 drivers/net/ethernet/sgi/ioc3-eth.c struct iphdr *ih; iphdr 497 drivers/net/ethernet/sgi/ioc3-eth.c ih = (struct iphdr *)((char *)eh + ETH_HLEN); iphdr 1384 drivers/net/ethernet/sgi/ioc3-eth.c const struct iphdr *ih = ip_hdr(skb); iphdr 28 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c #define STMMAC_TEST_PKT_SIZE (sizeof(struct ethhdr) + sizeof(struct iphdr) + \ iphdr 65 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct iphdr *ihdr; iphdr 253 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct iphdr *ihdr; iphdr 279 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ihdr = (struct iphdr *)(skb_network_header(skb) + 4); iphdr 840 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct iphdr *ihdr; iphdr 870 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ihdr = (struct iphdr *)(skb_network_header(skb) + 4); iphdr 309 drivers/net/ethernet/sun/sunvnet_common.c struct iphdr *iph = ip_hdr(skb); iphdr 420 drivers/net/ethernet/sun/sunvnet_common.c struct iphdr *iph = ip_hdr(skb); iphdr 429 drivers/net/ethernet/sun/sunvnet_common.c struct iphdr *iph = ip_hdr(skb); iphdr 1175 drivers/net/ethernet/sun/sunvnet_common.c struct iphdr *iph = ip_hdr(nskb); iphdr 2585 drivers/net/ethernet/via/via-velocity.c const struct iphdr *ip = ip_hdr(skb); iphdr 35 drivers/net/geneve.c #define GENEVE_IPV4_HLEN (ETH_HLEN + sizeof(struct iphdr) + GENEVE_BASE_HLEN) iphdr 174 drivers/net/geneve.c struct iphdr *iph; iphdr 278 drivers/net/geneve.c &((struct iphdr *)oiph)->saddr, iphdr 279 drivers/net/geneve.c ((struct iphdr *)oiph)->tos); iphdr 410 drivers/net/geneve.c struct iphdr *iph = ip_hdr(skb); iphdr 917 drivers/net/geneve.c struct iphdr *iph = ip_hdr(skb); iphdr 925 drivers/net/geneve.c err = geneve_build_skb(&rt->dst, skb, info, xnet, sizeof(struct iphdr)); iphdr 1159 drivers/net/geneve.c [IFLA_GENEVE_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) }, iphdr 1284 drivers/net/geneve.c encap_len += sizeof(struct iphdr); iphdr 1285 drivers/net/geneve.c dev->max_mtu -= sizeof(struct iphdr); iphdr 156 drivers/net/gtp.c struct iphdr *iph; iphdr 158 drivers/net/gtp.c if (!pskb_may_pull(skb, hdrlen + sizeof(struct iphdr))) iphdr 161 drivers/net/gtp.c iph = (struct iphdr *)(skb->data + hdrlen); iphdr 446 drivers/net/gtp.c struct iphdr *iph; iphdr 469 drivers/net/gtp.c struct sock *sk, struct iphdr *iph, iphdr 489 drivers/net/gtp.c struct iphdr *iph; iphdr 530 drivers/net/gtp.c sizeof(struct iphdr) - sizeof(struct udphdr); iphdr 637 drivers/net/gtp.c sizeof(struct iphdr) + iphdr 477 drivers/net/hyperv/netvsc_drv.c struct iphdr *ip = ip_hdr(skb); iphdr 756 drivers/net/hyperv/netvsc_drv.c struct iphdr *iph = (struct iphdr *)skb->data; iphdr 154 drivers/net/ipvlan/ipvlan_core.c struct iphdr *ip4h; iphdr 386 drivers/net/ipvlan/ipvlan_core.c struct iphdr *ip4h; iphdr 389 drivers/net/ipvlan/ipvlan_core.c ip4h = (struct iphdr *)lyr3h; iphdr 417 drivers/net/ipvlan/ipvlan_core.c const struct iphdr *ip4h = ip_hdr(skb); iphdr 51 drivers/net/ipvlan/ipvlan_l3s.c struct iphdr *ip4h = ip_hdr(skb); iphdr 370 drivers/net/netdevsim/dev.c struct iphdr *iph; iphdr 375 drivers/net/netdevsim/dev.c tot_len = sizeof(struct iphdr) + sizeof(struct udphdr) + data_len; iphdr 385 drivers/net/netdevsim/dev.c iph = skb_put(skb, sizeof(struct iphdr)); iphdr 148 drivers/net/ppp/pptp.c struct iphdr *iph; iphdr 226 drivers/net/ppp/pptp.c iph->ihl = sizeof(struct iphdr) >> 2; iphdr 338 drivers/net/ppp/pptp.c struct iphdr *iph; iphdr 238 drivers/net/slip/slhc.c struct iphdr *ip; iphdr 247 drivers/net/slip/slhc.c if(isize<sizeof(struct iphdr)) iphdr 250 drivers/net/slip/slhc.c ip = (struct iphdr *) icp; iphdr 498 drivers/net/slip/slhc.c struct iphdr *ip; iphdr 626 drivers/net/slip/slhc.c &((struct iphdr *)icp)->check); iphdr 682 drivers/net/slip/slhc.c memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4); iphdr 371 drivers/net/usb/cdc_mbim.c if (len < sizeof(struct iphdr)) iphdr 150 drivers/net/usb/hso.c struct iphdr rx_ip_hdr; iphdr 711 drivers/net/usb/hso.c odev->rx_buf_missing = sizeof(struct iphdr); iphdr 879 drivers/net/usb/hso.c (frame_len < sizeof(struct iphdr))) { iphdr 900 drivers/net/usb/hso.c sizeof(struct iphdr)); iphdr 903 drivers/net/usb/hso.c odev->rx_buf_size = sizeof(struct iphdr); iphdr 907 drivers/net/usb/hso.c frame_len - sizeof(struct iphdr); iphdr 944 drivers/net/usb/hso.c odev->rx_buf_missing = sizeof(struct iphdr); iphdr 965 drivers/net/usb/hso.c odev->rx_buf_missing = sizeof(struct iphdr); iphdr 853 drivers/net/vmxnet3/vmxnet3_drv.c const struct iphdr *iph = ip_hdr(skb); iphdr 939 drivers/net/vmxnet3/vmxnet3_drv.c struct iphdr *iph = ip_hdr(skb); iphdr 1231 drivers/net/vmxnet3/vmxnet3_drv.c struct iphdr *ipv4; iphdr 1238 drivers/net/vmxnet3/vmxnet3_drv.c if (unlikely(sizeof(struct iphdr) + sizeof(struct tcphdr) > maplen)) iphdr 246 drivers/net/vrf.c struct iphdr *ip4h; iphdr 252 drivers/net/vrf.c if (!pskb_may_pull(skb, ETH_HLEN + sizeof(struct iphdr))) iphdr 1640 drivers/net/vxlan.c &((struct iphdr *)oiph)->saddr, iphdr 1641 drivers/net/vxlan.c ((struct iphdr *)oiph)->tos); iphdr 1989 drivers/net/vxlan.c const struct ipv6hdr *iphdr; iphdr 1998 drivers/net/vxlan.c iphdr = ipv6_hdr(skb); iphdr 1999 drivers/net/vxlan.c daddr = &iphdr->daddr; iphdr 2000 drivers/net/vxlan.c msg = (struct nd_msg *)(iphdr + 1); iphdr 2062 drivers/net/vxlan.c struct iphdr *pip; iphdr 2064 drivers/net/vxlan.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 2422 drivers/net/vxlan.c const struct iphdr *old_iph = ip_hdr(skb); iphdr 2551 drivers/net/vxlan.c err = vxlan_build_skb(skb, ndst, sizeof(struct iphdr), iphdr 3084 drivers/net/vxlan.c [IFLA_VXLAN_GROUP] = { .len = FIELD_SIZEOF(struct iphdr, daddr) }, iphdr 3087 drivers/net/vxlan.c [IFLA_VXLAN_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) }, iphdr 273 drivers/net/wireless/ath/ath6kl/wmi.c struct iphdr *ip_hdr = (struct iphdr *) pkt; iphdr 212 drivers/net/wireless/intel/ipw2x00/libipw_tx.c struct iphdr *ip; iphdr 2090 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iphdr *iphv4 = iph; iphdr 1501 drivers/net/wireless/realtek/rtlwifi/base.c const struct iphdr *ip; iphdr 1510 drivers/net/wireless/realtek/rtlwifi/base.c ip = (struct iphdr *)((u8 *)ether_type_ptr + iphdr 1222 drivers/net/wireless/ti/wl18xx/main.c struct iphdr *ip_hdr; iphdr 2010 drivers/s390/net/qeth_l3_main.c struct iphdr *iph = ip_hdr(skb); iphdr 340 drivers/staging/gdm724x/gdm_lte.c struct iphdr *ip; iphdr 373 drivers/staging/gdm724x/gdm_lte.c network_data + sizeof(struct iphdr); iphdr 614 drivers/staging/gdm724x/gdm_lte.c void *addr = buf + sizeof(struct iphdr) + iphdr 1605 drivers/staging/qlge/qlge_main.c struct iphdr *iph = iphdr 1606 drivers/staging/qlge/qlge_main.c (struct iphdr *)((u8 *)addr + hlen); iphdr 1720 drivers/staging/qlge/qlge_main.c struct iphdr *iph = (struct iphdr *) skb->data; iphdr 2031 drivers/staging/qlge/qlge_main.c struct iphdr *iph = (struct iphdr *) skb->data; iphdr 2584 drivers/staging/qlge/qlge_main.c struct iphdr *iph = ip_hdr(skb); iphdr 2607 drivers/staging/qlge/qlge_main.c struct iphdr *iph = ip_hdr(skb); iphdr 375 drivers/staging/rtl8188eu/core/rtw_xmit.c struct iphdr ip_hdr; iphdr 264 drivers/staging/rtl8188eu/os_dep/os_intfs.c struct iphdr *piphdr; iphdr 274 drivers/staging/rtl8188eu/os_dep/os_intfs.c piphdr = (struct iphdr *)(pdata + ETH_HLEN); iphdr 237 drivers/staging/rtl8192e/rtllib_tx.c struct iphdr *ip; iphdr 618 drivers/staging/rtl8192e/rtllib_tx.c const struct iphdr *ip = (struct iphdr *) iphdr 264 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c struct iphdr *ip; iphdr 69 drivers/staging/rtl8712/xmit_linux.c struct iphdr ip_hdr; iphdr 658 drivers/staging/rtl8723bs/core/rtw_xmit.c struct iphdr ip_hdr; iphdr 743 drivers/staging/rtl8723bs/core/rtw_xmit.c struct iphdr *piphdr = (struct iphdr *)tmp; iphdr 414 drivers/staging/rtl8723bs/os_dep/os_intfs.c struct iphdr *piphdr; iphdr 425 drivers/staging/rtl8723bs/os_dep/os_intfs.c piphdr = (struct iphdr *)(pdata + ETH_HLEN); iphdr 142 drivers/staging/wilc1000/wilc_wlan.c const struct iphdr *ip_hdr_ptr; iphdr 763 drivers/target/iscsi/cxgbit/cxgbit_cm.c sizeof(struct iphdr) : sizeof(struct ipv6hdr)) - iphdr 1311 drivers/target/iscsi/cxgbit/cxgbit_cm.c hdrs = (iptype == 4 ? sizeof(struct iphdr) : sizeof(struct ipv6hdr)) + iphdr 19 include/linux/ip.h static inline struct iphdr *ip_hdr(const struct sk_buff *skb) iphdr 21 include/linux/ip.h return (struct iphdr *)skb_network_header(skb); iphdr 24 include/linux/ip.h static inline struct iphdr *inner_ip_hdr(const struct sk_buff *skb) iphdr 26 include/linux/ip.h return (struct iphdr *)skb_inner_network_header(skb); iphdr 29 include/linux/ip.h static inline struct iphdr *ipip_hdr(const struct sk_buff *skb) iphdr 31 include/linux/ip.h return (struct iphdr *)skb_transport_header(skb); iphdr 45 include/linux/ptp_classify.h #define IPV4_HLEN(data) (((struct iphdr *)(data + OFF_IHL))->ihl << 2) iphdr 16 include/net/dsfield.h static inline __u8 ipv4_get_dsfield(const struct iphdr *iph) iphdr 28 include/net/dsfield.h static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, iphdr 166 include/net/dst_metadata.h const struct iphdr *iph = ip_hdr(skb); iphdr 75 include/net/inet_ecn.h static inline int IP_ECN_set_ce(struct iphdr *iph) iphdr 102 include/net/inet_ecn.h static inline int IP_ECN_set_ect1(struct iphdr *iph) iphdr 116 include/net/inet_ecn.h static inline void IP_ECN_clear(struct iphdr *iph) iphdr 121 include/net/inet_ecn.h static inline void ipv4_copy_dscp(unsigned int dscp, struct iphdr *inner) iphdr 177 include/net/inet_ecn.h if (skb_network_header(skb) + sizeof(struct iphdr) <= iphdr 196 include/net/inet_ecn.h if (skb_network_header(skb) + sizeof(struct iphdr) <= iphdr 270 include/net/inet_ecn.h static inline int IP_ECN_decapsulate(const struct iphdr *oiph, iphdr 389 include/net/inet_hashtables.h const struct iphdr *iph = ip_hdr(skb); iphdr 168 include/net/ip.h struct iphdr *iph; iphdr 173 include/net/ip.h void ip_fraglist_init(struct sk_buff *skb, struct iphdr *iph, iphdr 203 include/net/ip.h void ip_send_check(struct iphdr *ip); iphdr 385 include/net/ip.h static inline bool ip_is_fragment(const struct iphdr *iph) iphdr 396 include/net/ip.h int ip_decrease_ttl(struct iphdr *iph) iphdr 495 include/net/ip.h void __ip_select_ident(struct net *net, struct iphdr *iph, int segs); iphdr 500 include/net/ip.h struct iphdr *iph = ip_hdr(skb); iphdr 536 include/net/ip.h const struct iphdr *iph) iphdr 547 include/net/ip.h const struct iphdr *iph = skb_gro_network_header(skb); iphdr 269 include/net/ip_tunnels.h const struct iphdr *tnl_params, const u8 protocol); iphdr 323 include/net/ip_tunnels.h nhlen = sizeof(struct iphdr); iphdr 374 include/net/ip_tunnels.h static inline u8 ip_tunnel_get_dsfield(const struct iphdr *iph, iphdr 385 include/net/ip_tunnels.h static inline u8 ip_tunnel_get_ttl(const struct iphdr *iph, iphdr 397 include/net/ip_tunnels.h static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, iphdr 71 include/net/ip_vs.h int hdr_flags, struct ip_vs_iphdr *iphdr) iphdr 73 include/net/ip_vs.h iphdr->hdr_flags = hdr_flags; iphdr 74 include/net/ip_vs.h iphdr->off = offset; iphdr 84 include/net/ip_vs.h iphdr->saddr.in6 = iph->saddr; iphdr 85 include/net/ip_vs.h iphdr->daddr.in6 = iph->daddr; iphdr 87 include/net/ip_vs.h iphdr->len = offset; iphdr 88 include/net/ip_vs.h iphdr->flags = 0; iphdr 89 include/net/ip_vs.h iphdr->protocol = ipv6_find_hdr(skb, &iphdr->len, -1, iphdr 90 include/net/ip_vs.h &iphdr->fragoffs, iphdr 91 include/net/ip_vs.h &iphdr->flags); iphdr 92 include/net/ip_vs.h if (iphdr->protocol < 0) iphdr 97 include/net/ip_vs.h struct iphdr _iph; iphdr 98 include/net/ip_vs.h const struct iphdr *iph = skb_header_pointer( iphdr 103 include/net/ip_vs.h iphdr->len = offset + iph->ihl * 4; iphdr 104 include/net/ip_vs.h iphdr->fragoffs = 0; iphdr 105 include/net/ip_vs.h iphdr->protocol = iph->protocol; iphdr 106 include/net/ip_vs.h iphdr->saddr.ip = iph->saddr; iphdr 107 include/net/ip_vs.h iphdr->daddr.ip = iph->daddr; iphdr 115 include/net/ip_vs.h bool inverse, struct ip_vs_iphdr *iphdr) iphdr 122 include/net/ip_vs.h return ip_vs_fill_iph_skb_off(af, skb, offset, hdr_flags, iphdr); iphdr 127 include/net/ip_vs.h struct ip_vs_iphdr *iphdr) iphdr 135 include/net/ip_vs.h hdr_flags, iphdr); iphdr 411 include/net/ip_vs.h struct iphdr; iphdr 795 include/net/ip_vs.h const struct iphdr *iph, int inverse); iphdr 799 include/net/ip_vs.h const struct iphdr *iph, int inverse); iphdr 15 include/net/netfilter/ipv4/nf_reject.h struct iphdr *nf_reject_iphdr_put(struct sk_buff *nskb, iphdr 46 include/net/netfilter/nf_queue.h static inline u32 hash_v4(const struct iphdr *iph, u32 initval) iphdr 82 include/net/netfilter/nf_queue.h struct iphdr *iph, _iph; iphdr 11 include/net/netfilter/nf_tables_ipv4.h struct iphdr *ip; iphdr 23 include/net/netfilter/nf_tables_ipv4.h struct iphdr *iph, _iph; iphdr 132 include/net/slhc_vj.h struct iphdr cs_ip; /* ip/tcp hdr from most recent packet */ iphdr 420 include/net/tcp.h u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph, iphdr 466 include/net/tcp.h int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th, iphdr 548 include/net/tcp.h u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th, iphdr 1573 include/net/xfrm.h XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); iphdr 768 include/rdma/ib_verbs.h struct iphdr roce4grh; iphdr 55 include/uapi/linux/if_tunnel.h struct iphdr iph; iphdr 71 include/uapi/linux/netfilter/nfnetlink_osf.h struct iphdr ip; iphdr 396 net/atm/br2684.c (((struct iphdr *)(skb->data))->daddr & brvcc->filter. iphdr 481 net/atm/br2684.c struct iphdr *iph; iphdr 495 net/atm/mpc.c struct iphdr *iph; iphdr 508 net/atm/mpc.c iph = (struct iphdr *)buff; iphdr 588 net/atm/mpc.c if (skb->len < ETH_HLEN + sizeof(struct iphdr)) iphdr 1498 net/batman-adv/distributed-arp-table.c struct iphdr *iphdr, _iphdr; iphdr 1500 net/batman-adv/distributed-arp-table.c iphdr = skb_header_pointer(skb, offset, sizeof(_iphdr), &_iphdr); iphdr 1501 net/batman-adv/distributed-arp-table.c if (!iphdr || iphdr->version != 4 || iphdr->ihl * 4 < sizeof(_iphdr)) iphdr 1504 net/batman-adv/distributed-arp-table.c if (iphdr->protocol != IPPROTO_UDP) iphdr 1507 net/batman-adv/distributed-arp-table.c offset += iphdr->ihl * 4; iphdr 1514 net/batman-adv/distributed-arp-table.c *ip_src = get_unaligned(&iphdr->saddr); iphdr 626 net/batman-adv/gateway_client.c struct iphdr *iphdr; iphdr 655 net/batman-adv/gateway_client.c if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) iphdr 658 net/batman-adv/gateway_client.c iphdr = (struct iphdr *)(skb->data + *header_len); iphdr 659 net/batman-adv/gateway_client.c *header_len += iphdr->ihl * 4; iphdr 662 net/batman-adv/gateway_client.c if (iphdr->protocol != IPPROTO_UDP) iphdr 382 net/batman-adv/main.c struct iphdr ip_hdr_tmp, *ip_hdr; iphdr 996 net/batman-adv/multicast.c struct iphdr *iphdr; iphdr 999 net/batman-adv/multicast.c if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*iphdr))) iphdr 1005 net/batman-adv/multicast.c iphdr = ip_hdr(skb); iphdr 1010 net/batman-adv/multicast.c if (ipv4_is_local_multicast(iphdr->daddr)) iphdr 393 net/bridge/br_arp_nd_proxy.c struct ipv6hdr *iphdr; iphdr 411 net/bridge/br_arp_nd_proxy.c iphdr = ipv6_hdr(skb); iphdr 412 net/bridge/br_arp_nd_proxy.c saddr = &iphdr->saddr; iphdr 413 net/bridge/br_arp_nd_proxy.c daddr = &iphdr->daddr; iphdr 225 net/bridge/br_multicast.c struct iphdr *iph; iphdr 1221 net/bridge/br_multicast.c const struct iphdr *iph = ip_hdr(skb); iphdr 198 net/bridge/br_netfilter_hooks.c const struct iphdr *iph; iphdr 201 net/bridge/br_netfilter_hooks.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 355 net/bridge/br_netfilter_hooks.c struct iphdr *iph = ip_hdr(skb); iphdr 708 net/bridge/br_netfilter_hooks.c struct iphdr *iph = ip_hdr(skb); iphdr 74 net/bridge/netfilter/ebt_among.c const struct iphdr *ih; iphdr 75 net/bridge/netfilter/ebt_among.c struct iphdr _iph; iphdr 105 net/bridge/netfilter/ebt_among.c const struct iphdr *ih; iphdr 106 net/bridge/netfilter/ebt_among.c struct iphdr _iph; iphdr 41 net/bridge/netfilter/ebt_ip.c const struct iphdr *ih; iphdr 42 net/bridge/netfilter/ebt_ip.c struct iphdr _iph; iphdr 99 net/bridge/netfilter/ebt_log.c const struct iphdr *ih; iphdr 100 net/bridge/netfilter/ebt_log.c struct iphdr _iph; iphdr 38 net/bridge/netfilter/nf_conntrack_bridge.c struct iphdr *iph; iphdr 195 net/bridge/netfilter/nf_conntrack_bridge.c const struct iphdr *iph; iphdr 245 net/bridge/netfilter/nf_conntrack_bridge.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 44 net/bridge/netfilter/nft_reject_bridge.c struct iphdr *iph; iphdr 47 net/bridge/netfilter/nft_reject_bridge.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 75 net/bridge/netfilter/nft_reject_bridge.c struct iphdr *niph; iphdr 86 net/bridge/netfilter/nft_reject_bridge.c nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + iphdr 109 net/bridge/netfilter/nft_reject_bridge.c struct iphdr *niph; iphdr 138 net/bridge/netfilter/nft_reject_bridge.c nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct icmphdr) + iphdr 3148 net/core/dev.c struct iphdr *iph = skb->encapsulation ? iphdr 2836 net/core/filter.c const u32 len_diff = sizeof(struct ipv6hdr) - sizeof(struct iphdr); iphdr 2877 net/core/filter.c const u32 len_diff = sizeof(struct ipv6hdr) - sizeof(struct iphdr); iphdr 2993 net/core/filter.c return sizeof(struct iphdr); iphdr 3080 net/core/filter.c sizeof(struct iphdr); iphdr 5732 net/core/filter.c iphdr_len = sizeof(struct iphdr); iphdr 5821 net/core/filter.c if (unlikely(iph_len < sizeof(struct iphdr))) iphdr 5824 net/core/filter.c ret = __cookie_v4_check((struct iphdr *)iph, th, cookie); iphdr 5880 net/core/filter.c if (unlikely(iph_len < sizeof(struct iphdr))) iphdr 5886 net/core/filter.c switch (((struct iphdr *)iph)->version) { iphdr 730 net/core/flow_dissector.c void *target_container, void *data, const struct iphdr *iph) iphdr 1007 net/core/flow_dissector.c const struct iphdr *iph; iphdr 1008 net/core/flow_dissector.c struct iphdr _iph; iphdr 92 net/core/lwt_bpf.c struct iphdr *iph = ip_hdr(skb); iphdr 202 net/core/lwt_bpf.c struct iphdr *iph = ip_hdr(skb); iphdr 551 net/core/lwt_bpf.c next_hdr_offset = sizeof(struct iphdr); iphdr 594 net/core/lwt_bpf.c struct iphdr *iph; iphdr 598 net/core/lwt_bpf.c if (unlikely(len < sizeof(struct iphdr) || len > LWT_BPF_MAX_HEADROOM)) iphdr 602 net/core/lwt_bpf.c iph = (struct iphdr *)hdr; iphdr 56 net/core/netpoll.c sizeof(struct iphdr) + \ iphdr 367 net/core/netpoll.c struct iphdr *iph; iphdr 2106 net/core/pktgen.c pkt_dev->min_pkt_size = 14 + sizeof(struct iphdr) iphdr 2559 net/core/pktgen.c struct iphdr *iph; iphdr 2726 net/core/pktgen.c struct iphdr *iph; iphdr 2782 net/core/pktgen.c iph = skb_put(skb, sizeof(struct iphdr)); iphdr 4750 net/core/skbuff.c sizeof(struct iphdr), iphdr 25 net/core/tso.c struct iphdr *iph = (void *)(hdr + mac_hdr_len); iphdr 144 net/dccp/ipv4.c const struct iphdr *iph, iphdr 232 net/dccp/ipv4.c const struct iphdr *iph = (struct iphdr *)skb->data; iphdr 456 net/dccp/ipv4.c const struct iphdr *iph = ip_hdr(skb); iphdr 511 net/dccp/ipv4.c const struct iphdr *rxiph; iphdr 773 net/dccp/ipv4.c const struct iphdr *iph; iphdr 909 net/dccp/ipv4.c .net_header_len = sizeof(struct iphdr), iphdr 988 net/dccp/ipv6.c .net_header_len = sizeof(struct iphdr), iphdr 1304 net/ipv4/af_inet.c struct iphdr *iph; iphdr 1357 net/ipv4/af_inet.c iph = (struct iphdr *)(skb_mac_header(skb) + nhoff); iphdr 1411 net/ipv4/af_inet.c const struct iphdr *iph; iphdr 1449 net/ipv4/af_inet.c struct iphdr *iph2; iphdr 1455 net/ipv4/af_inet.c iph2 = (struct iphdr *)(p->data + off); iphdr 1584 net/ipv4/af_inet.c struct iphdr *iph = (struct iphdr *)(skb->data + nhoff); iphdr 80 net/ipv4/ah4.c static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr) iphdr 83 net/ipv4/ah4.c int l = iph->ihl*4 - sizeof(struct iphdr); iphdr 123 net/ipv4/ah4.c struct iphdr *iph; iphdr 127 net/ipv4/ah4.c struct iphdr *top_iph = ip_hdr(skb); iphdr 140 net/ipv4/ah4.c memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); iphdr 157 net/ipv4/ah4.c struct iphdr *iph, *top_iph; iphdr 200 net/ipv4/ah4.c memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); iphdr 256 net/ipv4/ah4.c memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); iphdr 269 net/ipv4/ah4.c struct iphdr *work_iph; iphdr 315 net/ipv4/ah4.c struct iphdr *iph, *work_iph; iphdr 445 net/ipv4/ah4.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 526 net/ipv4/ah4.c x->props.header_len += sizeof(struct iphdr); iphdr 1509 net/ipv4/cipso_ipv4.c const struct iphdr *iph = ip_hdr(skb); iphdr 1514 net/ipv4/cipso_ipv4.c for (optlen = iph->ihl*4 - sizeof(struct iphdr); optlen > 1; ) { iphdr 1740 net/ipv4/cipso_ipv4.c opt->optlen = ip_hdr(skb)->ihl*4 - sizeof(struct iphdr); iphdr 1882 net/ipv4/cipso_ipv4.c opt->opt.cipso = sizeof(struct iphdr); iphdr 1959 net/ipv4/cipso_ipv4.c opt->opt.cipso = sizeof(struct iphdr); iphdr 2000 net/ipv4/cipso_ipv4.c cipso_off = opt->opt.cipso - sizeof(struct iphdr); iphdr 2152 net/ipv4/cipso_ipv4.c sizeof(struct iphdr), iphdr 2173 net/ipv4/cipso_ipv4.c struct iphdr *iph; iphdr 2217 net/ipv4/cipso_ipv4.c opt->cipso = sizeof(struct iphdr); iphdr 2249 net/ipv4/cipso_ipv4.c struct iphdr *iph; iphdr 245 net/ipv4/esp4.c if (len + sizeof(struct iphdr) >= IP_MAX_MTU) iphdr 581 net/ipv4/esp4.c const struct iphdr *iph; iphdr 792 net/ipv4/esp4.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 975 net/ipv4/esp4.c x->props.header_len += sizeof(struct iphdr); iphdr 74 net/ipv4/esp4_offload.c XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); iphdr 95 net/ipv4/esp4_offload.c struct iphdr *iph = ip_hdr(skb); iphdr 145 net/ipv4/fou.c switch (((struct iphdr *)guehdr)->version) { iphdr 343 net/ipv4/fou.c switch (((struct iphdr *)guehdr)->version) { iphdr 473 net/ipv4/fou.c switch (((struct iphdr *)guehdr)->version) { iphdr 1147 net/ipv4/fou.c switch (((struct iphdr *)guehdr)->version) { iphdr 177 net/ipv4/gre_demux.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 463 net/ipv4/icmp.c const struct iphdr *iph, iphdr 572 net/ipv4/icmp.c struct iphdr *iph; iphdr 731 net/ipv4/icmp.c room -= sizeof(struct iphdr) + icmp_param.replyopts.opt.opt.optlen; iphdr 753 net/ipv4/icmp.c const struct iphdr *iph = (const struct iphdr *) skb->data; iphdr 789 net/ipv4/icmp.c const struct iphdr *iph; iphdr 802 net/ipv4/icmp.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 806 net/ipv4/icmp.c iph = (const struct iphdr *)skb->data; iphdr 902 net/ipv4/icmp.c if (skb->len < sizeof(struct iphdr)) { iphdr 907 net/ipv4/icmp.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) { iphdr 1011 net/ipv4/icmp.c if (!pskb_may_pull(skb, sizeof(*icmph) + sizeof(struct iphdr))) iphdr 1087 net/ipv4/icmp.c struct iphdr *iph = (struct iphdr *)skb->data; iphdr 269 net/ipv4/igmp.c #define IGMP_SIZE (sizeof(struct igmphdr)+sizeof(struct iphdr)+4) iphdr 352 net/ipv4/igmp.c struct iphdr *pip; iphdr 387 net/ipv4/igmp.c skb_put(skb, sizeof(struct iphdr) + 4); iphdr 390 net/ipv4/igmp.c pip->ihl = (sizeof(struct iphdr)+4)>>2; iphdr 408 net/ipv4/igmp.c skb->transport_header = skb->network_header + sizeof(struct iphdr) + 4; iphdr 728 net/ipv4/igmp.c struct iphdr *iph; iphdr 770 net/ipv4/igmp.c skb_put(skb, sizeof(struct iphdr) + 4); iphdr 773 net/ipv4/igmp.c iph->ihl = (sizeof(struct iphdr)+4)>>2; iphdr 1484 net/ipv4/igmp.c const struct iphdr *iph; iphdr 89 net/ipv4/ip_forward.c struct iphdr *iph; /* Our header */ iphdr 136 net/ipv4/ip_fragment.c const struct iphdr *iph; iphdr 203 net/ipv4/ip_fragment.c static struct ipq *ip_find(struct net *net, struct iphdr *iph, iphdr 406 net/ipv4/ip_fragment.c struct iphdr *iph; iphdr 505 net/ipv4/ip_fragment.c struct iphdr iph; iphdr 138 net/ipv4/ip_gre.c const struct iphdr *iph; iphdr 152 net/ipv4/ip_gre.c iph = (const struct iphdr *)(icmp_hdr(skb) + 1); iphdr 228 net/ipv4/ip_gre.c const struct iphdr *iph = (struct iphdr *)skb->data; iphdr 259 net/ipv4/ip_gre.c const struct iphdr *iph; iphdr 335 net/ipv4/ip_gre.c const struct iphdr *iph; iphdr 431 net/ipv4/ip_gre.c const struct iphdr *tnl_params, iphdr 595 net/ipv4/ip_gre.c const struct iphdr *tnl_params; iphdr 608 net/ipv4/ip_gre.c (tunnel->hlen + sizeof(struct iphdr)))) iphdr 611 net/ipv4/ip_gre.c tnl_params = (const struct iphdr *)skb->data; iphdr 616 net/ipv4/ip_gre.c skb_pull(skb, tunnel->hlen + sizeof(struct iphdr)); iphdr 820 net/ipv4/ip_gre.c struct iphdr *iph; iphdr 828 net/ipv4/ip_gre.c memcpy(iph, &t->parms.iph, sizeof(struct iphdr)); iphdr 843 net/ipv4/ip_gre.c const struct iphdr *iph = (const struct iphdr *) skb_mac_header(skb); iphdr 954 net/ipv4/ip_gre.c struct iphdr *iph = &tunnel->parms.iph; iphdr 1532 net/ipv4/ip_gre.c [IFLA_GRE_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) }, iphdr 1533 net/ipv4/ip_gre.c [IFLA_GRE_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) }, iphdr 260 net/ipv4/ip_input.c const struct iphdr *iph; iphdr 276 net/ipv4/ip_input.c opt->optlen = iph->ihl*4 - sizeof(struct iphdr); iphdr 310 net/ipv4/ip_input.c const struct iphdr *iph = ip_hdr(skb); iphdr 422 net/ipv4/ip_input.c const struct iphdr *iph; iphdr 439 net/ipv4/ip_input.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 50 net/ipv4/ip_options.c memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); iphdr 108 net/ipv4/ip_options.c dopt->rr = dopt->optlen + sizeof(struct iphdr); iphdr 122 net/ipv4/ip_options.c dopt->ts = dopt->optlen + sizeof(struct iphdr); iphdr 183 net/ipv4/ip_options.c dopt->srr = dopt->optlen + sizeof(struct iphdr); iphdr 190 net/ipv4/ip_options.c dopt->cipso = dopt->optlen+sizeof(struct iphdr); iphdr 210 net/ipv4/ip_options.c unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); iphdr 270 net/ipv4/ip_options.c iph = optptr - sizeof(struct iphdr); iphdr 498 net/ipv4/ip_options.c unsigned char *optptr = opt->__data+opt->srr-sizeof(struct iphdr); iphdr 503 net/ipv4/ip_options.c unsigned char *optptr = opt->__data+opt->rr-sizeof(struct iphdr); iphdr 508 net/ipv4/ip_options.c unsigned char *optptr = opt->__data+opt->ts-sizeof(struct iphdr); iphdr 621 net/ipv4/ip_options.c struct iphdr *iph = ip_hdr(skb); iphdr 91 net/ipv4/ip_output.c void ip_send_check(struct iphdr *iph) iphdr 100 net/ipv4/ip_output.c struct iphdr *iph = ip_hdr(skb); iphdr 150 net/ipv4/ip_output.c struct iphdr *iph; iphdr 153 net/ipv4/ip_output.c skb_push(skb, sizeof(struct iphdr) + (opt ? opt->opt.optlen : 0)); iphdr 444 net/ipv4/ip_output.c static void ip_copy_addrs(struct iphdr *iph, const struct flowi4 *fl4) iphdr 461 net/ipv4/ip_output.c struct iphdr *iph; iphdr 506 net/ipv4/ip_output.c skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); iphdr 572 net/ipv4/ip_output.c struct iphdr *iph = ip_hdr(skb); iphdr 590 net/ipv4/ip_output.c void ip_fraglist_init(struct sk_buff *skb, struct iphdr *iph, iphdr 625 net/ipv4/ip_output.c struct iphdr *iph = iter->iph; iphdr 651 net/ipv4/ip_output.c struct iphdr *iph = ip_hdr(skb); iphdr 686 net/ipv4/ip_output.c struct iphdr *iph; iphdr 769 net/ipv4/ip_output.c struct iphdr *iph; iphdr 993 net/ipv4/ip_output.c fragheaderlen = sizeof(struct iphdr) + (opt ? opt->optlen : 0); iphdr 1356 net/ipv4/ip_output.c fragheaderlen = sizeof(struct iphdr) + (opt ? opt->optlen : 0); iphdr 1476 net/ipv4/ip_output.c struct iphdr *iph; iphdr 409 net/ipv4/ip_sockglue.c serr->addr_offset = (u8 *)&(((struct iphdr *)(icmp_hdr(skb) + 1))->daddr) - iphdr 425 net/ipv4/ip_sockglue.c struct iphdr *iph; iphdr 431 net/ipv4/ip_sockglue.c skb = alloc_skb(sizeof(struct iphdr), GFP_ATOMIC); iphdr 435 net/ipv4/ip_sockglue.c skb_put(skb, sizeof(struct iphdr)); iphdr 281 net/ipv4/ip_tunnel.c const struct iphdr *iph; iphdr 284 net/ipv4/ip_tunnel.c int t_hlen = tunnel->hlen + sizeof(struct iphdr); iphdr 346 net/ipv4/ip_tunnel.c t_hlen = nt->hlen + sizeof(struct iphdr); iphdr 362 net/ipv4/ip_tunnel.c const struct iphdr *iph = ip_hdr(skb); iphdr 487 net/ipv4/ip_tunnel.c const struct iphdr *inner_iph, iphdr 499 net/ipv4/ip_tunnel.c - sizeof(struct iphdr) - tunnel_hlen; iphdr 547 net/ipv4/ip_tunnel.c u32 headroom = sizeof(struct iphdr); iphdr 550 net/ipv4/ip_tunnel.c const struct iphdr *inner_iph; iphdr 563 net/ipv4/ip_tunnel.c inner_iph = (const struct iphdr *)skb_inner_network_header(skb); iphdr 640 net/ipv4/ip_tunnel.c const struct iphdr *tnl_params, u8 protocol) iphdr 644 net/ipv4/ip_tunnel.c const struct iphdr *inner_iph; iphdr 655 net/ipv4/ip_tunnel.c inner_iph = (const struct iphdr *)skb_inner_network_header(skb); iphdr 802 net/ipv4/ip_tunnel.c max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr) iphdr 968 net/ipv4/ip_tunnel.c int t_hlen = tunnel->hlen + sizeof(struct iphdr); iphdr 1149 net/ipv4/ip_tunnel.c (unsigned int)(max - sizeof(struct iphdr))); iphdr 1207 net/ipv4/ip_tunnel.c struct iphdr *iph = &tunnel->parms.iph; iphdr 53 net/ipv4/ip_tunnel_core.c struct iphdr *iph; iphdr 63 net/ipv4/ip_tunnel_core.c skb_push(skb, sizeof(struct iphdr)); iphdr 69 net/ipv4/ip_tunnel_core.c iph->ihl = sizeof(struct iphdr) >> 2; iphdr 51 net/ipv4/ip_vti.c const struct iphdr *iph = ip_hdr(skb); iphdr 84 net/ipv4/ip_vti.c XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); iphdr 97 net/ipv4/ip_vti.c const struct iphdr *iph = ip_hdr(skb); iphdr 349 net/ipv4/ip_vti.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 457 net/ipv4/ip_vti.c struct iphdr *iph = &tunnel->parms.iph; iphdr 473 net/ipv4/ip_vti.c struct iphdr *iph = &tunnel->parms.iph; iphdr 635 net/ipv4/ip_vti.c [IFLA_VTI_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) }, iphdr 636 net/ipv4/ip_vti.c [IFLA_VTI_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) }, iphdr 26 net/ipv4/ipcomp.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 127 net/ipv4/ipcomp.c x->props.header_len += sizeof(struct iphdr); iphdr 604 net/ipv4/ipconfig.c struct iphdr iph; /* IP header */ iphdr 801 net/ipv4/ipconfig.c struct iphdr *h; iphdr 828 net/ipv4/ipconfig.c b->udph.len = htons(sizeof(struct bootp_pkt) - sizeof(struct iphdr)); iphdr 961 net/ipv4/ipconfig.c struct iphdr *h; iphdr 977 net/ipv4/ipconfig.c sizeof(struct iphdr) + iphdr 1002 net/ipv4/ipconfig.c if (ntohs(h->tot_len) < ntohs(b->udph.len) + sizeof(struct iphdr)) iphdr 1007 net/ipv4/ipconfig.c sizeof(struct iphdr) - iphdr 132 net/ipv4/ipip.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 218 net/ipv4/ipip.c const struct iphdr *iph; iphdr 275 net/ipv4/ipip.c const struct iphdr *tiph = &tunnel->parms.iph; iphdr 557 net/ipv4/ipmr.c dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr) - 8; iphdr 605 net/ipv4/ipmr.c struct iphdr *encap; iphdr 607 net/ipv4/ipmr.c encap = (struct iphdr *)(skb_transport_header(skb) + pimlen); iphdr 752 net/ipv4/ipmr.c sizeof(struct iphdr)); iphdr 1013 net/ipv4/ipmr.c sizeof(struct iphdr)); iphdr 1050 net/ipv4/ipmr.c skb = skb_realloc_headroom(pkt, sizeof(struct iphdr)); iphdr 1063 net/ipv4/ipmr.c skb_push(skb, sizeof(struct iphdr)); iphdr 1067 net/ipv4/ipmr.c memcpy(msg, skb_network_header(pkt), sizeof(struct iphdr)); iphdr 1074 net/ipv4/ipmr.c ip_hdr(skb)->ihl = sizeof(struct iphdr) >> 2; iphdr 1076 net/ipv4/ipmr.c sizeof(struct iphdr)); iphdr 1121 net/ipv4/ipmr.c const struct iphdr *iph = ip_hdr(skb); iphdr 1776 net/ipv4/ipmr.c struct iphdr *iph; iphdr 1777 net/ipv4/ipmr.c const struct iphdr *old_iph = ip_hdr(skb); iphdr 1779 net/ipv4/ipmr.c skb_push(skb, sizeof(struct iphdr)); iphdr 1841 net/ipv4/ipmr.c const struct iphdr *iph = ip_hdr(skb); iphdr 1871 net/ipv4/ipmr.c encap = sizeof(struct iphdr); iphdr 2072 net/ipv4/ipmr.c struct iphdr *iph = ip_hdr(skb); iphdr 2209 net/ipv4/ipmr.c if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(struct iphdr))) iphdr 2236 net/ipv4/ipmr.c if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(struct iphdr))) iphdr 2279 net/ipv4/ipmr.c struct iphdr *iph; iphdr 2293 net/ipv4/ipmr.c skb2 = skb_realloc_headroom(skb, sizeof(struct iphdr)); iphdr 2301 net/ipv4/ipmr.c skb_push(skb2, sizeof(struct iphdr)); iphdr 2304 net/ipv4/ipmr.c iph->ihl = sizeof(struct iphdr) >> 2; iphdr 22 net/ipv4/netfilter.c const struct iphdr *iph = ip_hdr(skb); iphdr 45 net/ipv4/netfilter/ip_tables.c ip_packet_match(const struct iphdr *ip, iphdr 231 net/ipv4/netfilter/ip_tables.c const struct iphdr *ip; iphdr 340 net/ipv4/netfilter/ipt_CLUSTERIP.c const struct iphdr *iph = ip_hdr(skb); iphdr 28 net/ipv4/netfilter/ipt_ECN.c struct iphdr *iph = ip_hdr(skb); iphdr 32 net/ipv4/netfilter/ipt_ECN.c if (skb_ensure_writable(skb, sizeof(struct iphdr))) iphdr 57 net/ipv4/netfilter/ipt_rpfilter.c const struct iphdr *iph; iphdr 43 net/ipv4/netfilter/iptable_mangle.c const struct iphdr *iph; iphdr 26 net/ipv4/netfilter/nf_dup_ipv4.c const struct iphdr *iph = ip_hdr(skb); iphdr 53 net/ipv4/netfilter/nf_dup_ipv4.c struct iphdr *iph; iphdr 39 net/ipv4/netfilter/nf_log_ipv4.c struct iphdr _iph; iphdr 40 net/ipv4/netfilter/nf_log_ipv4.c const struct iphdr *ih; iphdr 77 net/ipv4/netfilter/nf_log_ipv4.c ih->ihl * 4 > sizeof(struct iphdr)) { iphdr 79 net/ipv4/netfilter/nf_log_ipv4.c unsigned char _opt[4 * 15 - sizeof(struct iphdr)]; iphdr 82 net/ipv4/netfilter/nf_log_ipv4.c optsize = ih->ihl * 4 - sizeof(struct iphdr); iphdr 117 net/ipv4/netfilter/nf_log_ipv4.c = 8 + sizeof(struct iphdr), iphdr 119 net/ipv4/netfilter/nf_log_ipv4.c = 8 + sizeof(struct iphdr), iphdr 121 net/ipv4/netfilter/nf_log_ipv4.c = 8 + sizeof(struct iphdr), iphdr 124 net/ipv4/netfilter/nf_log_ipv4.c = 8 + sizeof(struct iphdr), iphdr 126 net/ipv4/netfilter/nf_log_ipv4.c = 8 + sizeof(struct iphdr), iphdr 128 net/ipv4/netfilter/nf_nat_snmp_basic_main.c struct iphdr *iph = ip_hdr(skb); iphdr 166 net/ipv4/netfilter/nf_nat_snmp_basic_main.c const struct iphdr *iph = ip_hdr(skb); iphdr 44 net/ipv4/netfilter/nf_reject_ipv4.c struct iphdr *nf_reject_iphdr_put(struct sk_buff *nskb, iphdr 48 net/ipv4/netfilter/nf_reject_ipv4.c struct iphdr *niph, *oiph = ip_hdr(oldskb); iphdr 51 net/ipv4/netfilter/nf_reject_ipv4.c niph = skb_put(nskb, sizeof(struct iphdr)); iphdr 53 net/ipv4/netfilter/nf_reject_ipv4.c niph->ihl = sizeof(struct iphdr) / 4; iphdr 72 net/ipv4/netfilter/nf_reject_ipv4.c struct iphdr *niph = ip_hdr(nskb); iphdr 104 net/ipv4/netfilter/nf_reject_ipv4.c struct iphdr *niph; iphdr 115 net/ipv4/netfilter/nf_reject_ipv4.c nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + iphdr 172 net/ipv4/netfilter/nf_reject_ipv4.c struct iphdr *iph = ip_hdr(skb_in); iphdr 25 net/ipv4/netfilter/nf_socket_ipv4.c struct iphdr *inside_iph, _inside_iph; iphdr 97 net/ipv4/netfilter/nf_socket_ipv4.c const struct iphdr *iph = ip_hdr(skb); iphdr 22 net/ipv4/netfilter/nf_tproxy_ipv4.c const struct iphdr *iph = ip_hdr(skb); iphdr 34 net/ipv4/netfilter/nft_fib_ipv4.c struct iphdr *iph, _iph; iphdr 63 net/ipv4/netfilter/nft_fib_ipv4.c struct iphdr *iph, _iph; iphdr 169 net/ipv4/raw.c static int raw_v4_input(struct sk_buff *skb, const struct iphdr *iph, int hash) iphdr 272 net/ipv4/raw.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 290 net/ipv4/raw.c const struct iphdr *iph; iphdr 301 net/ipv4/raw.c iph = (const struct iphdr *)skb->data; iphdr 309 net/ipv4/raw.c iph = (const struct iphdr *)skb->data; iphdr 350 net/ipv4/raw.c struct iphdr *iph; iphdr 362 net/ipv4/raw.c if (length < sizeof(struct iphdr)) iphdr 506 net/ipv4/route.c void __ip_select_ident(struct net *net, struct iphdr *iph, int segs) iphdr 526 net/ipv4/route.c const struct iphdr *iph, iphdr 549 net/ipv4/route.c const struct iphdr *iph = ip_hdr(skb); iphdr 805 net/ipv4/route.c const struct iphdr *iph = (const struct iphdr *) skb->data; iphdr 822 net/ipv4/route.c const struct iphdr *iph = (const struct iphdr *) skb->data; iphdr 1058 net/ipv4/route.c const struct iphdr *iph = (const struct iphdr *) skb->data; iphdr 1075 net/ipv4/route.c const struct iphdr *iph = (const struct iphdr *) skb->data; iphdr 1093 net/ipv4/route.c const struct iphdr *iph = (const struct iphdr *) skb->data; iphdr 1148 net/ipv4/route.c const struct iphdr *iph = (const struct iphdr *) skb->data; iphdr 1164 net/ipv4/route.c const struct iphdr *iph = (const struct iphdr *) skb->data; iphdr 1203 net/ipv4/route.c if (!pskb_network_may_pull(skb, sizeof(struct iphdr)) || iphdr 1211 net/ipv4/route.c opt.optlen = ip_hdr(skb)->ihl * 4 - sizeof(struct iphdr); iphdr 1261 net/ipv4/route.c struct iphdr *iph = ip_hdr(skb); iphdr 1295 net/ipv4/route.c unsigned int header_size = sizeof(struct tcphdr) + sizeof(struct iphdr); iphdr 1879 net/ipv4/route.c const struct iphdr *outer_iph = ip_hdr(skb); iphdr 1880 net/ipv4/route.c const struct iphdr *key_iph = outer_iph; iphdr 1881 net/ipv4/route.c const struct iphdr *inner_iph; iphdr 1883 net/ipv4/route.c struct iphdr _inner_iph; iphdr 2950 net/ipv4/route.c struct iphdr *iph; iphdr 2962 net/ipv4/route.c iph = skb_put(skb, sizeof(struct iphdr)); iphdr 161 net/ipv4/syncookies.c u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th, iphdr 180 net/ipv4/syncookies.c const struct iphdr *iph = ip_hdr(skb); iphdr 190 net/ipv4/syncookies.c int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th, iphdr 119 net/ipv4/tcp_fastopen.c const struct iphdr *iph = ip_hdr(syn); iphdr 426 net/ipv4/tcp_ipv4.c const struct iphdr *iph = (const struct iphdr *)icmp_skb->data; iphdr 1253 net/ipv4/tcp_ipv4.c const struct iphdr *iph = ip_hdr(skb); iphdr 1304 net/ipv4/tcp_ipv4.c const struct iphdr *iph = ip_hdr(skb); iphdr 1525 net/ipv4/tcp_ipv4.c u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph, iphdr 1612 net/ipv4/tcp_ipv4.c const struct iphdr *iph; iphdr 1782 net/ipv4/tcp_ipv4.c static void tcp_v4_fill_cb(struct sk_buff *skb, const struct iphdr *iph, iphdr 1813 net/ipv4/tcp_ipv4.c const struct iphdr *iph; iphdr 2054 net/ipv4/tcp_ipv4.c .net_header_len = sizeof(struct iphdr), iphdr 39 net/ipv4/tcp_offload.c const struct iphdr *iph = ip_hdr(skb); iphdr 321 net/ipv4/tcp_offload.c const struct iphdr *iph = ip_hdr(skb); iphdr 99 net/ipv4/tunnel4.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 480 net/ipv4/udp.c const struct iphdr *iph = ip_hdr(skb); iphdr 490 net/ipv4/udp.c const struct iphdr *iph = ip_hdr(skb); iphdr 583 net/ipv4/udp.c const struct iphdr *iph, iphdr 635 net/ipv4/udp.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 2438 net/ipv4/udp.c const struct iphdr *iph; iphdr 295 net/ipv4/udp_offload.c struct iphdr *iph; iphdr 544 net/ipv4/udp_offload.c const struct iphdr *iph = ip_hdr(skb); iphdr 36 net/ipv4/xfrm4_input.c const struct iphdr *iph = ip_hdr(skb); iphdr 55 net/ipv4/xfrm4_input.c struct iphdr *iph = ip_hdr(skb); iphdr 91 net/ipv4/xfrm4_input.c struct iphdr *iph; iphdr 100 net/ipv4/xfrm4_output.c struct iphdr *hdr; iphdr 70 net/ipv4/xfrm4_protocol.c XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); iphdr 20 net/ipv4/xfrm4_state.c const struct iphdr *iph = ip_hdr(skb); iphdr 35 net/ipv4/xfrm4_tunnel.c x->props.header_len = sizeof(struct iphdr); iphdr 876 net/ipv6/esp6.c (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); iphdr 110 net/ipv6/fou6.c switch (((struct iphdr *)guehdr)->version) { iphdr 637 net/ipv6/ip6_gre.c const struct iphdr *iph = ip_hdr(skb); iphdr 565 net/ipv6/ip6_tunnel.c const struct iphdr *eiph; iphdr 598 net/ipv6/ip6_tunnel.c if (!pskb_may_pull(skb, offset + sizeof(struct iphdr))) iphdr 1233 net/ipv6/ip6_tunnel.c const struct iphdr *iph; iphdr 331 net/ipv6/netfilter/nf_log_ipv6.c const struct iphdr *iph = iphdr 332 net/ipv6/netfilter/nf_log_ipv6.c (struct iphdr *)skb_mac_header(skb); iphdr 359 net/ipv6/seg6_local.c struct iphdr *iph; iphdr 366 net/ipv6/seg6_local.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 377 net/ipv6/seg6_local.c skb_set_transport_header(skb, sizeof(struct iphdr)); iphdr 445 net/ipv6/sit.c isatap_chksrc(struct sk_buff *skb, const struct iphdr *iph, struct ip_tunnel *t) iphdr 488 net/ipv6/sit.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 601 net/ipv6/sit.c const struct iphdr *iph, iphdr 639 net/ipv6/sit.c const struct iphdr *iph = ip_hdr(skb); iphdr 671 net/ipv6/sit.c iph = (const struct iphdr *)skb_mac_header(skb); iphdr 716 net/ipv6/sit.c const struct iphdr *iph; iphdr 820 net/ipv6/sit.c const struct iphdr *tiph = &tunnel->parms.iph; iphdr 834 net/ipv6/sit.c int t_hlen = tunnel->hlen + sizeof(struct iphdr); iphdr 1013 net/ipv6/sit.c const struct iphdr *tiph = &tunnel->parms.iph; iphdr 1063 net/ipv6/sit.c const struct iphdr *iph; iphdr 1089 net/ipv6/sit.c int t_hlen = tunnel->hlen + sizeof(struct iphdr); iphdr 1091 net/ipv6/sit.c dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr); iphdr 1374 net/ipv6/sit.c int t_hlen = tunnel->hlen + sizeof(struct iphdr); iphdr 1420 net/ipv6/sit.c struct iphdr *iph = &tunnel->parms.iph; iphdr 1780 net/ipv6/tcp_ipv6.c .net_header_len = sizeof(struct iphdr), iphdr 111 net/ipv6/tunnel6.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 1072 net/l2tp/l2tp_core.c headroom = NET_SKB_PAD + sizeof(struct iphdr) + iphdr 121 net/l2tp/l2tp_ip.c struct iphdr *iph; iphdr 180 net/l2tp/l2tp_ip.c iph = (struct iphdr *)skb_network_header(skb); iphdr 447 net/l2tp/l2tp_ip.c skb = sock_wmalloc(sk, 2 + NET_SKB_PAD + sizeof(struct iphdr) + iphdr 455 net/l2tp/l2tp_ip.c skb_reserve(skb, sizeof(struct iphdr)); iphdr 298 net/l2tp/l2tp_ppp.c skb = sock_wmalloc(sk, NET_SKB_PAD + sizeof(struct iphdr) + iphdr 308 net/l2tp/l2tp_ppp.c skb_reserve(skb, sizeof(struct iphdr)); iphdr 371 net/l2tp/l2tp_ppp.c sizeof(struct iphdr) + /* IP header */ iphdr 197 net/mpls/af_mpls.c if (pskb_may_pull(skb, mpls_hdr_len + sizeof(struct iphdr))) { iphdr 198 net/mpls/af_mpls.c const struct iphdr *v4hdr; iphdr 200 net/mpls/af_mpls.c v4hdr = (const struct iphdr *)(hdr + 1); iphdr 294 net/mpls/af_mpls.c struct iphdr *hdr4 = ip_hdr(skb); iphdr 101 net/netfilter/ipset/ip_set_getport.c const struct iphdr *iph = ip_hdr(skb); iphdr 769 net/netfilter/ipvs/ip_vs_core.c struct iphdr *iph = ip_hdr(skb); iphdr 773 net/netfilter/ipvs/ip_vs_core.c struct iphdr *ciph = (struct iphdr *)(icmph + 1); iphdr 936 net/netfilter/ipvs/ip_vs_core.c struct iphdr *iph; iphdr 938 net/netfilter/ipvs/ip_vs_core.c struct iphdr _ciph, *cih; /* The ip header contained within the ICMP */ iphdr 1656 net/netfilter/ipvs/ip_vs_core.c struct iphdr *iph; iphdr 1658 net/netfilter/ipvs/ip_vs_core.c struct iphdr _ciph, *cih; /* The ip header contained within the ICMP */ iphdr 1831 net/netfilter/ipvs/ip_vs_core.c if (mtu > 68 + sizeof(struct iphdr)) iphdr 1832 net/netfilter/ipvs/ip_vs_core.c mtu -= sizeof(struct iphdr); iphdr 2239 net/netfilter/ipvs/ip_vs_core.c struct ip_vs_iphdr iphdr; iphdr 2241 net/netfilter/ipvs/ip_vs_core.c ip_vs_fill_iph_skb(AF_INET6, skb, false, &iphdr); iphdr 2242 net/netfilter/ipvs/ip_vs_core.c if (iphdr.protocol != IPPROTO_ICMPV6) iphdr 2249 net/netfilter/ipvs/ip_vs_core.c return ip_vs_in_icmp_v6(ipvs, skb, &r, state->hook, &iphdr); iphdr 221 net/netfilter/ipvs/ip_vs_proto.c struct iphdr _iph, *ih; iphdr 1804 net/netfilter/ipvs/ip_vs_sync.c sizeof(struct iphdr) + sizeof(struct udphdr); iphdr 295 net/netfilter/ipvs/ip_vs_xmit.c if (skb_ensure_writable(skb, sizeof(struct iphdr))) iphdr 383 net/netfilter/ipvs/ip_vs_xmit.c mtu = dst_mtu(&rt->dst) - sizeof(struct iphdr); iphdr 707 net/netfilter/ipvs/ip_vs_xmit.c struct iphdr *iph = ip_hdr(skb); iphdr 819 net/netfilter/ipvs/ip_vs_xmit.c if (skb_ensure_writable(skb, sizeof(struct iphdr))) iphdr 953 net/netfilter/ipvs/ip_vs_xmit.c struct iphdr *old_iph = NULL; iphdr 1146 net/netfilter/ipvs/ip_vs_xmit.c struct iphdr *iph; /* Our new IP header */ iphdr 1170 net/netfilter/ipvs/ip_vs_xmit.c max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr); iphdr 1243 net/netfilter/ipvs/ip_vs_xmit.c skb_push(skb, sizeof(struct iphdr)); iphdr 1252 net/netfilter/ipvs/ip_vs_xmit.c iph->ihl = sizeof(struct iphdr)>>2; iphdr 24 net/netfilter/nf_conntrack_broadcast.c struct iphdr *iph = ip_hdr(skb); iphdr 257 net/netfilter/nf_conntrack_core.c nhoff += offsetof(struct iphdr, saddr); iphdr 323 net/netfilter/nf_conntrack_core.c const struct iphdr *iph; iphdr 324 net/netfilter/nf_conntrack_core.c struct iphdr _iph; iphdr 110 net/netfilter/nf_conntrack_irc.c const struct iphdr *iph; iphdr 74 net/netfilter/nf_flow_table_ip.c static int nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, iphdr 93 net/netfilter/nf_flow_table_ip.c struct iphdr *iph, unsigned int thoff, iphdr 118 net/netfilter/nf_flow_table_ip.c struct iphdr *iph, unsigned int thoff, iphdr 145 net/netfilter/nf_flow_table_ip.c struct iphdr *iph = ip_hdr(skb); iphdr 161 net/netfilter/nf_flow_table_ip.c return thoff != sizeof(struct iphdr); iphdr 169 net/netfilter/nf_flow_table_ip.c struct iphdr *iph; iphdr 248 net/netfilter/nf_flow_table_ip.c struct iphdr *iph; iphdr 358 net/netfilter/nf_nat_proto.c struct iphdr *iph; iphdr 450 net/netfilter/nf_nat_proto.c struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff); iphdr 504 net/netfilter/nf_nat_proto.c const struct iphdr *iph = ip_hdr(skb); iphdr 566 net/netfilter/nf_nat_proto.c struct iphdr ip; iphdr 135 net/netfilter/nf_queue.c const struct iphdr *iph = ip_hdr(skb); iphdr 413 net/netfilter/nf_synproxy_core.c static struct iphdr * iphdr 417 net/netfilter/nf_synproxy_core.c struct iphdr *iph; iphdr 439 net/netfilter/nf_synproxy_core.c struct iphdr *niph, struct tcphdr *nth, iphdr 470 net/netfilter/nf_synproxy_core.c struct iphdr *iph, *niph; iphdr 514 net/netfilter/nf_synproxy_core.c struct iphdr *iph, *niph; iphdr 559 net/netfilter/nf_synproxy_core.c struct iphdr *iph, *niph; iphdr 597 net/netfilter/nf_synproxy_core.c struct iphdr *iph, *niph; iphdr 35 net/netfilter/nfnetlink_osf.c const struct iphdr *ip = ip_hdr(skb); iphdr 167 net/netfilter/nfnetlink_osf.c const struct iphdr *ip, iphdr 200 net/netfilter/nfnetlink_osf.c const struct iphdr *ip = ip_hdr(skb); iphdr 263 net/netfilter/nfnetlink_osf.c const struct iphdr *ip = ip_hdr(skb); iphdr 20 net/netfilter/nft_chain_route.c const struct iphdr *iph; iphdr 75 net/netfilter/nft_exthdr.c struct iphdr *iph, _iph; iphdr 84 net/netfilter/nft_exthdr.c start = sizeof(struct iphdr); iphdr 86 net/netfilter/nft_exthdr.c optlen = iph->ihl * 4 - (int)sizeof(struct iphdr); iphdr 100 net/netfilter/nft_fwd_netdev.c struct iphdr *iph; iphdr 31 net/netfilter/nft_log.c struct iphdr _iph; iphdr 32 net/netfilter/nft_log.c const struct iphdr *ih; iphdr 180 net/netfilter/nft_meta.c struct iphdr *iph, _iph; iphdr 192 net/netfilter/nft_payload.c case offsetof(struct iphdr, saddr): iphdr 199 net/netfilter/nft_payload.c case offsetof(struct iphdr, daddr): iphdr 206 net/netfilter/nft_payload.c case offsetof(struct iphdr, protocol): iphdr 33 net/netfilter/nft_rt.c minlen = sizeof(struct iphdr) + sizeof(struct tcphdr); iphdr 27 net/netfilter/nft_tproxy.c const struct iphdr *iph = ip_hdr(skb); iphdr 13 net/netfilter/utils.c const struct iphdr *iph = ip_hdr(skb); iphdr 47 net/netfilter/utils.c const struct iphdr *iph = ip_hdr(skb); iphdr 188 net/netfilter/utils.c const struct iphdr *iph = ip_hdr(skb); iphdr 33 net/netfilter/xt_AUDIT.c struct iphdr _iph; iphdr 34 net/netfilter/xt_AUDIT.c const struct iphdr *ih; iphdr 34 net/netfilter/xt_DSCP.c if (skb_ensure_writable(skb, sizeof(struct iphdr))) iphdr 75 net/netfilter/xt_DSCP.c struct iphdr *iph = ip_hdr(skb); iphdr 82 net/netfilter/xt_DSCP.c if (skb_ensure_writable(skb, sizeof(struct iphdr))) iphdr 102 net/netfilter/xt_DSCP.c if (skb_ensure_writable(skb, sizeof(struct iphdr))) iphdr 28 net/netfilter/xt_HL.c struct iphdr *iph; iphdr 257 net/netfilter/xt_HMARK.c struct iphdr *ip, _ip; iphdr 260 net/netfilter/xt_HMARK.c ip = (struct iphdr *) (skb->data + nhoff); iphdr 198 net/netfilter/xt_TCPMSS.c struct iphdr *iph = ip_hdr(skb); iphdr 39 net/netfilter/xt_TPROXY.c const struct iphdr *iph = ip_hdr(skb); iphdr 115 net/netfilter/xt_addrtype.c const struct iphdr *iph = ip_hdr(skb); iphdr 133 net/netfilter/xt_addrtype.c const struct iphdr *iph; iphdr 64 net/netfilter/xt_connlimit.c const struct iphdr *iph = ip_hdr(skb); iphdr 20 net/netfilter/xt_iprange.c const struct iphdr *iph = ip_hdr(skb); iphdr 172 net/netfilter/xt_l2tp.c struct iphdr *iph = ip_hdr(skb); iphdr 245 net/netfilter/xt_recent.c const struct iphdr *iph = ip_hdr(skb); iphdr 1280 net/netlabel/netlabel_kapi.c struct iphdr *hdr4; iphdr 1475 net/netlabel/netlabel_unlabeled.c struct iphdr *hdr4; iphdr 345 net/openvswitch/actions.c static void update_ip_l4_checksum(struct sk_buff *skb, struct iphdr *nh, iphdr 371 net/openvswitch/actions.c static void set_ip_addr(struct sk_buff *skb, struct iphdr *nh, iphdr 435 net/openvswitch/actions.c static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, iphdr 448 net/openvswitch/actions.c struct iphdr *nh; iphdr 453 net/openvswitch/actions.c sizeof(struct iphdr)); iphdr 195 net/openvswitch/flow.c err = check_header(skb, nh_ofs + sizeof(struct iphdr)); iphdr 200 net/openvswitch/flow.c if (unlikely(ip_len < sizeof(struct iphdr) || iphdr 538 net/openvswitch/flow.c struct iphdr *nh; iphdr 254 net/rxrpc/peer_object.c peer->hdrsize = sizeof(struct iphdr); iphdr 47 net/sched/act_connmark.c if (skb->len < sizeof(struct iphdr)) iphdr 211 net/sched/act_csum.c const struct iphdr *iph; iphdr 260 net/sched/act_csum.c const struct iphdr *iph; iphdr 389 net/sched/act_csum.c const struct iphdr *iph; iphdr 121 net/sched/act_ct.c len = skb_network_offset(skb) + sizeof(struct iphdr); iphdr 100 net/sched/act_ctinfo.c wlen += sizeof(struct iphdr); iphdr 109 net/sched/act_nat.c struct iphdr *iph; iphdr 46 net/sched/act_skbedit.c wlen += sizeof(struct iphdr); iphdr 145 net/sched/cls_rsvp.h struct iphdr *nhptr; iphdr 65 net/sched/em_ipset.c if (!pskb_network_may_pull(skb, sizeof(struct iphdr))) iphdr 217 net/sched/em_ipt.c if (!pskb_network_may_pull(skb, sizeof(struct iphdr))) iphdr 840 net/sched/sch_cake.c static struct iphdr *cake_get_iphdr(const struct sk_buff *skb, iphdr 844 net/sched/sch_cake.c struct iphdr *iph; iphdr 846 net/sched/sch_cake.c iph = skb_header_pointer(skb, offset, sizeof(struct iphdr), buf); iphdr 871 net/sched/sch_cake.c const struct iphdr *iph; iphdr 881 net/sched/sch_cake.c iph = (struct iphdr *)ipv6h; iphdr 1120 net/sched/sch_cake.c const struct iphdr *iph, *iph_check; iphdr 1525 net/sched/sch_cake.c wlen += sizeof(struct iphdr); iphdr 215 net/sched/sch_dsmark.c wlen += sizeof(struct iphdr); iphdr 297 net/sched/sch_taprio.c const struct iphdr *iph; iphdr 305 net/sched/sch_taprio.c iph = (struct iphdr *)ipv6h; iphdr 573 net/sctp/input.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 1092 net/sctp/protocol.c .net_header_len = sizeof(struct iphdr), iphdr 3834 net/socket.c overhead += sizeof(struct iphdr); iphdr 336 net/tipc/udp_media.c struct iphdr *iphdr = ip_hdr(skb); iphdr 339 net/tipc/udp_media.c src.ipv4.s_addr = iphdr->saddr; iphdr 340 net/tipc/udp_media.c if (ipv4_is_multicast(iphdr->daddr)) iphdr 344 net/tipc/udp_media.c struct ipv6hdr *iphdr = ipv6_hdr(skb); iphdr 347 net/tipc/udp_media.c src.ipv6 = iphdr->saddr; iphdr 348 net/tipc/udp_media.c if (ipv6_addr_is_multicast(&iphdr->daddr)) iphdr 736 net/tipc/udp_media.c if (tipc_mtu_bad(dev, sizeof(struct iphdr) + iphdr 51 net/tipc/udp_media.h if (mtu >= (TIPC_MIN_BEARER_MTU + sizeof(struct iphdr) + iphdr 172 net/tls/tls_device_fallback.c const struct iphdr *iph; iphdr 54 net/xfrm/xfrm_device.c sizeof(struct iphdr)); iphdr 62 net/xfrm/xfrm_device.c sizeof(struct iphdr)); iphdr 25 net/xfrm/xfrm_inout.h struct iphdr *iph = ip_hdr(skb); iphdr 173 net/xfrm/xfrm_input.c struct iphdr *iph; iphdr 219 net/xfrm/xfrm_input.c struct iphdr *inner_iph = ipip_hdr(skb); iphdr 232 net/xfrm/xfrm_input.c if (!pskb_may_pull(skb, sizeof(struct iphdr))) iphdr 402 net/xfrm/xfrm_interface.c const struct iphdr *iph = (const struct iphdr *)skb->data; iphdr 60 net/xfrm/xfrm_output.c struct iphdr *iph = ip_hdr(skb); iphdr 67 net/xfrm/xfrm_output.c offsetof(struct iphdr, protocol); iphdr 145 net/xfrm/xfrm_output.c struct iphdr *top_iph; iphdr 158 net/xfrm/xfrm_output.c offsetof(struct iphdr, protocol); iphdr 178 net/xfrm/xfrm_output.c top_iph->ihl = sizeof(struct iphdr) / 4; iphdr 194 net/xfrm/xfrm_output.c struct iphdr *top_iph; iphdr 202 net/xfrm/xfrm_output.c offsetof(struct iphdr, protocol); iphdr 3265 net/xfrm/xfrm_policy.c const struct iphdr *iph = ip_hdr(skb); iphdr 2427 net/xfrm/xfrm_state.c net_adj = sizeof(struct iphdr); iphdr 2614 net/xfrm/xfrm_state.c const struct iphdr *iph4; iphdr 116 samples/bpf/hbm_kern.h struct iphdr iph; iphdr 22 samples/bpf/parse_ldabs.c return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) iphdr 29 samples/bpf/parse_ldabs.c __u64 troff = ETH_HLEN + sizeof(struct iphdr); iphdr 33 samples/bpf/parse_ldabs.c if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP || iphdr 31 samples/bpf/parse_simple.c struct iphdr *iph = data + sizeof(*eth); iphdr 53 samples/bpf/parse_varlen.c struct iphdr *iph; iphdr 81 samples/bpf/parse_varlen.c struct iphdr *iph; iphdr 49 samples/bpf/sock_example.c BPF_LD_ABS(BPF_B, ETH_HLEN + offsetof(struct iphdr, protocol) /* R0 = ip->proto */), iphdr 17 samples/bpf/sockex1_kern.c int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); iphdr 47 samples/bpf/sockex2_kern.c return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) iphdr 69 samples/bpf/sockex2_kern.c *ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); iphdr 72 samples/bpf/sockex2_kern.c flow->src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); iphdr 73 samples/bpf/sockex2_kern.c flow->dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); iphdr 76 samples/bpf/sockex3_kern.c return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) iphdr 202 samples/bpf/sockex3_kern.c ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); iphdr 205 samples/bpf/sockex3_kern.c g->flow.src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); iphdr 206 samples/bpf/sockex3_kern.c g->flow.dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); iphdr 78 samples/bpf/tc_l2_redirect_kern.c struct iphdr *iph = data + sizeof(*eth); iphdr 129 samples/bpf/tc_l2_redirect_kern.c struct iphdr *iph = data + sizeof(*eth); iphdr 168 samples/bpf/tc_l2_redirect_kern.c struct iphdr *iph = data + sizeof(*eth); iphdr 217 samples/bpf/tc_l2_redirect_kern.c struct iphdr *iph = data + sizeof(*eth); iphdr 20 samples/bpf/tcbpf1_kern.c #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check)) iphdr 21 samples/bpf/tcbpf1_kern.c #define TOS_OFF (ETH_HLEN + offsetof(struct iphdr, tos)) iphdr 31 samples/bpf/tcbpf1_kern.c #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check)) iphdr 32 samples/bpf/tcbpf1_kern.c #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr)) iphdr 45 samples/bpf/tcbpf1_kern.c #define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest)) iphdr 57 samples/bpf/tcbpf1_kern.c __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); iphdr 28 samples/bpf/tcp_tos_reflect_kern.c struct iphdr *hdr; iphdr 47 samples/bpf/tcp_tos_reflect_kern.c hdr_size = sizeof(struct iphdr); iphdr 54 samples/bpf/tcp_tos_reflect_kern.c hdr = (struct iphdr *) header; iphdr 72 samples/bpf/test_lwt_bpf.c struct iphdr *iph = data; iphdr 84 samples/bpf/test_lwt_bpf.c #define IP_CSUM_OFF offsetof(struct iphdr, check) iphdr 85 samples/bpf/test_lwt_bpf.c #define IP_DST_OFF offsetof(struct iphdr, daddr) iphdr 86 samples/bpf/test_lwt_bpf.c #define IP_SRC_OFF offsetof(struct iphdr, saddr) iphdr 87 samples/bpf/test_lwt_bpf.c #define IP_PROTO_OFF offsetof(struct iphdr, protocol) iphdr 26 samples/bpf/xdp1_kern.c struct iphdr *iph = data + nh_off; iphdr 42 samples/bpf/xdp2_kern.c struct iphdr *iph = data + nh_off; iphdr 69 samples/bpf/xdp_adjust_tail_kern.c int headroom = (int)sizeof(struct iphdr) + (int)sizeof(struct icmphdr); iphdr 79 samples/bpf/xdp_adjust_tail_kern.c struct iphdr *iph, *orig_iph; iphdr 89 samples/bpf/xdp_adjust_tail_kern.c off += sizeof(struct iphdr); iphdr 110 samples/bpf/xdp_adjust_tail_kern.c ipv4_csum(iph, sizeof(struct iphdr), &csum); iphdr 34 samples/bpf/xdp_fwd_kern.c static __always_inline int ip_decrease_ttl(struct iphdr *iph) iphdr 50 samples/bpf/xdp_fwd_kern.c struct iphdr *iph; iphdr 159 samples/bpf/xdp_redirect_cpu_kern.c struct iphdr *iph = data + nh_off; iphdr 181 samples/bpf/xdp_redirect_cpu_kern.c struct iphdr *iph = data + nh_off; iphdr 473 samples/bpf/xdp_redirect_cpu_kern.c struct iphdr *iph = data + nh_off; iphdr 99 samples/bpf/xdp_router_ipv4_kern.c struct iphdr *iph = data + nh_off; iphdr 84 samples/bpf/xdp_tx_iptunnel_kern.c struct iphdr *iph = data + sizeof(struct ethhdr); iphdr 112 samples/bpf/xdp_tx_iptunnel_kern.c if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) iphdr 43 security/lsm_audit.c struct iphdr *ih; iphdr 4179 security/selinux/hooks.c struct iphdr _iph, *ih; iphdr 4081 security/smack/smack_lsm.c struct iphdr *hdr; iphdr 40 tools/testing/selftests/bpf/prog_tests/flow_dissector.c struct iphdr iph; iphdr 46 tools/testing/selftests/bpf/prog_tests/flow_dissector.c struct iphdr iph; iphdr 47 tools/testing/selftests/bpf/prog_tests/flow_dissector.c struct iphdr iph_inner; iphdr 55 tools/testing/selftests/bpf/prog_tests/flow_dissector.c struct iphdr iph; iphdr 117 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .thoff = ETH_HLEN + sizeof(struct iphdr), iphdr 159 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .thoff = ETH_HLEN + VLAN_HLEN + sizeof(struct iphdr), iphdr 205 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .thoff = ETH_HLEN + sizeof(struct iphdr), iphdr 230 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .thoff = ETH_HLEN + sizeof(struct iphdr), iphdr 341 tools/testing/selftests/bpf/prog_tests/flow_dissector.c sizeof(struct iphdr), iphdr 348 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .thoff = ETH_HLEN + sizeof(struct iphdr) + iphdr 349 tools/testing/selftests/bpf/prog_tests/flow_dissector.c sizeof(struct iphdr), iphdr 369 tools/testing/selftests/bpf/prog_tests/flow_dissector.c sizeof(struct iphdr), iphdr 377 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .thoff = ETH_HLEN + sizeof(struct iphdr), iphdr 16 tools/testing/selftests/bpf/prog_tests/queue_stack_map.c struct iphdr *iph = (void *)buf + sizeof(struct ethhdr); iphdr 14 tools/testing/selftests/bpf/prog_tests/xdp.c struct iphdr *iph = (void *)buf + sizeof(struct ethhdr); iphdr 266 tools/testing/selftests/bpf/progs/bpf_flow.c struct iphdr *iph, _iph; iphdr 262 tools/testing/selftests/bpf/progs/test_l4lb.c struct iphdr *iph; iphdr 339 tools/testing/selftests/bpf/progs/test_l4lb.c struct iphdr *iph; iphdr 262 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c struct iphdr *iph; iphdr 339 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c struct iphdr *iph; iphdr 19 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c struct iphdr iph; iphdr 34 tools/testing/selftests/bpf/progs/test_pkt_access.c struct iphdr *iph = (struct iphdr *)(eth + 1); iphdr 87 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c offsetof(struct iphdr, saddr), iphdr 31 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct iphdr *iph = (struct iphdr *)(data + nh_off); iphdr 83 tools/testing/selftests/bpf/progs/test_tc_edt.c struct iphdr *iph; iphdr 89 tools/testing/selftests/bpf/progs/test_tc_edt.c iph = (struct iphdr *)(data + sizeof(struct ethhdr)); iphdr 46 tools/testing/selftests/bpf/progs/test_tc_tunnel.c struct iphdr ip; iphdr 57 tools/testing/selftests/bpf/progs/test_tc_tunnel.c static __always_inline void set_ipv4_csum(struct iphdr *iph) iphdr 76 tools/testing/selftests/bpf/progs/test_tc_tunnel.c struct iphdr iph_inner; iphdr 497 tools/testing/selftests/bpf/progs/test_tc_tunnel.c struct iphdr iph_outer; iphdr 51 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c struct iphdr *ipv4h; iphdr 73 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c tcph = data + sizeof(struct ethhdr) + sizeof(struct iphdr); iphdr 530 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct iphdr *iph = data; iphdr 587 tools/testing/selftests/bpf/progs/test_tunnel_kern.c struct iphdr *iph = data; iphdr 87 tools/testing/selftests/bpf/progs/test_xdp.c struct iphdr *iph = data + sizeof(struct ethhdr); iphdr 113 tools/testing/selftests/bpf/progs/test_xdp.c if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) iphdr 83 tools/testing/selftests/bpf/progs/test_xdp_loop.c struct iphdr *iph = data + sizeof(struct ethhdr); iphdr 109 tools/testing/selftests/bpf/progs/test_xdp_loop.c if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) iphdr 224 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct iphdr); iphdr 226 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct icmphdr) + sizeof(struct iphdr); iphdr 330 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct iphdr *iph; iphdr 337 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) iphdr 343 tools/testing/selftests/bpf/progs/test_xdp_noinline.c old_eth = data + sizeof(struct iphdr); iphdr 356 tools/testing/selftests/bpf/progs/test_xdp_noinline.c iph->tot_len = bpf_htons(pkt_bytes + sizeof(struct iphdr)); iphdr 366 tools/testing/selftests/bpf/progs/test_xdp_noinline.c for (int i = 0; i < sizeof(struct iphdr) >> 1; i++) iphdr 369 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct iphdr))) iphdr 402 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth = *data + sizeof(struct iphdr); iphdr 406 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct iphdr))) iphdr 432 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct iphdr *iph; iphdr 438 tools/testing/selftests/bpf/progs/test_xdp_noinline.c + sizeof(struct iphdr) + sizeof(struct icmphdr) > data_end) iphdr 442 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct iphdr); iphdr 453 tools/testing/selftests/bpf/progs/test_xdp_noinline.c for (int i = 0; i < sizeof(struct iphdr) >> 1; i++) iphdr 513 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct iphdr *iph; iphdr 664 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct iphdr *iph; iphdr 65 tools/testing/selftests/bpf/progs/xdping_kern.c struct iphdr *iph; iphdr 97 tools/testing/selftests/bpf/progs/xdping_kern.c struct iphdr *iph; iphdr 160 tools/testing/selftests/bpf/progs/xdping_kern.c struct iphdr *iph; iphdr 169 tools/testing/selftests/bpf/test_flow_dissector.c struct iphdr *iph = header; iphdr 210 tools/testing/selftests/bpf/test_flow_dissector.c static uint16_t build_udp_v4_csum(const struct iphdr *iph, iphdr 247 tools/testing/selftests/bpf/test_flow_dissector.c udph->check = build_udp_v4_csum(header - sizeof(struct iphdr), iphdr 271 tools/testing/selftests/bpf/test_flow_dissector.c return sizeof(struct iphdr); iphdr 82 tools/testing/selftests/bpf/test_progs.h struct iphdr iph; iphdr 41 tools/testing/selftests/bpf/test_queue_stack_map.h struct iphdr *iph = (struct iphdr *)(eth + 1); iphdr 29 tools/testing/selftests/net/ip_defrag.c #define IP4_HLEN (sizeof(struct iphdr)) iphdr 101 tools/testing/selftests/net/ip_defrag.c static uint16_t udp_checksum(struct ip *iphdr, struct udphdr *udphdr) iphdr 106 tools/testing/selftests/net/ip_defrag.c sum = raw_checksum((uint8_t *)&iphdr->ip_src, 2 * sizeof(iphdr->ip_src), iphdr 117 tools/testing/selftests/net/ip_defrag.c static uint16_t udp6_checksum(struct ip6_hdr *iphdr, struct udphdr *udphdr) iphdr 122 tools/testing/selftests/net/ip_defrag.c sum = raw_checksum((uint8_t *)&iphdr->ip6_src, 2 * sizeof(iphdr->ip6_src), iphdr 176 tools/testing/selftests/net/ip_defrag.c struct ip *iphdr = (struct ip *)ip_frame; iphdr 180 tools/testing/selftests/net/ip_defrag.c iphdr->ip_off = htons(offset / 8); iphdr 183 tools/testing/selftests/net/ip_defrag.c iphdr->ip_off = htons(offset / 8 | IP4_MF); iphdr 185 tools/testing/selftests/net/ip_defrag.c iphdr->ip_len = htons(frag_len); iphdr 206 tools/testing/selftests/net/ip_defrag.c struct ip *iphdr = (struct ip *)ip_frame; iphdr 232 tools/testing/selftests/net/ip_defrag.c memset(iphdr, 0, sizeof(*iphdr)); iphdr 233 tools/testing/selftests/net/ip_defrag.c iphdr->ip_hl = 5; iphdr 234 tools/testing/selftests/net/ip_defrag.c iphdr->ip_v = 4; iphdr 235 tools/testing/selftests/net/ip_defrag.c iphdr->ip_tos = 0; iphdr 236 tools/testing/selftests/net/ip_defrag.c iphdr->ip_id = htons(ip_id++); iphdr 237 tools/testing/selftests/net/ip_defrag.c iphdr->ip_ttl = 0x40; iphdr 238 tools/testing/selftests/net/ip_defrag.c iphdr->ip_p = IPPROTO_UDP; iphdr 239 tools/testing/selftests/net/ip_defrag.c iphdr->ip_src.s_addr = htonl(INADDR_LOOPBACK); iphdr 240 tools/testing/selftests/net/ip_defrag.c iphdr->ip_dst = addr4; iphdr 241 tools/testing/selftests/net/ip_defrag.c iphdr->ip_sum = 0; iphdr 312 tools/testing/selftests/net/ip_defrag.c iphdr->ip_off = htons(offset / 8 | IP4_MF); iphdr 313 tools/testing/selftests/net/ip_defrag.c iphdr->ip_len = htons(frag_len); iphdr 257 tools/testing/selftests/net/msg_zerocopy.c static int setup_iph(struct iphdr *iph, uint16_t payload_len) iphdr 490 tools/testing/selftests/net/msg_zerocopy.c struct iphdr iph; iphdr 635 tools/testing/selftests/net/msg_zerocopy.c off += sizeof(struct iphdr); iphdr 636 tools/testing/selftests/net/msg_zerocopy.c ret -= sizeof(struct iphdr); iphdr 80 tools/testing/selftests/net/psock_snd.c vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); iphdr 84 tools/testing/selftests/net/psock_snd.c vh->csum_start = ETH_HLEN + sizeof(struct iphdr); iphdr 95 tools/testing/selftests/net/psock_snd.c vh->gso_size = cfg_mtu - sizeof(struct iphdr); iphdr 119 tools/testing/selftests/net/psock_snd.c struct iphdr *iph = header; iphdr 145 tools/testing/selftests/net/psock_tpacket.c struct iphdr *ip = pay + sizeof(*eth); iphdr 45 tools/testing/selftests/net/txring_overwrite.c struct iphdr *iph; iphdr 42 tools/testing/selftests/net/udpgso.c #define CONST_HDRLEN_V4 (sizeof(struct iphdr) + sizeof(struct udphdr)) iphdr 508 tools/testing/selftests/net/udpgso_bench_tx.c hdrlen = sizeof(struct iphdr) + sizeof(struct udphdr); iphdr 337 tools/testing/selftests/networking/timestamping/txtimestamp.c struct iphdr *iph = p; iphdr 401 tools/testing/selftests/networking/timestamping/txtimestamp.c total_len += sizeof(struct iphdr);