Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Nov 2006 17:24:39 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Josh Carroll <josh.carroll@psualum.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: sockstat tcp/udp switches
Message-ID:  <20061104062439.GD854@turion.vk2pj.dyndns.org>
In-Reply-To: <8cb6106e0611031550y1381b67agdc74144b89de763b@mail.gmail.com>
References:  <8cb6106e0610311058s7144d38bp2b1dafd114e2b433@mail.gmail.com> <20061102094748.G75543@mignon.ki.iif.hu> <8cb6106e0611021507n6315b629kad8cbbf901343c2@mail.gmail.com> <20061103021803.GC8508@kobe.laptop> <8cb6106e0611021834h17737556y4bb2fda39a4bfa0c@mail.gmail.com> <20061103024621.GB16445@kobe.laptop> <20061103024837.GB79357@lor.one-eyed-alien.net> <20061103025442.GB16543@kobe.laptop> <8cb6106e0611031550y1381b67agdc74144b89de763b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--mSxgbZZZvrAyzONB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.

--=20
Peter Jeremy

--mSxgbZZZvrAyzONB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFTDIn/opHv/APuIcRAlthAKCzg8C9oDuOGneXe2jPQPqE6wrwdACfYslB
8FjLnxTK4v2w7udHbLSGFb4=
=gKJL
-----END PGP SIGNATURE-----

--mSxgbZZZvrAyzONB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061104062439.GD854>