Lines Matching refs:flags
9 __be16 flags; member
56 static inline __be16 gre_flags_to_tnl_flags(__be16 flags) in gre_flags_to_tnl_flags() argument
60 if (flags & GRE_CSUM) in gre_flags_to_tnl_flags()
62 if (flags & GRE_ROUTING) in gre_flags_to_tnl_flags()
64 if (flags & GRE_KEY) in gre_flags_to_tnl_flags()
66 if (flags & GRE_SEQ) in gre_flags_to_tnl_flags()
68 if (flags & GRE_STRICT) in gre_flags_to_tnl_flags()
70 if (flags & GRE_REC) in gre_flags_to_tnl_flags()
72 if (flags & GRE_VERSION) in gre_flags_to_tnl_flags()
80 __be16 flags = 0; in gre_tnl_flags_to_gre_flags() local
83 flags |= GRE_CSUM; in gre_tnl_flags_to_gre_flags()
85 flags |= GRE_ROUTING; in gre_tnl_flags_to_gre_flags()
87 flags |= GRE_KEY; in gre_tnl_flags_to_gre_flags()
89 flags |= GRE_SEQ; in gre_tnl_flags_to_gre_flags()
91 flags |= GRE_STRICT; in gre_tnl_flags_to_gre_flags()
93 flags |= GRE_REC; in gre_tnl_flags_to_gre_flags()
95 flags |= GRE_VERSION; in gre_tnl_flags_to_gre_flags()
97 return flags; in gre_tnl_flags_to_gre_flags()
112 __be16 flags, __be16 proto, in gre_build_header() argument
122 greh->flags = gre_tnl_flags_to_gre_flags(flags); in gre_build_header()
125 if (flags & (TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_SEQ)) { in gre_build_header()
128 if (flags & TUNNEL_SEQ) { in gre_build_header()
132 if (flags & TUNNEL_KEY) { in gre_build_header()
136 if (flags & TUNNEL_CSUM && in gre_build_header()