diff options
Diffstat (limited to 'src/lib/eval/token.h')
-rw-r--r-- | src/lib/eval/token.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/eval/token.h b/src/lib/eval/token.h index b37a9867d5..9f0c10d99b 100644 --- a/src/lib/eval/token.h +++ b/src/lib/eval/token.h @@ -542,7 +542,7 @@ class TokenPkt : public Token { public: /// @brief enum value that determines the field. - enum MetadataType { + enum MetadataType : int { IFACE, ///< interface name (string) SRC, ///< source (IP address) DST, ///< destination (IP address) @@ -591,7 +591,7 @@ class TokenPkt4 : public Token { public: /// @brief enum value that determines the field. - enum FieldType { + enum FieldType : int { CHADDR, ///< chaddr field (up to 16 bytes link-layer address) GIADDR, ///< giaddr (IPv4 address) CIADDR, ///< ciaddr (IPv4 address) @@ -644,7 +644,7 @@ private: class TokenPkt6 : public Token { public: /// @brief enum value that determines the field. - enum FieldType { + enum FieldType : int { MSGTYPE, ///< msg type TRANSID ///< transaction id (integer but manipulated as a string) }; @@ -696,7 +696,7 @@ class TokenRelay6Field : public Token { public: /// @brief enum value that determines the field. - enum FieldType { + enum FieldType : int { PEERADDR, ///< Peer address field (IPv6 address) LINKADDR ///< Link address field (IPv6 address) }; @@ -1091,7 +1091,7 @@ class TokenVendor : public TokenOption { public: /// @brief Specifies a field of the vendor option - enum FieldType { + enum FieldType : int { SUBOPTION, ///< If this token fetches a suboption, not a field. ENTERPRISE_ID, ///< enterprise-id field (vendor-info, vendor-class) EXISTS, ///< vendor[123].exists |