mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Deprecate bro_inet_ntop.{c,h}
This commit is contained in:
parent
f624c18383
commit
18ae40277a
4 changed files with 11 additions and 9 deletions
|
@ -6,7 +6,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "zeek/3rdparty/bro_inet_ntop.h"
|
||||
#include "zeek/3rdparty/zeek_inet_ntop.h"
|
||||
#include "zeek/Conn.h"
|
||||
#include "zeek/Hash.h"
|
||||
#include "zeek/Reporter.h"
|
||||
|
@ -246,7 +246,7 @@ std::string IPAddr::AsString() const
|
|||
{
|
||||
char s[INET_ADDRSTRLEN];
|
||||
|
||||
if ( ! bro_inet_ntop(AF_INET, &in6.s6_addr[12], s, INET_ADDRSTRLEN) )
|
||||
if ( ! zeek_inet_ntop(AF_INET, &in6.s6_addr[12], s, INET_ADDRSTRLEN) )
|
||||
return "<bad IPv4 address conversion";
|
||||
else
|
||||
return s;
|
||||
|
@ -255,7 +255,7 @@ std::string IPAddr::AsString() const
|
|||
{
|
||||
char s[INET6_ADDRSTRLEN];
|
||||
|
||||
if ( ! bro_inet_ntop(AF_INET6, in6.s6_addr, s, INET6_ADDRSTRLEN) )
|
||||
if ( ! zeek_inet_ntop(AF_INET6, in6.s6_addr, s, INET6_ADDRSTRLEN) )
|
||||
return "<bad IPv6 address conversion";
|
||||
else
|
||||
return s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue