cvs commit: src/sys/netnatm natm.c

Robert Watson rwatson at FreeBSD.org
Fri Mar 17 18:25:58 UTC 2006


rwatson     2006-03-17 18:25:57 UTC

  FreeBSD src repository

  Modified files:
    sys/netnatm          natm.c 
  Log:
  Change so_pcb invariants in netnatm, such that netnatm sockets always have
  pcb's allocated:
  
  - Universally ensure (and assert) that so_pcb is not NULL, removing lots
    of checks and error cases.  Don't free the pcb without clearing the
    so_pcb pointer.
  
  - Don't try to free the socket in pru_detach(), since the caller will
    immediately free the socket.
  
  - Do retain the sotryfree() in pru_abort() for now, although eventually
    the caller will do it unconditionally.
  
  Revision  Changes    Path
  1.41      +13 -49    src/sys/netnatm/natm.c


More information about the cvs-src mailing list