Subject: Re: uid,gid, and socket protocols
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 09/06/2002 19:52:48
> there's a pr_type and a pr_protocol in teh protosw struct.  but i
> cannot seem to find what values of those entries correspond to what
> protocols (TCP/UDP/ICMP).

Are you sure you want to, that you shouldn't really be testing the
socket type (eg, SOCK_STREAM for TCP)?

If you really want the protocol values, look at in_proto.c and you'll
see that the pr_protocol values are things like IPPROTO_UDP and
IPPROTO_TCP, which come from <netinet/in.h>.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B