Lines Matching refs:flags
9 __be16 flags; member
65 static inline __be16 gre_flags_to_tnl_flags(__be16 flags) in gre_flags_to_tnl_flags() argument
69 if (flags & GRE_CSUM) in gre_flags_to_tnl_flags()
71 if (flags & GRE_ROUTING) in gre_flags_to_tnl_flags()
73 if (flags & GRE_KEY) in gre_flags_to_tnl_flags()
75 if (flags & GRE_SEQ) in gre_flags_to_tnl_flags()
77 if (flags & GRE_STRICT) in gre_flags_to_tnl_flags()
79 if (flags & GRE_REC) in gre_flags_to_tnl_flags()
81 if (flags & GRE_VERSION) in gre_flags_to_tnl_flags()
89 __be16 flags = 0; in gre_tnl_flags_to_gre_flags() local
92 flags |= GRE_CSUM; in gre_tnl_flags_to_gre_flags()
94 flags |= GRE_ROUTING; in gre_tnl_flags_to_gre_flags()
96 flags |= GRE_KEY; in gre_tnl_flags_to_gre_flags()
98 flags |= GRE_SEQ; in gre_tnl_flags_to_gre_flags()
100 flags |= GRE_STRICT; in gre_tnl_flags_to_gre_flags()
102 flags |= GRE_REC; in gre_tnl_flags_to_gre_flags()
104 flags |= GRE_VERSION; in gre_tnl_flags_to_gre_flags()
106 return flags; in gre_tnl_flags_to_gre_flags()
110 __be16 flags, __be16 proto, in gre_build_header() argument
120 greh->flags = gre_tnl_flags_to_gre_flags(flags); in gre_build_header()
123 if (flags & (TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_SEQ)) { in gre_build_header()
126 if (flags & TUNNEL_SEQ) { in gre_build_header()
130 if (flags & TUNNEL_KEY) { in gre_build_header()
134 if (flags & TUNNEL_CSUM && in gre_build_header()