Home
last modified time | relevance | path

Searched refs:iphdr (Results 76 - 100 of 828) sorted by relevance

12345678910>>...34

/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_selftest.c75 #define MLX5E_TEST_PKT_SIZE (sizeof(struct ethhdr) + sizeof(struct iphdr) +\
85 struct iphdr *iph; in mlx5e_test_get_udp_skb()
102 iph = skb_put(skb, sizeof(struct iphdr)); in mlx5e_test_get_udp_skb()
123 iplen = sizeof(struct iphdr) + sizeof(struct udphdr) + in mlx5e_test_get_udp_skb()
166 struct iphdr *iph; in mlx5e_test_loopback_validate()
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/mei/
H A Dnet.c193 const struct iphdr *iphdr; in iwl_mei_rx_filter_ipv4() local
197 if (!pskb_may_pull(skb, skb_network_offset(skb) + sizeof(*iphdr)) || in iwl_mei_rx_filter_ipv4()
202 iphdr = ip_hdr(skb); in iwl_mei_rx_filter_ipv4()
204 filters->ipv4_filter.ipv4_addr == iphdr->daddr; in iwl_mei_rx_filter_ipv4()
/kernel/linux/linux-6.6/net/batman-adv/
H A Dgateway_client.c567 struct iphdr *iphdr; in batadv_gw_dhcp_recipient_get() local
596 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
599 iphdr = (struct iphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
600 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
603 if (iphdr->protocol != IPPROTO_UDP) in batadv_gw_dhcp_recipient_get()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_cls_redirect.h53 struct iphdr ip;
59 struct iphdr ip;
H A Dtest_queue_stack_map.h41 struct iphdr *iph = (struct iphdr *)(eth + 1); in _test()
H A Dxdping_kern.c65 struct iphdr *iph; in icmp_check()
97 struct iphdr *iph; in xdping_client()
160 struct iphdr *iph; in xdping_server()
/kernel/linux/linux-5.10/include/net/
H A Ddsfield.h16 static inline __u8 ipv4_get_dsfield(const struct iphdr *iph) in ipv4_get_dsfield()
28 static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, in ipv4_change_dsfield()
/kernel/linux/linux-6.6/include/net/
H A Ddsfield.h16 static inline __u8 ipv4_get_dsfield(const struct iphdr *iph) in ipv4_get_dsfield()
28 static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, in ipv4_change_dsfield()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_redirect.c29 struct iphdr *iph = NULL; in get_redirect_target()
36 iph = (struct iphdr *)start; in get_redirect_target()
H A Dtest_cls_redirect.h53 struct iphdr ip;
59 struct iphdr ip;
H A Dtest_queue_stack_map.h39 struct iphdr *iph = (struct iphdr *)(eth + 1); in _test()
H A Dxdping_kern.c65 struct iphdr *iph; in icmp_check()
96 struct iphdr *iph; in xdping_client()
158 struct iphdr *iph; in xdping_server()
H A Dip_check_defrag.c22 static bool is_frag_v4(struct iphdr *iph) in is_frag_v4()
49 struct iphdr *iph; in handle_v4()
H A Dvrf_socket_lookup.c23 struct iphdr *iph; in socket_lookup()
32 iph = (struct iphdr *)(eth + 1); in socket_lookup()
/kernel/linux/linux-6.6/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c75 struct iphdr *ip4h = NULL; in rxe_icrc_hdr()
83 sizeof(struct iphdr) : sizeof(struct ipv6hdr)); in rxe_icrc_hdr()
98 ip4h = (struct iphdr *)pshdr; in rxe_icrc_hdr()
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_flow_table_ip.c62 static void nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, in nf_flow_nat_ip_l4proto()
77 struct sk_buff *skb, struct iphdr *iph, in nf_flow_snat_ip()
100 struct sk_buff *skb, struct iphdr *iph, in nf_flow_dnat_ip()
124 struct iphdr *iph) in nf_flow_nat_ip()
138 return thoff != sizeof(struct iphdr); in ip_has_options()
178 struct iphdr *iph; in nf_flow_tuple_ip()
184 iph = (struct iphdr *)(skb_network_header(skb) + ctx->offset); in nf_flow_tuple_ip()
233 iph = (struct iphdr *)(skb_network_header(skb) + ctx->offset); in nf_flow_tuple_ip()
369 struct iphdr *iph; in nf_flow_offload_forward()
378 iph = (struct iphdr *)(skb_network_heade in nf_flow_offload_forward()
[all...]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dnf_dup_ipv4.c26 const struct iphdr *iph = ip_hdr(skb); in nf_dup_ipv4_route()
53 struct iphdr *iph; in nf_dup_ipv4()
/kernel/linux/linux-6.6/net/ipv4/netfilter/
H A Dnf_dup_ipv4.c26 const struct iphdr *iph = ip_hdr(skb); in nf_dup_ipv4_route()
53 struct iphdr *iph; in nf_dup_ipv4()
/kernel/linux/linux-5.10/net/bridge/netfilter/
H A Dnft_reject_bridge.c44 struct iphdr *iph; in nft_bridge_iphdr_validate()
47 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in nft_bridge_iphdr_validate()
75 struct iphdr *niph; in nft_reject_br_send_v4_tcp_reset()
86 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + in nft_reject_br_send_v4_tcp_reset()
109 struct iphdr *niph; in nft_reject_br_send_v4_unreach()
138 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct icmphdr) + in nft_reject_br_send_v4_unreach()
/kernel/linux/linux-5.10/net/ipv4/
H A Dip_input.c271 const struct iphdr *iph; in ip_rcv_options()
287 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); in ip_rcv_options()
316 static bool ip_can_use_hint(const struct sk_buff *skb, const struct iphdr *iph, in ip_can_use_hint()
329 const struct iphdr *iph = ip_hdr(skb); in ip_rcv_finish_core()
460 const struct iphdr *iph; in ip_rcv_core()
477 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in ip_rcv_core()
/kernel/linux/linux-6.6/net/ipv4/
H A Dip_input.c263 const struct iphdr *iph; in ip_rcv_options()
279 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); in ip_rcv_options()
308 static bool ip_can_use_hint(const struct sk_buff *skb, const struct iphdr *iph, in ip_can_use_hint()
321 const struct iphdr *iph = ip_hdr(skb); in ip_rcv_finish_core()
458 const struct iphdr *iph; in ip_rcv_core()
480 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in ip_rcv_core()
/kernel/linux/linux-5.10/net/batman-adv/
H A Dgateway_client.c616 struct iphdr *iphdr; in batadv_gw_dhcp_recipient_get() local
645 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
648 iphdr = (struct iphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
649 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
652 if (iphdr->protocol != IPPROTO_UDP) in batadv_gw_dhcp_recipient_get()
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_flow_table_ip.c70 static int nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, in nf_flow_nat_ip_l4proto()
89 struct iphdr *iph, unsigned int thoff, in nf_flow_snat_ip()
114 struct iphdr *iph, unsigned int thoff, in nf_flow_dnat_ip()
141 struct iphdr *iph = ip_hdr(skb); in nf_flow_nat_ip()
159 return thoff != sizeof(struct iphdr); in ip_has_options()
167 struct iphdr *iph; in nf_flow_tuple_ip()
253 struct iphdr *iph; in nf_flow_offload_ip_hook()
/third_party/lwip/src/core/ipv6/
H A Dip6_frag.c188 if (pbuf_header_force(p, (s16_t)((u8_t*)p->payload - (u8_t*)ipr->iphdr))) { in ip6_reass_free_complete_datagram()
385 ipr->iphdr = ip_data.current_ip6_header; in ip6_reass()
532 ipr->iphdr = ip_data.current_ip6_header; in ip6_reass()
629 MEMMOVE((u8_t*)ipr->iphdr + sizeof(struct ip6_frag_hdr), ipr->iphdr, in ip6_reass()
630 (size_t)((u8_t*)p->payload - (u8_t*)ipr->iphdr)); in ip6_reass()
633 iphdr_ptr = (struct ip6_hdr*)((u8_t*)ipr->iphdr + in ip6_reass()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dpsock_snd.c80 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); in build_vnet_header()
84 vh->csum_start = ETH_HLEN + sizeof(struct iphdr); in build_vnet_header()
95 vh->gso_size = cfg_mtu - sizeof(struct iphdr); in build_vnet_header()
119 struct iphdr *iph = header; in build_ipv4_header()

Completed in 12 milliseconds

12345678910>>...34