cvs commit: src/sys/netinet raw_ip.c tcp_output.c tcp_subr.c tcp_syncache.c udp_usrreq.c

Robert Watson rwatson at FreeBSD.org
Mon May 3 19:11:48 PDT 2004


rwatson     2004/05/03 19:11:48 PDT

  FreeBSD src repository

  Modified files:
    sys/netinet          raw_ip.c tcp_output.c tcp_subr.c 
                         tcp_syncache.c udp_usrreq.c 
  Log:
  Switch to using the inpcb MAC label instead of socket MAC label when
  labeling new mbufs created from sockets/inpcbs in IPv4.  This helps avoid
  the need for socket layer locking in the lower level network paths
  where inpcb locks are already frequently held where needed.  In
  particular:
  
  - Use the inpcb for label instead of socket in raw_append().
  - Use the inpcb for label instead of socket in tcp_output().
  - Use the inpcb for label instead of socket in tcp_respond().
  - Use the inpcb for label instead of socket in tcp_twrespond().
  - Use the inpcb for label instead of socket in syncache_respond().
  
  While here, modify tcp_respond() to avoid assigning NULL to a stack
  variable and centralize assertions about the inpcb when inp is
  assigned.
  
  Obtained from:  TrustedBSD Project
  Sponsored by:   DARPA, McAfee Research
  
  Revision  Changes    Path
  1.132     +3 -1      src/sys/netinet/raw_ip.c
  1.91      +1 -1      src/sys/netinet/tcp_output.c
  1.189     +7 -2      src/sys/netinet/tcp_subr.c
  1.57      +1 -1      src/sys/netinet/tcp_syncache.c
  1.153     +1 -1      src/sys/netinet/udp_usrreq.c


More information about the cvs-src mailing list