Home
last modified time | relevance | path

Searched refs:ip_hdr (Results 1 – 25 of 147) sorted by relevance

123456

/drivers/staging/octeon/
Dethernet-tx.c366 (ip_hdr(skb)->version == 4) && in cvm_oct_xmit()
367 (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit()
368 ((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit()
369 (ip_hdr(skb)->frag_off == htons(1 << 14))) && in cvm_oct_xmit()
370 ((ip_hdr(skb)->protocol == IPPROTO_TCP) || in cvm_oct_xmit()
371 (ip_hdr(skb)->protocol == IPPROTO_UDP))) { in cvm_oct_xmit()
586 (ip_hdr(skb)->protocol == IPPROTO_TCP) || in cvm_oct_xmit_pow()
587 (ip_hdr(skb)->protocol == IPPROTO_UDP); in cvm_oct_xmit_pow()
598 work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit_pow()
599 (ip_hdr(skb)->frag_off == in cvm_oct_xmit_pow()
/drivers/staging/rtl8712/
Dxmit_linux.c68 struct iphdr ip_hdr; in r8712_set_qos() local
76 _r8712_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr)); in r8712_set_qos()
78 user_priority = ip_hdr.tos >> 5; in r8712_set_qos()
/drivers/net/wireless/intel/iwlwifi/mei/
Dnet.c160 ip_hdr(skb)->protocol != IPPROTO_UDP) in iwl_mei_rx_filter_tcp_udp()
164 ip_hdr(skb)->protocol != IPPROTO_TCP) in iwl_mei_rx_filter_tcp_udp()
202 iphdr = ip_hdr(skb); in iwl_mei_rx_filter_ipv4()
208 switch (ip_hdr(skb)->protocol) { in iwl_mei_rx_filter_ipv4()
380 ip_hdr(origskb)->protocol != IPPROTO_UDP || in iwl_mei_tx_copy_to_csme()
/drivers/infiniband/sw/rxe/
Drxe_recv.c109 if ((ip_hdr(skb)->daddr != saddr->s_addr) || in check_addr()
110 (ip_hdr(skb)->saddr != daddr->s_addr)) in check_addr()
192 ipv6_addr_set_v4mapped(ip_hdr(skb)->daddr, in rxe_rcv_mcast_pkt()
287 ipv6_addr_set_v4mapped(ip_hdr(skb)->daddr, in rxe_chk_dgid()
Drxe_icrc.c97 memcpy(pshdr, ip_hdr(skb), hdr_size); in rxe_icrc_hdr()
/drivers/net/ethernet/emulex/benet/
Dbe.h894 if (ip_hdr(skb)->version == 4) in is_tcp_pkt()
895 val = (ip_hdr(skb)->protocol == IPPROTO_TCP); in is_tcp_pkt()
896 else if (ip_hdr(skb)->version == 6) in is_tcp_pkt()
906 if (ip_hdr(skb)->version == 4) in is_udp_pkt()
907 val = (ip_hdr(skb)->protocol == IPPROTO_UDP); in is_udp_pkt()
908 else if (ip_hdr(skb)->version == 6) in is_udp_pkt()
916 return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4; in is_ipv4_pkt()
921 if (ip_hdr(skb)->version == 6) in is_ipv6_ext_hdr()
/drivers/net/wireguard/
Dreceive.c370 (ip_hdr(skb)->version == 4 || in wg_packet_consume_data_done()
371 (ip_hdr(skb)->version == 6 && in wg_packet_consume_data_done()
386 len = ntohs(ip_hdr(skb)->tot_len); in wg_packet_consume_data_done()
389 INET_ECN_decapsulate(skb, PACKET_CB(skb)->ds, ip_hdr(skb)->tos); in wg_packet_consume_data_done()
575 PACKET_CB(skb)->ds = ip_tunnel_get_dsfield(ip_hdr(skb), skb); in wg_packet_receive()
Dallowedips.c360 return lookup(table->root4, 32, &ip_hdr(skb)->daddr); in wg_allowedips_lookup_dst()
371 return lookup(table->root4, 32, &ip_hdr(skb)->saddr); in wg_allowedips_lookup_src()
Dsocket.c242 endpoint->addr4.sin_addr.s_addr = ip_hdr(skb)->saddr; in wg_socket_endpoint_from_skb()
243 endpoint->src4.s_addr = ip_hdr(skb)->daddr; in wg_socket_endpoint_from_skb()
Dratelimiter.c96 ip = (u64 __force)ip_hdr(skb)->saddr; in wg_ratelimiter_allow()
/drivers/net/
Dgeneve.c184 iph = ip_hdr(skb); /* outer IP header... */ in geneve_lookup_skb()
428 struct iphdr *iph = ip_hdr(skb); in geneve_udp_encap_err_lookup()
820 tos = ip_tunnel_get_dsfield(ip_hdr(skb), skb); in geneve_get_v4_rt()
875 prio = ip_tunnel_get_dsfield(ip_hdr(skb), skb); in geneve_get_v6_dst()
963 tos = ip_tunnel_ecn_encap(key->tos, ip_hdr(skb), skb); in geneve_xmit_skb()
968 tos = ip_tunnel_ecn_encap(full_tos, ip_hdr(skb), skb); in geneve_xmit_skb()
970 ttl = ip_tunnel_get_ttl(ip_hdr(skb), skb); in geneve_xmit_skb()
983 struct iphdr *iph = ip_hdr(skb); in geneve_xmit_skb()
1060 prio = ip_tunnel_ecn_encap(key->tos, ip_hdr(skb), skb); in geneve6_xmit_skb()
1064 ip_hdr(skb), skb); in geneve6_xmit_skb()
[all …]
Damt.c539 iph = ip_hdr(skb); in amt_build_igmp_gq()
677 iph = ip_hdr(skb); in amt_send_discovery()
768 iph = ip_hdr(skb); in amt_send_request()
1187 iph = ip_hdr(skb); in amt_dev_xmit()
1941 struct iphdr *iph = ip_hdr(skb); in amt_igmpv2_report_handler()
1978 struct iphdr *iph = ip_hdr(skb); in amt_igmpv2_leave_handler()
1998 struct iphdr *iph = ip_hdr(skb); in amt_igmpv3_report_handler()
2139 struct iphdr *iph = ip_hdr(skb); in amt_mldv1_leave_handler()
2307 iph = ip_hdr(skb); in amt_multicast_data_handler()
2377 iph = ip_hdr(skb); in amt_membership_query_handler()
[all …]
Dthunderbolt.c992 __sum16 *ipcso = dest + ((void *)&(ip_hdr(skb)->check) - data); in tbnet_xmit_csum_and_map()
996 ip_hdr(skb)->ihl); in tbnet_xmit_csum_and_map()
998 if (ip_hdr(skb)->protocol == IPPROTO_TCP) in tbnet_xmit_csum_and_map()
1000 else if (ip_hdr(skb)->protocol == IPPROTO_UDP) in tbnet_xmit_csum_and_map()
1005 *tucso = ~csum_tcpudp_magic(ip_hdr(skb)->saddr, in tbnet_xmit_csum_and_map()
1006 ip_hdr(skb)->daddr, 0, in tbnet_xmit_csum_and_map()
1007 ip_hdr(skb)->protocol, 0); in tbnet_xmit_csum_and_map()
/drivers/net/ethernet/netronome/nfp/flower/
Dconntrack.c166 __be32 ip_hdr[3]; in get_mangled_tos_ttl() local
173 ip_hdr[0] = cpu_to_be32(tmp); in get_mangled_tos_ttl()
175 ip_hdr[1] = cpu_to_be32(tmp); in get_mangled_tos_ttl()
179 ip_hdr[0] = cpu_to_be32(tmp); in get_mangled_tos_ttl()
181 ip_hdr[2] = cpu_to_be32(tmp); in get_mangled_tos_ttl()
185 get_mangled_key(rule, ip_hdr, 0, hdr_len, in get_mangled_tos_ttl()
192 tmp = be32_to_cpu(ip_hdr[0]); in get_mangled_tos_ttl()
194 tmp = be32_to_cpu(ip_hdr[1]); in get_mangled_tos_ttl()
197 tmp = be32_to_cpu(ip_hdr[0]); in get_mangled_tos_ttl()
199 tmp = be32_to_cpu(ip_hdr[2]); in get_mangled_tos_ttl()
/drivers/net/ethernet/sfc/
Dtx_tso.c156 EFX_WARN_ON_ONCE_PARANOID(ip_hdr(skb)->protocol != IPPROTO_TCP); in efx_tso_check_protocol()
185 st->ipv4_id = ntohs(ip_hdr(skb)->id); in tso_start()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c660 ip_hdr(skb)->tot_len = in otx2_sqe_add_ext()
679 ip_hdr(skb)->tot_len = iplen; in otx2_sqe_add_ext()
762 proto = ip_hdr(skb)->protocol; in otx2_sqe_add_hdr()
986 if ((ip_hdr(skb)->protocol == IPPROTO_UDP) || in otx2_validate_network_transport()
1104 uh->check = csum_tcpudp_magic(ip_hdr(skb)->saddr, in otx2_set_txtstamp()
1105 ip_hdr(skb)->daddr, in otx2_set_txtstamp()
/drivers/net/ethernet/aquantia/atlantic/
Daq_main.c116 unlikely((ip_hdr(skb)->version == 4) && in aq_ndev_start_xmit()
117 (ip_hdr(skb)->protocol == IPPROTO_UDP) && in aq_ndev_start_xmit()
/drivers/net/ethernet/sun/
Dsunvnet_common.c309 struct iphdr *iph = ip_hdr(skb); in vnet_fullcsum_ipv4()
420 struct iphdr *iph = ip_hdr(skb); in vnet_rx_one()
429 struct iphdr *iph = ip_hdr(skb); in vnet_rx_one()
1175 struct iphdr *iph = ip_hdr(nskb); in vnet_skb_shape()
1234 proto = ip_hdr(skb)->protocol; in vnet_handle_offloads()
1301 if (ip_hdr(curr)->protocol == IPPROTO_TCP) in vnet_handle_offloads()
1303 else if (ip_hdr(curr)->protocol == IPPROTO_UDP) in vnet_handle_offloads()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Den_accel.h65 l4_proto = ip_hdr(skb)->protocol; in mlx5e_tx_tunnel_accel()
/drivers/net/ethernet/qualcomm/emac/
Demac-mac.c1261 u32 pkt_len = ((unsigned char *)ip_hdr(skb) - skb->data) in emac_tso_csum()
1262 + ntohs(ip_hdr(skb)->tot_len); in emac_tso_csum()
1276 ip_hdr(skb)->check = 0; in emac_tso_csum()
1278 ~csum_tcpudp_magic(ip_hdr(skb)->saddr, in emac_tso_csum()
1279 ip_hdr(skb)->daddr, in emac_tso_csum()
/drivers/infiniband/core/
Dlag.c44 iph = ip_hdr(skb); in rdma_build_skb()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1644 real_len = (((unsigned char *)ip_hdr(skb) - skb->data) in atl1e_tso_csum()
1645 + ntohs(ip_hdr(skb)->tot_len)); in atl1e_tso_csum()
1660 ip_hdr(skb)->check = 0; in atl1e_tso_csum()
1661 ip_hdr(skb)->tot_len = 0; in atl1e_tso_csum()
1663 ip_hdr(skb)->saddr, in atl1e_tso_csum()
1664 ip_hdr(skb)->daddr, in atl1e_tso_csum()
1666 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
/drivers/net/ipvlan/
Dipvlan_l3s.c51 struct iphdr *ip4h = ip_hdr(skb); in ipvlan_l3_rcv()
/drivers/s390/net/
Dqeth_core.h975 return (rt) ? rt_nexthop(rt, ip_hdr(skb)->daddr) : ip_hdr(skb)->daddr; in qeth_next_hop_v4_rcu()
992 if ((proto == htons(ETH_P_IP) && ip_hdr(skb)->protocol == IPPROTO_UDP) || in qeth_tx_csum()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dselq.c144 dscp_cp = ipv4_get_dsfield(ip_hdr(skb)) >> 2; in mlx5e_get_dscp_up()

123456