IP address and port display in various utilities

Marco Moock <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]>
Hello!

Various FreeBSD utilities display IPv6 address and ports differently.

For sockstat, this was changed recently to use brackets around them.
https://cgit.freebsd.org/src/commit/?id=fe81e3944c085e765c83c4f78941d7529ceb556e

This wasn't done for netstat, but that uses a dot as separator between
address and port - for IPv6 and IPv4.

Is there a special reason for the dot in case of IPv4?

Is there a general way how FreeBSD handles that?

The common way I know is to use brackets for IPv6 addresses in case a
port number is specified with the colon separator.
For IPv4, it is a colon a separator.

-- 
kind regards
Marco

Send unsolicited bulk mail to [email protected]
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEpXefSZn9R6zNZtTQE76RLz2tRfAFAmmcKg0ACgkQE76RLz2t
RfBhsRAAwmMII88+zVRTTdowsugr3ALqlLVRO5RjgRhAvoUCjBv7xOWFvPTEwUC3
LZ04okBNOTaB+m4OqzVX2EjXzp3FaqBRgKqdxvCqCR+AJaa0FCdNF2UVGFznO+vQ
7JoPKAFNxV+69/tGKJk/NV07zGuA0NJO5ElNDWHpiKCP5j/J4jqU3qATqV46zdRH
R+HhLhVAmtRXdcfnrZoqCnF1hRNoe8JKhuea8hB5xVFjeEYy932urIEeIGviYje7
ssewL7IqOeSmpmKdfaHtPfh/SAfSbM256ldE23FGqFflpXpgbb2HIr5DccZhDNsr
CVxGaoSxLZ5ueCy4LLyRl2NG5ArLaRSvfWFGQQAhbMrHS2+fVlzx2fphg54GKVCb
lA/jJCH0+a0IPDMQ+wxDbs0TocsA3rPAL7HcO3SdqTQ1xUQ9BkPR8LC72+bGtv9P
oPGeV3fEq+Orh73dbtpT49puBpbpXfTedWNsZ2dvpoqtBTdB4YjHRZyUzkxXWVaQ
Zvcos8IsUsnwFBrju8mcxVPf4hbvW55zNCBFw1psxonsK+b36NLfiGMLVF6afdiu
OJQoNelXHb5FX8rc2JFHbVJl90dh1xL8jDLK2tk1SlAFnOMQ1owPixpJfCo7gofG
KL1wVRv5wnVy44ER1T7vrYHHw/OIkNIOQ93JqIztHajLmYH5FLQ=
=rCu2
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.