diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-08-19 19:47:13 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-08-19 19:47:13 +0000 |
commit | af73db292ec060f1945ba58160b4ad0232b3a4b1 (patch) | |
tree | cd3f4511017c370d76ae40c70b65af1a2f39a1a3 /sys/netinet6 | |
parent | a3fc793296830a5f1a6456a9cf4a37f64dd22dde (diff) | |
download | FreeBSD-src-af73db292ec060f1945ba58160b4ad0232b3a4b1.zip FreeBSD-src-af73db292ec060f1945ba58160b4ad0232b3a4b1.tar.gz |
Enclose IPv6 addresses in brackets when they are displayed printable with a
TCP/UDP port seperated by a colon. This is for the log_in_vain facility.
Pointed out by: Edward J. M. Brocklesby
Reviewed by: ume
MFC after: 2 weeks
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/udp6_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index c9fcbcb..a7e46b9 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -346,7 +346,7 @@ udp6_input(mp, offp, proto) strcpy(buf, ip6_sprintf(&ip6->ip6_dst)); log(LOG_INFO, - "Connection attempt to UDP %s:%d from %s:%d\n", + "Connection attempt to UDP [%s]:%d from [%s]:%d\n", buf, ntohs(uh->uh_dport), ip6_sprintf(&ip6->ip6_src), ntohs(uh->uh_sport)); } |