Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD master CVS tree commits



thorpej
Wed Jan  7 14:50:43 PST 1998
Update of /cvsroot/src/sys/kern
In directory netbsd1:/var/slash-tmp/cvs-serv14609

Modified Files:
        uipc_proto.c 
Log Message:
Add uipc_ctloutput().


lukem
Wed Jan  7 14:51:26 PST 1998
Update of /cvsroot/src/sys/netinet
In directory netbsd1:/var/slash-tmp/cvs-serv13900

Modified Files:
        in.h in_pcb.c in_pcb.h ip_output.c 
Log Message:
add the following, derived from FreeBSD:
* IP_PORTRANGE socket option, which controls how the ephemeral ports
  are allocated. it takes the following settings:
        IP_PORTRANGE_DEFAULT    use anonportmin (49152) -> anonportmax (65535)
        IP_PORTRANGE_HIGH       as IP_PORTRANGE_DEFAULT (retained for FreeBSD
                                compat reasons, where these are separate)
        IP_PORTRANGE_LOW        use 600 -> 1023. only works if uid==0.
* in_pcb flag INP_ANONPORT. set if port was allocated ephmerally


lukem
Wed Jan  7 14:55:08 PST 1998
Update of /cvsroot/src/usr.bin/netstat
In directory netbsd1:/var/slash-tmp/cvs-serv15056

Modified Files:
        inet.c 
Log Message:
if INP_ANONPORT is set in the pcb, don't getservbyport the local port,
as the service name is irrelevent. from freebsd


thorpej
Wed Jan  7 14:57:10 PST 1998
Update of /cvsroot/src/sys/kern
In directory netbsd1:/var/slash-tmp/cvs-serv14695

Modified Files:
        uipc_usrreq.c 
Log Message:
Implement passing credentials as ancillary data on Unix domain sockets,
enabled with the LOCAL_CREDS socket option on the listener.  Semantics are
similar to BSD/OS's:
- Creds are available with first data on SOCK_STREAM, and with every datagram
  on SOCK_DGRAM.
- It is not possible to forge credentials.

Different in that:
- Different credential data structure (ours does not rely on the format
  of internal kernel data structures, and does not pass the login name).
- We can pass creds and file descriptors at the same time (this does not
  work in BSD/OS).

Luke Mewburn <lukem%netbsd.org@localhost> gets credit for inspiring me to 
implement
this.  :-)




Home | Main Index | Thread Index | Old Index