Fix clang-tidy modernize-macro-to-enum warnings in headers

This commit is contained in:
Tim Wojtulewicz 2025-06-09 19:03:51 -07:00
parent 6b34d4d094
commit 451b25cfad
4 changed files with 10 additions and 7 deletions

View file

@ -18,12 +18,12 @@
// We have four different port name spaces: TCP, UDP, ICMP, and UNKNOWN.
// We distinguish between them based on the bits specified in the *_PORT_MASK
// entries specified below.
#define NUM_PORT_SPACES 4
#define PORT_SPACE_MASK 0x30000
constexpr int NUM_PORT_SPACES = 4;
constexpr uint32_t PORT_SPACE_MASK = 0x30000;
#define TCP_PORT_MASK 0x10000
#define UDP_PORT_MASK 0x20000
#define ICMP_PORT_MASK 0x30000
constexpr uint32_t TCP_PORT_MASK = 0x10000;
constexpr uint32_t UDP_PORT_MASK = 0x20000;
constexpr uint32_t ICMP_PORT_MASK = 0x30000;
namespace zeek {