Home
last modified time | relevance | path

Searched refs:iphdr (Results 26 - 50 of 821) sorted by relevance

12345678910>>...33

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c46 struct iphdr iph;
52 struct iphdr iph;
53 struct iphdr iph_inner;
61 struct iphdr iph;
125 .thoff = ETH_HLEN + sizeof(struct iphdr),
169 .thoff = ETH_HLEN + VLAN_HLEN + sizeof(struct iphdr),
217 .thoff = ETH_HLEN + sizeof(struct iphdr),
243 .thoff = ETH_HLEN + sizeof(struct iphdr),
383 sizeof(struct iphdr),
390 .thoff = ETH_HLEN + sizeof(struct iphdr)
[all...]
/kernel/linux/linux-5.10/samples/bpf/
H A Dparse_ldabs.c23 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
30 __u64 troff = ETH_HLEN + sizeof(struct iphdr); in handle_ingress()
34 if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP || in handle_ingress()
H A Dtest_lwt_bpf.c72 struct iphdr *iph = data; in do_test_data()
84 #define IP_CSUM_OFF offsetof(struct iphdr, check)
85 #define IP_DST_OFF offsetof(struct iphdr, daddr)
86 #define IP_SRC_OFF offsetof(struct iphdr, saddr)
87 #define IP_PROTO_OFF offsetof(struct iphdr, protocol)
H A Dtcp_tos_reflect_kern.c28 struct iphdr *hdr; in bpf_basertt()
47 hdr_size = sizeof(struct iphdr); in bpf_basertt()
54 hdr = (struct iphdr *) header; in bpf_basertt()
/kernel/linux/linux-6.6/samples/bpf/
H A Dparse_ldabs.c23 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
30 __u64 troff = ETH_HLEN + sizeof(struct iphdr); in handle_ingress()
34 if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP || in handle_ingress()
H A Dtest_lwt_bpf.c64 struct iphdr *iph = data; in do_test_data()
76 #define IP_CSUM_OFF offsetof(struct iphdr, check)
77 #define IP_DST_OFF offsetof(struct iphdr, daddr)
78 #define IP_SRC_OFF offsetof(struct iphdr, saddr)
79 #define IP_PROTO_OFF offsetof(struct iphdr, protocol)
H A Dtcp_tos_reflect_kern.c28 struct iphdr *hdr; in bpf_basertt()
47 hdr_size = sizeof(struct iphdr); in bpf_basertt()
54 hdr = (struct iphdr *) header; in bpf_basertt()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c43 struct iphdr iph;
49 struct iphdr iph;
50 struct iphdr iph_inner;
58 struct iphdr iph;
121 .thoff = ETH_HLEN + sizeof(struct iphdr),
163 .thoff = ETH_HLEN + VLAN_HLEN + sizeof(struct iphdr),
209 .thoff = ETH_HLEN + sizeof(struct iphdr),
234 .thoff = ETH_HLEN + sizeof(struct iphdr),
345 sizeof(struct iphdr),
352 .thoff = ETH_HLEN + sizeof(struct iphdr)
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dah4.c80 static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr) in ip_clear_mutable_options()
83 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options()
123 struct iphdr *iph; in ah_output_done()
127 struct iphdr *top_iph = ip_hdr(skb); in ah_output_done()
140 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
157 struct iphdr *iph, *top_iph; in ah_output()
200 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
256 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
269 struct iphdr *work_iph; in ah_input_done()
315 struct iphdr *ip in ah_input()
[all...]
H A Dip_options.c50 memcpy(iph + sizeof(struct iphdr), opt->__data, opt->optlen); in ip_options_build()
108 dopt->rr = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
122 dopt->ts = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
183 dopt->srr = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
190 dopt->cipso = dopt->optlen+sizeof(struct iphdr); in __ip_options_echo()
210 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment()
270 iph = optptr - sizeof(struct iphdr); in __ip_options_compile()
498 unsigned char *optptr = opt->__data + opt->srr - sizeof(struct iphdr); in ip_options_undo()
504 unsigned char *optptr = opt->__data + opt->rr - sizeof(struct iphdr); in ip_options_undo()
510 unsigned char *optptr = opt->__data + opt->ts - sizeof(struct iphdr); in ip_options_undo()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_map_data.c37 struct iphdr *ip4h = (struct iphdr *)skb->data; in rmnet_map_ipv4_dl_csum_trailer()
167 static void rmnet_map_complement_ipv4_txporthdr_csum_field(struct iphdr *ip4h) in rmnet_map_complement_ipv4_txporthdr_csum_field()
181 rmnet_map_ipv4_ul_csum_header(struct iphdr *iphdr, in rmnet_map_ipv4_ul_csum_header() argument
188 if (iphdr->protocol == IPPROTO_UDP) in rmnet_map_ipv4_ul_csum_header()
197 rmnet_map_complement_ipv4_txporthdr_csum_field(iphdr); in rmnet_map_ipv4_ul_csum_header()
262 u16 ip_len = ((struct iphdr *)iph)->ihl * 4; in rmnet_map_v5_checksum_uplink_packet()
264 proto = ((struct iphdr *)iph)->protocol; in rmnet_map_v5_checksum_uplink_packet()
436 void *iphdr; in rmnet_map_v4_checksum_uplink_packet() local
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dah4.c80 static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr) in ip_clear_mutable_options()
83 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options()
123 struct iphdr *iph; in ah_output_done()
127 struct iphdr *top_iph = ip_hdr(skb); in ah_output_done()
140 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
157 struct iphdr *iph, *top_iph; in ah_output()
200 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
256 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
269 struct iphdr *work_iph; in ah_input_done()
315 struct iphdr *ip in ah_input()
[all...]
H A Dip_options.c50 memcpy(iph + sizeof(struct iphdr), opt->__data, opt->optlen); in ip_options_build()
95 dopt->rr = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
109 dopt->ts = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
170 dopt->srr = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
177 dopt->cipso = dopt->optlen+sizeof(struct iphdr); in __ip_options_echo()
197 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment()
257 iph = optptr - sizeof(struct iphdr); in __ip_options_compile()
485 unsigned char *optptr = opt->__data + opt->srr - sizeof(struct iphdr); in ip_options_undo()
491 unsigned char *optptr = opt->__data + opt->rr - sizeof(struct iphdr); in ip_options_undo()
497 unsigned char *optptr = opt->__data + opt->ts - sizeof(struct iphdr); in ip_options_undo()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_noinline.c224 off += sizeof(struct iphdr); in calc_offset()
226 off += sizeof(struct icmphdr) + sizeof(struct iphdr); in calc_offset()
330 struct iphdr *iph; in encap_v4()
337 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in encap_v4()
343 old_eth = data + sizeof(struct iphdr); in encap_v4()
356 iph->tot_len = bpf_htons(pkt_bytes + sizeof(struct iphdr)); in encap_v4()
366 for (int i = 0; i < sizeof(struct iphdr) >> 1; i++) in encap_v4()
369 if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct iphdr))) in encap_v4()
402 new_eth = *data + sizeof(struct iphdr); in decap_v4()
406 if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct iphdr))) in decap_v4()
[all...]
/third_party/lwip/src/include/lwip/
H A Dip6_frag.h83 #define IPV6_FRAG_SRC(ipr) ((ipr)->iphdr->src)
84 #define IPV6_FRAG_DEST(ipr) ((ipr)->iphdr->dest)
93 struct ip6_hdr *iphdr; /* pointer to the first (original) IPv6 header */ member
/kernel/linux/linux-5.10/net/netfilter/
H A Dxt_DSCP.c34 if (skb_ensure_writable(skb, sizeof(struct iphdr))) in dscp_tg()
75 struct iphdr *iph = ip_hdr(skb); in tos_tg()
82 if (skb_ensure_writable(skb, sizeof(struct iphdr))) in tos_tg()
102 if (skb_ensure_writable(skb, sizeof(struct iphdr))) in tos_tg6()
/kernel/linux/linux-6.6/net/netfilter/
H A Dxt_DSCP.c36 if (skb_ensure_writable(skb, sizeof(struct iphdr))) in dscp_tg()
75 struct iphdr *iph = ip_hdr(skb); in tos_tg()
82 if (skb_ensure_writable(skb, sizeof(struct iphdr))) in tos_tg()
102 if (skb_ensure_writable(skb, sizeof(struct iphdr))) in tos_tg6()
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/
H A Dgelic_udbg.c62 static __iomem struct iphdr *h_ip;
162 h_ip = (struct iphdr *)(h_vlan + 1); in gelic_debug_init()
165 h_ip = (struct iphdr *)(h_eth + 1); in gelic_debug_init()
168 header_size += sizeof(struct iphdr); in gelic_debug_init()
200 sizeof(struct iphdr); in gelic_sendbuf()
/kernel/linux/linux-6.6/arch/powerpc/platforms/ps3/
H A Dgelic_udbg.c62 static __iomem struct iphdr *h_ip;
162 h_ip = (struct iphdr *)(h_vlan + 1); in gelic_debug_init()
165 h_ip = (struct iphdr *)(h_eth + 1); in gelic_debug_init()
168 header_size += sizeof(struct iphdr); in gelic_debug_init()
200 sizeof(struct iphdr); in gelic_sendbuf()
/kernel/linux/linux-5.10/drivers/net/wireguard/selftest/
H A Dratelimiter.c33 static __init int timings_test(struct sk_buff *skb4, struct iphdr *hdr4, in timings_test()
97 static __init int capacity_test(struct sk_buff *skb4, struct iphdr *hdr4, in capacity_test()
124 struct iphdr *hdr4; in wg_ratelimiter_selftest()
147 skb4 = alloc_skb(sizeof(struct iphdr), GFP_KERNEL); in wg_ratelimiter_selftest()
151 hdr4 = (struct iphdr *)skb_put(skb4, sizeof(*hdr4)); in wg_ratelimiter_selftest()
/kernel/linux/linux-6.6/drivers/net/wireguard/selftest/
H A Dratelimiter.c33 static __init int timings_test(struct sk_buff *skb4, struct iphdr *hdr4, in timings_test()
97 static __init int capacity_test(struct sk_buff *skb4, struct iphdr *hdr4, in capacity_test()
124 struct iphdr *hdr4; in wg_ratelimiter_selftest()
147 skb4 = alloc_skb(sizeof(struct iphdr), GFP_KERNEL); in wg_ratelimiter_selftest()
151 hdr4 = (struct iphdr *)skb_put(skb4, sizeof(*hdr4)); in wg_ratelimiter_selftest()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_noinline.c224 off += sizeof(struct iphdr); in calc_offset()
226 off += sizeof(struct icmphdr) + sizeof(struct iphdr); in calc_offset()
330 struct iphdr *iph; in encap_v4()
337 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in encap_v4()
343 old_eth = data + sizeof(struct iphdr); in encap_v4()
356 iph->tot_len = bpf_htons(pkt_bytes + sizeof(struct iphdr)); in encap_v4()
366 for (int i = 0; i < sizeof(struct iphdr) >> 1; i++) in encap_v4()
369 if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct iphdr))) in encap_v4()
393 struct iphdr *iph; in send_icmp_reply()
398 + sizeof(struct iphdr) in send_icmp_reply()
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c14 struct iphdr *ip4h = NULL; in rxe_icrc_hdr()
22 sizeof(struct iphdr) : sizeof(struct ipv6hdr)); in rxe_icrc_hdr()
37 ip4h = (struct iphdr *)pshdr; in rxe_icrc_hdr()
/kernel/linux/linux-5.10/include/net/netfilter/
H A Dnf_tables_ipv4.h11 struct iphdr *ip; in nft_set_pktinfo_ipv4()
23 struct iphdr *iph, _iph; in __nft_set_pktinfo_ipv4_validate()
59 struct iphdr *iph; in nft_set_pktinfo_ipv4_ingress()
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Dlag.c18 struct iphdr *iph; in rdma_build_skb()
26 hdr_len += is_ipv4 ? sizeof(struct iphdr) : sizeof(struct ipv6hdr); in rdma_build_skb()
43 skb_push(skb, sizeof(struct iphdr)); in rdma_build_skb()
51 iphdr)); in rdma_build_skb()

Completed in 12 milliseconds

12345678910>>...33