* rtnl_rule.c (decode_fib_rule_uid_range): Define struct type for
fib_rule_uid_range explicitly.
(decode_fib_rule_uid_range) [!HAVE_STRUCT_FIB_RULE_UID_RANGE]: Remove.
* xlat/fib_rule_flags.in: Add fallback definitions.
References: https://bugzilla.redhat.com/show_bug.cgi?id=
1758201
const unsigned int len,
const void *const opaque_data)
{
-#ifdef HAVE_STRUCT_FIB_RULE_UID_RANGE
- struct fib_rule_uid_range range;
+ struct /* fib_rule_uid_range */ {
+ uint32_t start;
+ uint32_t end;
+ } range;
if (len < sizeof(range))
return false;
}
return true;
-#else
- return false;
-#endif
}
static bool
-FIB_RULE_PERMANENT
-FIB_RULE_INVERT
-FIB_RULE_UNRESOLVED
-FIB_RULE_IIF_DETACHED
-FIB_RULE_OIF_DETACHED
-FIB_RULE_FIND_SADDR
+FIB_RULE_PERMANENT 0x00000001
+FIB_RULE_INVERT 0x00000002
+FIB_RULE_UNRESOLVED 0x00000004
+FIB_RULE_IIF_DETACHED 0x00000008
+FIB_RULE_OIF_DETACHED 0x00000010
+FIB_RULE_FIND_SADDR 0x00010000