sockstat tcp/udp switches
Peter Jeremy
peterjeremy at optushome.com.au
Sat Nov 4 06:24:44 UTC 2006
On Fri, 2006-Nov-03 15:50:10 -0800, Josh Carroll wrote:
>I'm not sure if the method used to parse out the protocol is "up to
>snuff" for the FreeBSD project, but I'm welcome to
>suggestions/advice/etc.
I suggest you use /etc/protocols rather than hard code the protocols.
This will make the code future-proof. See getprotoent(3) for the
correct way to read /etc/protocols.
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20061104/a4b766ff/attachment.pgp
More information about the freebsd-hackers
mailing list