Home
last modified time | relevance | path

Searched refs:guehdr (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/net/ipv4/
Dfou.c88 static struct guehdr *gue_remcsum(struct sk_buff *skb, struct guehdr *guehdr, in gue_remcsum() argument
99 return guehdr; in gue_remcsum()
103 guehdr = (struct guehdr *)&udp_hdr(skb)[1]; in gue_remcsum()
105 skb_remcsum_process(skb, (void *)guehdr + hdrlen, in gue_remcsum()
108 return guehdr; in gue_remcsum()
111 static int gue_control_message(struct sk_buff *skb, struct guehdr *guehdr) in gue_control_message() argument
122 struct guehdr *guehdr; in gue_udp_recv() local
130 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue_udp_recv()
134 guehdr = (struct guehdr *)&udp_hdr(skb)[1]; in gue_udp_recv()
136 switch (guehdr->version) { in gue_udp_recv()
[all …]
/linux-6.1.9/net/ipv6/
Dfou6.c93 struct guehdr *guehdr; in gue6_err() local
97 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue6_err()
101 guehdr = (struct guehdr *)&udp_hdr(skb)[1]; in gue6_err()
103 switch (guehdr->version) { in gue6_err()
110 switch (((struct iphdr *)guehdr)->version) { in gue6_err()
128 if (guehdr->control) in gue6_err()
131 optlen = guehdr->hlen << 2; in gue6_err()
136 guehdr = (struct guehdr *)&udp_hdr(skb)[1]; in gue6_err()
137 if (validate_gue_flags(guehdr, optlen)) in gue6_err()
144 if (guehdr->proto_ctype == IPPROTO_UDP || in gue6_err()
[all …]
/linux-6.1.9/include/net/
Dgue.h36 struct guehdr { struct
90 static inline int validate_gue_flags(struct guehdr *guehdr, size_t optlen) in validate_gue_flags() argument
92 __be16 flags = guehdr->flags; in validate_gue_flags()
106 __be32 pflags = *(__be32 *)((void *)&guehdr[1] + in validate_gue_flags()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.h20 struct guehdr { struct
52 struct guehdr gue;
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_flow_dissector.c44 struct guehdr { struct
256 struct guehdr *gueh = header; in build_gue_header()
291 ol4_len = sizeof(struct udphdr) + sizeof(struct guehdr); in build_packet()
354 sizeof(struct guehdr), in build_packet()
358 sizeof(struct guehdr) + il3_len + il4_len + in build_packet()
/linux-6.1.9/net/netfilter/ipvs/
Dip_vs_xmit.c387 mtu -= sizeof(struct udphdr) + sizeof(struct guehdr); in __ip_vs_get_out_rt()
550 mtu -= sizeof(struct udphdr) + sizeof(struct guehdr); in __ip_vs_get_out_rt_v6()
1028 struct guehdr *gueh; /* Our new GUE header */ in ipvs_gue_encap()
1039 hdrlen = sizeof(struct guehdr) + optlen; in ipvs_gue_encap()
1043 gueh = (struct guehdr *)skb->data; in ipvs_gue_encap()
1182 gue_hdrlen = sizeof(struct guehdr) + gue_optlen; in ip_vs_tunnel_xmit()
1332 gue_hdrlen = sizeof(struct guehdr) + gue_optlen; in ip_vs_tunnel_xmit_v6()
Dip_vs_core.c1525 struct guehdr _gueh, *gueh; in ipvs_udp_decap()
1536 return sizeof(struct udphdr) + sizeof(struct guehdr) + in ipvs_udp_decap()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dcls_redirect.c252 (sizeof(struct guehdr) / sizeof(uint32_t)) + hop_count; in encap_init()