mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix clang-tidy modernize-macro-to-enum warnings in headers
This commit is contained in:
parent
6b34d4d094
commit
451b25cfad
4 changed files with 10 additions and 7 deletions
|
@ -1,4 +1,5 @@
|
||||||
// See the file "COPYING" in the main distribution directory for copyright.
|
// See the file "COPYING" in the main distribution directory for copyright.
|
||||||
|
// NOLINTBEGIN(modernize-macro-to-enum)
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -306,3 +307,5 @@
|
||||||
|
|
||||||
/* compiled with Spicy support */
|
/* compiled with Spicy support */
|
||||||
#cmakedefine HAVE_SPICY
|
#cmakedefine HAVE_SPICY
|
||||||
|
|
||||||
|
// NOLINTEND(modernize-macro-to-enum)
|
||||||
|
|
10
src/Val.h
10
src/Val.h
|
@ -18,12 +18,12 @@
|
||||||
// We have four different port name spaces: TCP, UDP, ICMP, and UNKNOWN.
|
// 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
|
// We distinguish between them based on the bits specified in the *_PORT_MASK
|
||||||
// entries specified below.
|
// entries specified below.
|
||||||
#define NUM_PORT_SPACES 4
|
constexpr int NUM_PORT_SPACES = 4;
|
||||||
#define PORT_SPACE_MASK 0x30000
|
constexpr uint32_t PORT_SPACE_MASK = 0x30000;
|
||||||
|
|
||||||
#define TCP_PORT_MASK 0x10000
|
constexpr uint32_t TCP_PORT_MASK = 0x10000;
|
||||||
#define UDP_PORT_MASK 0x20000
|
constexpr uint32_t UDP_PORT_MASK = 0x20000;
|
||||||
#define ICMP_PORT_MASK 0x30000
|
constexpr uint32_t ICMP_PORT_MASK = 0x30000;
|
||||||
|
|
||||||
namespace zeek {
|
namespace zeek {
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include "zeek/analyzer/protocol/tcp/TCP.h"
|
#include "zeek/analyzer/protocol/tcp/TCP.h"
|
||||||
|
|
||||||
#define BTTRACKER_BUF 2048
|
constexpr uint32_t BTTRACKER_BUF = 2048;
|
||||||
|
|
||||||
namespace zeek {
|
namespace zeek {
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%include zeek.pac
|
%include zeek.pac
|
||||||
|
|
||||||
%extern{
|
%extern{
|
||||||
#define MSGLEN_LIMIT 0x40000
|
constexpr uint32_t MSGLEN_LIMIT = 0x40000;
|
||||||
|
|
||||||
#include "zeek/analyzer/protocol/bittorrent/events.bif.h"
|
#include "zeek/analyzer/protocol/bittorrent/events.bif.h"
|
||||||
%}
|
%}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue