summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ipfw/ip_fw_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ipfw/ip_fw_log.c')
-rw-r--r--sys/netinet/ipfw/ip_fw_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ipfw/ip_fw_log.c b/sys/netinet/ipfw/ip_fw_log.c
index 14eb2a2..95b8a25 100644
--- a/sys/netinet/ipfw/ip_fw_log.c
+++ b/sys/netinet/ipfw/ip_fw_log.c
@@ -450,8 +450,8 @@ ipfw_log(struct ip_fw *f, u_int hlen, struct ip_fw_args *args,
tcp = L3HDR(struct tcphdr, ip);
udp = L3HDR(struct udphdr, ip);
- inet_ntoa_r(ip->ip_src, src);
- inet_ntoa_r(ip->ip_dst, dst);
+ inet_ntop(AF_INET, &ip->ip_src, src, sizeof(src));
+ inet_ntop(AF_INET, &ip->ip_dst, dst, sizeof(dst));
}
switch (args->f_id.proto) {
OpenPOWER on IntegriCloud