cvs commit: src/sys/netinet ip_encap.c

Robert Watson rwatson at FreeBSD.org
Tue Mar 9 18:48:51 PST 2004


rwatson     2004/03/09 18:48:50 PST

  FreeBSD src repository

  Modified files:
    sys/netinet          ip_encap.c 
  Log:
  Lock down IP-layer encapsulation library:
  
   - Add encapmtx to protect ip_encap.c global variables (encapsulation
     list).
   - Unifdef #ifdef 0 pieces of encap_init() which was (and now really
     is) basically a no-op.
   - Lock encapmtx when walking encaptab, modifying it, comparing
     entries, etc.
   - Remove spl's.
  
  Note that currently there's no facilite to make sure outstanding
  use of encapsulation methods on a table entry have drained bfore
  we allow a table entry to be removed.  As such, it's currently the
  caller's responsibility to make sure that draining takes place.
  
  Reviewed by:    mlaier
  
  Revision  Changes    Path
  1.19      +35 -51    src/sys/netinet/ip_encap.c


More information about the cvs-all mailing list