Lines Matching defs:flags
5 /* Definitions for the GUE header, standard and private flags, lengths
11 * |Ver|C| Hlen | Proto/ctype | Standard flags |P|
17 * | Private flags (optional, P bit is set) |
29 * P bit indicates private flags field is present. The private flags
51 __be16 flags;
57 /* Standard flags in GUE header */
59 #define GUE_FLAG_PRIV htons(1<<0) /* Private flags are in options */
64 /* Private flags in the private option extension */
71 /* Functions to compute options length corresponding to flags.
72 * If we ever have a lot of flags this can be potentially be
76 static inline size_t guehdr_flags_len(__be16 flags)
78 return ((flags & GUE_FLAG_PRIV) ? GUE_LEN_PRIV : 0);
81 static inline size_t guehdr_priv_flags_len(__be32 flags)
86 /* Validate standard and private flags. Returns non-zero (meaning invalid)
87 * if there is an unknown standard or private flags, or the options length for
88 * the flags exceeds the options length specific in hlen of the GUE header.
92 __be16 flags = guehdr->flags;
95 if (flags & ~GUE_FLAGS_ALL)
98 len = guehdr_flags_len(flags);
102 if (flags & GUE_FLAG_PRIV) {
103 /* Private flags are last four bytes accounted in