Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Apr 2006 16:04:42 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet in_pcb.c in_pcb.h src/sys/netinet6 in6_pcb.c in6_pcb.h
Message-ID:  <200604011604.k31G4gHx027875@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2006-04-01 16:04:42 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          in_pcb.c in_pcb.h 
    sys/netinet6         in6_pcb.c in6_pcb.h 
  Log:
  Break out in_pcbdetach() into two functions:
  
  - in_pcbdetach(), which removes the link between an inpcb and its
    socket.
  
  - in_pcbfree(), which frees a detached pcb.
  
  Unlike the previous in_pcbdetach(), neither of these functions will
  attempt to conditionally free the socket, as they are responsible only
  for managing in_pcb memory.  Mirror these changes into in6_pcbdetach()
  by breaking it into in6_pcbdetach() and in6_pcbfree().
  
  While here, eliminate undesired checks for NULL inpcb pointers in
  sockets, as we will now have as an invariant that sockets will always
  have valid so_pcb pointers.
  
  MFC after:      3 months
  
  Revision  Changes    Path
  1.170     +21 -18    src/sys/netinet/in_pcb.c
  1.86      +1 -0      src/sys/netinet/in_pcb.h
  1.66      +11 -13    src/sys/netinet6/in6_pcb.c
  1.17      +1 -0      src/sys/netinet6/in6_pcb.h



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