mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Adapt FreeBSD's inet_ntop implementation for internal use.
So we get consistent text representations of IPv6 addresses across platforms.
This commit is contained in:
parent
159733f481
commit
667487cec9
7 changed files with 217 additions and 3 deletions
|
@ -186,6 +186,7 @@
|
|||
#include "LogMgr.h"
|
||||
#include "Reporter.h"
|
||||
#include "IPAddr.h"
|
||||
#include "bro_inet_ntop.h"
|
||||
|
||||
extern "C" {
|
||||
#include "setsignal.h"
|
||||
|
@ -464,7 +465,7 @@ static inline const char* ip2a(uint32 ip)
|
|||
|
||||
addr.s_addr = htonl(ip);
|
||||
|
||||
return inet_ntop(AF_INET, &addr, buffer, 32);
|
||||
return bro_inet_ntop(AF_INET, &addr, buffer, 32);
|
||||
}
|
||||
|
||||
static pid_t child_pid = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue