diff options
author | Jan Maria Matejka <mq@ucw.cz> | 2018-12-17 12:58:01 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-02-20 22:30:54 +0100 |
commit | 25566c68109381178e0305f3e7e1464dea15b90b (patch) | |
tree | 2d6fb12dcc9cc7b8fb848226fb70612880b98320 /nest | |
parent | aca8263926df6156322e1a1157886f1cad2486b1 (diff) |
Filter refactoring: Moved the bitfield bit position formula to route.h
Diffstat (limited to 'nest')
-rw-r--r-- | nest/route.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/route.h b/nest/route.h index 8dfbb376..74446f48 100644 --- a/nest/route.h +++ b/nest/route.h @@ -493,6 +493,7 @@ const char *ea_custom_name(uint ea); #define EA_CUSTOM_BIT 0x8000 #define EA_ALLOW_UNDEF 0x10000 /* ea_find: allow EAF_TYPE_UNDEF */ #define EA_BIT(n) ((n) << 24) /* Used in bitfield accessors */ +#define EA_BIT_GET(ea) ((ea) >> 24) #define EAF_TYPE_MASK 0x1f /* Mask with this to get type */ #define EAF_TYPE_INT 0x01 /* 32-bit unsigned integer number */ |