diff options
author | Mauro Sardara <msardara@cisco.com> | 2022-09-26 11:20:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2022-09-26 11:20:08 +0000 |
commit | 3f0ad924b935c304559f4fa39e165b49d8da6e16 (patch) | |
tree | 25eeb2b8f066ca8122675fb23f997157842c48e1 /ctrl/libhicnctrl/src/modules/hicn_light/base.h | |
parent | 80c26b9e8a8cba1c437d67a39a3844d76fcbe305 (diff) | |
parent | d2072866a012548f1f9e9bc93d9b8d7a84b654f5 (diff) |
Merge "fix(stats): fix forwarder statistics retrieval"
Diffstat (limited to 'ctrl/libhicnctrl/src/modules/hicn_light/base.h')
-rw-r--r-- | ctrl/libhicnctrl/src/modules/hicn_light/base.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ctrl/libhicnctrl/src/modules/hicn_light/base.h b/ctrl/libhicnctrl/src/modules/hicn_light/base.h index fb6a68147..ea6fc1bc9 100644 --- a/ctrl/libhicnctrl/src/modules/hicn_light/base.h +++ b/ctrl/libhicnctrl/src/modules/hicn_light/base.h @@ -3,16 +3,13 @@ #include <hicn/ctrl/hicn-light.h> -#if 1 #ifdef __APPLE__ #define RANDBYTE() (u8)(arc4random() & 0xFF) #else #define RANDBYTE() (u8)(random() & 0xFF) #endif -#else -#define RANDBYTE() (u8)(rand() & 0xFF) -#endif +// TODO: is this used? #define foreach_hc_command \ _(connection_add) \ _(connection_remove) \ @@ -36,14 +33,6 @@ _(subscription_add) \ _(subscription_remove) -#if 0 -const char *command_type_str[] = { -#define _(l, u) [COMMAND_TYPE_##u] = STRINGIZE(u), - foreach_command_type -#undef _ -}; -#endif - typedef union { #define _(x) cmd_##x##_t x; foreach_hc_command |