Home
last modified time | relevance | path

Searched refs:grehdr (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_ip_encap.c10 struct grehdr { struct
20 struct grehdr greh; in bpf_lwt_encap_gre() argument
56 struct grehdr greh; in bpf_lwt_encap_gre6()
63 hdr.ip6hdr.payload_len = bpf_htons(skb->len + sizeof(struct grehdr)); in bpf_lwt_encap_gre6()
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto_gre.c157 const struct gre_base_hdr *grehdr; in gre_pkt_to_tuple() local
161 grehdr = skb_header_pointer(skb, dataoff, sizeof(_grehdr), &_grehdr); in gre_pkt_to_tuple()
162 if (!grehdr || (grehdr->flags & GRE_VERSION) != GRE_VERSION_1) { in gre_pkt_to_tuple()
174 if (grehdr->protocol != GRE_PROTO_PPP) { in gre_pkt_to_tuple()
175 pr_debug("Unsupported GRE proto(0x%x)\n", ntohs(grehdr->protocol)); in gre_pkt_to_tuple()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_flow_dissector.c39 struct grehdr { struct
263 struct grehdr *greh = header; in build_gre_header()
289 ol4_len = sizeof(struct grehdr); in build_packet()