cvs commit: src/sys/netinet in_pcb.c in_pcb.h src/sys/netinet6 in6_pcb.c in6_pcb.h

Robert Watson rwatson at FreeBSD.org
Sat Apr 1 16:04:42 UTC 2006


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


More information about the cvs-src mailing list