Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Apr 1997 13:01:31 -0700 (PDT)
From:      Garrett Wollman <wollman@FreeBSD.org>
To:        CVS-committers@FreeBSD.org, cvs-all@FreeBSD.org, cvs-sys@FreeBSD.org
Subject:   cvs commit:  src/sys/net if.c raw_cb.c raw_cb.h raw_usrreq.c rtsock.c src/sys/kern sys_socket.c uipc_domain.c uipc_proto.c uipc_socket.c uipc_socket2.c uipc_syscalls.c uipc_usrreq.c src/sys/netinet in.c in_pcb.c in_pcb.h in_proto.c in_var.h ip_output.c ip_var.h raw_ip.c tcp_input.c tcp_usrreq.c tcp_var.h udp_usrreq.c src/sys/nfs nfs_socket.c nfs_syscalls.c src/sys/sys protosw.h socketvar.h un.h
Message-ID:  <199704272001.NAA21898@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
wollman     97/04/27 13:01:30

  Modified:    sys/kern  sys_socket.c uipc_domain.c uipc_proto.c
                        uipc_socket.c  uipc_socket2.c uipc_syscalls.c
                        uipc_usrreq.c
               sys/net   if.c raw_cb.c raw_cb.h raw_usrreq.c rtsock.c
               sys/netinet  in.c in_pcb.c in_pcb.h in_proto.c in_var.h
                        ip_output.c  ip_var.h raw_ip.c tcp_input.c
                        tcp_usrreq.c tcp_var.h  udp_usrreq.c
               sys/nfs   nfs_socket.c nfs_syscalls.c
               sys/sys   protosw.h socketvar.h un.h
  Log:
  The long-awaited mega-massive-network-code- cleanup.  Part I.
  
  This commit includes the following changes:
  1) Old-style (pr_usrreq()) protocols are no longer supported, the compatibility
  glue for them is deleted, and the kernel will panic on boot if any are compiled
  in.
  
  2) Certain protocol entry points are modified to take a process structure,
  so they they can easily tell whether or not it is possible to sleep, and
  also to access credentials.
  
  3) SS_PRIV is no more, and with it goes the SO_PRIVSTATE setsockopt()
  call.  Protocols should use the process pointer they are now passed.
  
  4) The PF_LOCAL and PF_ROUTE families have been updated to use the new
  style, as has the `raw' skeleton family.
  
  5) PF_LOCAL sockets now obey the process's umask when creating a socket
  in the filesystem.
  
  As a result, LINT is now broken.  I'm hoping that some enterprising hacker
  with a bit more time will either make the broken bits work (should be
  easy for netipx) or dike them out.
  
  Revision  Changes    Path
  1.13      +8 -42     src/sys/kern/sys_socket.c
  1.17      +6 -1      src/sys/kern/uipc_domain.c
  1.12      +7 -4      src/sys/kern/uipc_proto.c
  1.26      +57 -26    src/sys/kern/uipc_socket.c
  1.24      +10 -3     src/sys/kern/uipc_socket2.c
  1.26      +13 -9     src/sys/kern/uipc_syscalls.c
  1.23      +300 -217  src/sys/kern/uipc_usrreq.c
  1.47      +2 -2      src/sys/net/if.c
  1.12      +1 -1      src/sys/net/raw_cb.c
  1.9       +3 -3      src/sys/net/raw_cb.h
  1.12      +152 -154  src/sys/net/raw_usrreq.c
  1.27      +180 -51   src/sys/net/rtsock.c
  1.34      +8 -6      src/sys/netinet/in.c
  1.31      +11 -8     src/sys/netinet/in_pcb.c
  1.21      +4 -4      src/sys/netinet/in_pcb.h
  1.39      +4 -2      src/sys/netinet/in_proto.c
  1.26      +3 -2      src/sys/netinet/in_var.h
  1.55      +3 -2      src/sys/netinet/ip_output.c
  1.32      +5 -3      src/sys/netinet/ip_var.h
  1.45      +13 -11    src/sys/netinet/raw_ip.c
  1.58      +3 -2      src/sys/netinet/tcp_input.c
  1.31      +25 -21    src/sys/netinet/tcp_usrreq.c
  1.39      +3 -2      src/sys/netinet/tcp_var.h
  1.38      +14 -13    src/sys/netinet/udp_usrreq.c
  1.24      +27 -19    src/sys/nfs/nfs_socket.c
  1.21      +8 -6      src/sys/nfs/nfs_syscalls.c
  1.17      +24 -26    src/sys/sys/protosw.h
  1.19      +8 -7      src/sys/sys/socketvar.h
  1.12      +2 -1      src/sys/sys/un.h



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