mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Merge branch 'master' into topic/jsiwek/supervisor
This commit is contained in:
commit
9c0d252c2b
32 changed files with 479 additions and 318 deletions
|
@ -127,7 +127,7 @@ std::string extract_ip_and_len(const std::string& i, int* len);
|
|||
|
||||
inline void bytetohex(unsigned char byte, char* hex_out)
|
||||
{
|
||||
static const char hex_chars[] = "0123456789abcdef";
|
||||
static constexpr char hex_chars[] = "0123456789abcdef";
|
||||
hex_out[0] = hex_chars[(byte & 0xf0) >> 4];
|
||||
hex_out[1] = hex_chars[byte & 0x0f];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue