GRE_VERSION
__assign_bit(IP_TUNNEL_VERSION_BIT, res, flags & GRE_VERSION);
flags |= GRE_VERSION;
gre_ver = ntohs(hdr->flags & GRE_VERSION);
if (unlikely(greh->flags & (GRE_VERSION | GRE_ROUTING)))
if (flags & (GRE_VERSION|GRE_ROUTING))
((i_flags | o_flags) & (GRE_VERSION | GRE_ROUTING)))
if ((p.i_flags|p.o_flags)&(GRE_VERSION|GRE_ROUTING))
if (flags & (GRE_VERSION|GRE_ROUTING))
if (!grehdr || (grehdr->flags & GRE_VERSION) != GRE_VERSION_1) {
if ((greh->flags & GRE_VERSION) != GRE_VERSION_0)
if ((greh->flags & GRE_VERSION) != GRE_VERSION_0)
switch (greh->flags & GRE_VERSION) {
version = gre->flags & GRE_VERSION;
if ((greh->flags & GRE_VERSION) != GRE_VERSION_0)
if ((greh->flags & GRE_VERSION) != GRE_VERSION_0)
if (gre_flags & (GRE_VERSION|GRE_ROUTING))
if (gre_flags & (GRE_VERSION|GRE_ROUTING))
if (bpf_htons(gre->flags & GRE_VERSION))