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
pgp2viCUWiyY6.pgp
Description: PGP signature