From: Brian Candler Date: 2003-03-10T03:11:22+09:00 Subject: Re: Suggestion for setsockopt On Mon, Mar 10, 2003 at 02:03:40AM +0900, ts wrote: > >>>>> "B" == Brian Candler writes: > > B> I'd like to suggest that if 'lev' is provided as a string, then a > B> getprotobyname() is done to convert it to an integer. Under Solaris and > B> FreeBSD (at least), constants like 'SOL_TCP' are not defined, but you are > B> supposed to lookup the protocol number in this way. > > IPPROTO_TCP, ... are not defined on these systems ? Err... yes :-) The Pickaxe p482-483 doesn't list them, but they are there and they work. Problem solved. Thanks, Brian.