cvs commit: src/sys/netipx ipx_pcb.c ipx_pcb.h ipx_usrreq.c spx_usrreq.c

Robert Watson rwatson at
Thu Jun 8 23:33:25 UTC 2006

rwatson     2006-06-08 23:31:17 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/netipx           ipx_pcb.c ipx_pcb.h ipx_usrreq.c 
  Merge ipx_pcb.c:1.45, ipx_pcb.h:1.25, ipx_usrreq.c:1.53, spx_usrreq.c:1.76
  from HEAD to RELENG_6:
    Rework IPX/SPX socket and pcb reference model:
    - Introduce invariant that all IPX/SPX sockets will have valid so_pcb
      pointers to ipxpcb structures, and that for SPX, the control block
      pointer will always be valid.  Don't attempt to free the socket or
      pcb at various odd points, such as disconnect.
    - Add a new ipxpcb flag, IPXP_DROPPED, which will be set in place of
      freeing PCB's so that this invariant can be maintained.  This flag
      is now checked instead of a NULL check in various socket protocol
    - Introduce many assertions that this invariant holds.
    - Various pieces of code, such as the SPX timer code, no longer needs
      to jump through hoops in case it frees a PCB while running.
    - Break out ipx_pcbfree() from ipx_pcbdetach().  Likewise
    - Comment on some SMP-related limitations to the SPX code.
    - Update copyrights.
  Revision   Changes    Path   +13 -5     src/sys/netipx/ipx_pcb.c   +11 -8     src/sys/netipx/ipx_pcb.h   +22 -11    src/sys/netipx/ipx_usrreq.c  +100 -68   src/sys/netipx/spx_usrreq.c

More information about the cvs-src mailing list