Home
last modified time | relevance | path

Searched refs:iphdr (Results 1 – 25 of 117) sorted by relevance

12345

/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_map_data.c47 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/
Drxe_icrc.c41 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()
Drxe_net.c293 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/
Den_selftest.c99 #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()
Den_rx.c743 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/
Dslhc.c238 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/
Dlibcxgb_cm.c51 struct iphdr *ip = (struct iphdr *)((u8 *)(req + 1) + eth_len); in cxgb_get_4tuple()
Dlibcxgb_cm.h70 sizeof(struct iphdr)) + in cxgb_best_mtu()
/drivers/net/ethernet/netronome/nfp/flower/
Daction.c530 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/
Dtc_tun.c220 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/
Dtls_rxtx.c149 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/
Dgtp.c156 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()
Dgeneve.c35 #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/
Di40e_txrx.c179 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/
Dipvlan_core.c154 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()
Dipvlan_l3s.c51 struct iphdr *ip4h = ip_hdr(skb); in ipvlan_l3_rcv()
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c83 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/
Di40iw_utils.c1404 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/
Dpptp.c148 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/
Drtllib_tx.c237 struct iphdr *ip; in rtllib_classify()
618 const struct iphdr *ip = (struct iphdr *) in rtllib_xmit_inter()
/drivers/net/netdevsim/
Ddev.c370 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/
Dhso.c150 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/
Dxmit_linux.c69 struct iphdr ip_hdr; in r8712_set_qos()
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_selftests.c28 #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/
Dgdm_lte.c340 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()

12345