/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 47 struct iphdr *ip4h; in rmnet_map_ipv4_dl_csum_trailer() 51 ip4h = (struct iphdr *)(skb->data); in rmnet_map_ipv4_dl_csum_trailer() 181 static void rmnet_map_complement_ipv4_txporthdr_csum_field(void *iphdr) in rmnet_map_complement_ipv4_txporthdr_csum_field() argument 183 struct iphdr *ip4h = (struct iphdr *)iphdr; in rmnet_map_complement_ipv4_txporthdr_csum_field() 187 txphdr = iphdr + ip4h->ihl * 4; in rmnet_map_complement_ipv4_txporthdr_csum_field() 196 rmnet_map_ipv4_ul_csum_header(void *iphdr, in rmnet_map_ipv4_ul_csum_header() argument 200 struct iphdr *ip4h = (struct iphdr *)iphdr; in rmnet_map_ipv4_ul_csum_header() 204 (unsigned char *)iphdr)); in rmnet_map_ipv4_ul_csum_header() 219 rmnet_map_complement_ipv4_txporthdr_csum_field(iphdr); in rmnet_map_ipv4_ul_csum_header() 394 void *iphdr; in rmnet_map_checksum_uplink_packet() local [all …]
|
/drivers/infiniband/sw/rxe/ |
D | rxe_icrc.c | 41 struct iphdr *ip4h = NULL; in rxe_icrc_hdr() 49 sizeof(struct iphdr) : sizeof(struct ipv6hdr)); in rxe_icrc_hdr() 64 ip4h = (struct iphdr *)pshdr; in rxe_icrc_hdr()
|
D | rxe_net.c | 293 struct iphdr *iph; in prepare_ipv4_hdr() 301 skb_push(skb, sizeof(struct iphdr)); in prepare_ipv4_hdr() 307 iph->ihl = sizeof(struct iphdr) >> 2; in prepare_ipv4_hdr() 474 sizeof(struct iphdr); in rxe_init_packet()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_selftest.c | 99 #define MLX5E_TEST_PKT_SIZE (sizeof(struct ethhdr) + sizeof(struct iphdr) +\ 109 struct iphdr *iph; in mlx5e_test_get_udp_skb() 126 iph = skb_put(skb, sizeof(struct iphdr)); in mlx5e_test_get_udp_skb() 147 iplen = sizeof(struct iphdr) + sizeof(struct udphdr) + in mlx5e_test_get_udp_skb() 190 struct iphdr *iph; in mlx5e_test_loopback_validate()
|
D | en_rx.c | 743 struct iphdr *ipv4 = ip_p; in mlx5e_lro_update_hdr() 745 tcp = ip_p + sizeof(struct iphdr); in mlx5e_lro_update_hdr() 759 tot_len - sizeof(struct iphdr), in mlx5e_lro_update_hdr() 797 return pskb_may_pull(skb, *network_depth + sizeof(struct iphdr)); in is_last_ethertype_ip() 816 rc = ((proto == htons(ETH_P_IP)) ? IP_ECN_set_ce((struct iphdr *)ip) : in mlx5e_enable_ecn() 826 return (proto == htons(ETH_P_IP)) ? ((struct iphdr *)ip_p)->protocol : in get_ip_proto() 872 struct iphdr *ip4; in mlx5e_skb_csum_fixup() 888 ip4 = (struct iphdr *)(skb->data + network_depth); in mlx5e_skb_csum_fixup()
|
/drivers/net/slip/ |
D | slhc.c | 238 struct iphdr *ip; in slhc_compress() 247 if(isize<sizeof(struct iphdr)) in slhc_compress() 250 ip = (struct iphdr *) icp; in slhc_compress() 492 struct iphdr *ip; in slhc_uncompress() 620 &((struct iphdr *)icp)->check); in slhc_uncompress() 676 memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4); in slhc_remember()
|
/drivers/net/ethernet/chelsio/libcxgb/ |
D | libcxgb_cm.c | 51 struct iphdr *ip = (struct iphdr *)((u8 *)(req + 1) + eth_len); in cxgb_get_4tuple()
|
D | libcxgb_cm.h | 70 sizeof(struct iphdr)) + in cxgb_best_mtu()
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | action.c | 530 struct iphdr *tos_word_mask; in nfp_fl_set_ip4() 531 struct iphdr *tos_word; in nfp_fl_set_ip4() 544 case offsetof(struct iphdr, daddr): in nfp_fl_set_ip4() 552 case offsetof(struct iphdr, saddr): in nfp_fl_set_ip4() 560 case offsetof(struct iphdr, ttl): in nfp_fl_set_ip4() 577 case round_down(offsetof(struct iphdr, tos), 4): in nfp_fl_set_ip4() 578 tos_word_mask = (struct iphdr *)&mask; in nfp_fl_set_ip4() 579 tos_word = (struct iphdr *)&exact; in nfp_fl_set_ip4()
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun.c | 220 struct iphdr *ip; in mlx5e_tc_tun_create_header_ipv4() 236 sizeof(struct iphdr) + in mlx5e_tc_tun_create_header_ipv4() 276 ip = (struct iphdr *)gen_eth_tnl_hdr(encap_header, route_dev, e, in mlx5e_tc_tun_create_header_ipv4() 288 err = mlx5e_gen_ip_tunnel_header((char *)ip + sizeof(struct iphdr), in mlx5e_tc_tun_create_header_ipv4()
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls_rxtx.c | 149 struct iphdr *iph; in mlx5e_tls_complete_sync_skb() 314 struct iphdr *iph; in tls_update_resync_sn() 321 iph = (struct iphdr *)(mdata + 1); in tls_update_resync_sn()
|
/drivers/net/ |
D | gtp.c | 156 struct iphdr *iph; in gtp_check_ms_ipv4() 158 if (!pskb_may_pull(skb, hdrlen + sizeof(struct iphdr))) in gtp_check_ms_ipv4() 161 iph = (struct iphdr *)(skb->data + hdrlen); in gtp_check_ms_ipv4() 446 struct iphdr *iph; 469 struct sock *sk, struct iphdr *iph, in gtp_set_pktinfo_ipv4() 489 struct iphdr *iph; in gtp_build_skb_ip4() 530 sizeof(struct iphdr) - sizeof(struct udphdr); in gtp_build_skb_ip4() 637 sizeof(struct iphdr) + in gtp_link_setup()
|
D | geneve.c | 35 #define GENEVE_IPV4_HLEN (ETH_HLEN + sizeof(struct iphdr) + GENEVE_BASE_HLEN) 174 struct iphdr *iph; in geneve_lookup_skb() 278 &((struct iphdr *)oiph)->saddr, in geneve_rx() 279 ((struct iphdr *)oiph)->tos); in geneve_rx() 410 struct iphdr *iph = ip_hdr(skb); in geneve_udp_encap_err_lookup() 917 struct iphdr *iph = ip_hdr(skb); in geneve_xmit_skb() 925 err = geneve_build_skb(&rt->dst, skb, info, xnet, sizeof(struct iphdr)); in geneve_xmit_skb() 1159 [IFLA_GENEVE_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) }, 1284 encap_len += sizeof(struct iphdr); in geneve_configure() 1285 dev->max_mtu -= sizeof(struct iphdr); in geneve_configure()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 179 struct iphdr *ip; in i40e_add_del_fdir_udpv4() 191 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); in i40e_add_del_fdir_udpv4() 193 + sizeof(struct iphdr)); in i40e_add_del_fdir_udpv4() 251 struct iphdr *ip; in i40e_add_del_fdir_tcpv4() 265 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); in i40e_add_del_fdir_tcpv4() 267 + sizeof(struct iphdr)); in i40e_add_del_fdir_tcpv4() 330 struct iphdr *ip; in i40e_add_del_fdir_sctpv4() 343 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); in i40e_add_del_fdir_sctpv4() 345 + sizeof(struct iphdr)); in i40e_add_del_fdir_sctpv4() 403 struct iphdr *ip; in i40e_add_del_fdir_ipv4() [all …]
|
/drivers/net/ipvlan/ |
D | ipvlan_core.c | 154 struct iphdr *ip4h; in ipvlan_get_L3_hdr() 385 struct iphdr *ip4h; in ipvlan_addr_lookup() 388 ip4h = (struct iphdr *)lyr3h; in ipvlan_addr_lookup() 416 const struct iphdr *ip4h = ip_hdr(skb); in ipvlan_process_v4_outbound()
|
D | ipvlan_l3s.c | 51 struct iphdr *ip4h = ip_hdr(skb); in ipvlan_l3_rcv()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 83 struct iphdr ipv4; in set_av_attr() 139 memcpy((u8 *)ah->av + eth_sz, &ipv4, sizeof(struct iphdr)); in set_av_attr()
|
/drivers/infiniband/hw/i40iw/ |
D | i40iw_utils.c | 1404 struct iphdr *iph = (struct iphdr *)buf->iph; in i40iw_ieq_get_qp() 1437 struct iphdr *iph; in i40iw_ieq_update_tcpip_info() 1443 iph = (struct iphdr *)(addr + buf->maclen); in i40iw_ieq_update_tcpip_info() 1459 struct iphdr *iph; in i40iw_puda_get_tcpip_info() 1475 iph = (struct iphdr *)buf->iph; in i40iw_puda_get_tcpip_info()
|
/drivers/net/ppp/ |
D | pptp.c | 148 struct iphdr *iph; in pptp_xmit() 226 iph->ihl = sizeof(struct iphdr) >> 2; in pptp_xmit() 338 struct iphdr *iph; in pptp_rcv()
|
/drivers/staging/rtl8192e/ |
D | rtllib_tx.c | 237 struct iphdr *ip; in rtllib_classify() 618 const struct iphdr *ip = (struct iphdr *) in rtllib_xmit_inter()
|
/drivers/net/netdevsim/ |
D | dev.c | 370 struct iphdr *iph; in nsim_dev_trap_skb_build() 375 tot_len = sizeof(struct iphdr) + sizeof(struct udphdr) + data_len; in nsim_dev_trap_skb_build() 385 iph = skb_put(skb, sizeof(struct iphdr)); in nsim_dev_trap_skb_build()
|
/drivers/net/usb/ |
D | hso.c | 150 struct iphdr rx_ip_hdr; 711 odev->rx_buf_missing = sizeof(struct iphdr); in hso_net_open() 879 (frame_len < sizeof(struct iphdr))) { in packetizeRx() 900 sizeof(struct iphdr)); in packetizeRx() 903 odev->rx_buf_size = sizeof(struct iphdr); in packetizeRx() 907 frame_len - sizeof(struct iphdr); in packetizeRx() 944 odev->rx_buf_missing = sizeof(struct iphdr); in packetizeRx() 965 odev->rx_buf_missing = sizeof(struct iphdr); in packetizeRx()
|
/drivers/staging/rtl8712/ |
D | xmit_linux.c | 69 struct iphdr ip_hdr; in r8712_set_qos()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_selftests.c | 28 #define STMMAC_TEST_PKT_SIZE (sizeof(struct ethhdr) + sizeof(struct iphdr) + \ 65 struct iphdr *ihdr; in stmmac_test_get_udp_skb() 253 struct iphdr *ihdr; in stmmac_test_loopback_validate() 279 ihdr = (struct iphdr *)(skb_network_header(skb) + 4); in stmmac_test_loopback_validate() 840 struct iphdr *ihdr; in stmmac_test_vlan_validate() 870 ihdr = (struct iphdr *)(skb_network_header(skb) + 4); in stmmac_test_vlan_validate()
|
/drivers/staging/gdm724x/ |
D | gdm_lte.c | 340 struct iphdr *ip; in gdm_lte_tx_nic_type() 373 network_data + sizeof(struct iphdr); in gdm_lte_tx_nic_type() 614 void *addr = buf + sizeof(struct iphdr) + in gdm_lte_netif_rx()
|