Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Aug 2005 04:42:04 +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/net if.c
Message-ID:  <200508240442.j7O4g4jf002464@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2005-08-24 04:42:04 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/net              if.c 
  Log:
  Merge if.c:1.239, if_var.h:1.101 from HEAD to RELENG_6:
  
    Protect link layer network interface multicast address list manipulation
    using ifp->if_addr_mtx:
  
    - Initialize if_addr_mtx when ifnet is initialized.
  
    - Destroy if_addr_mtx when ifnet is torn down.
  
    - Rename ifmaof_ifpforaddr() to if_findmulti(); assert if_addr_mtx.
      Staticize.
  
    - Extract ifmultiaddr allocation and initialization into if_allocmulti();
      accept a 'mflags' argument to indicate whether or not sleeping is
      permitted.  This centralizes error handling and address duplication.
  
    - Extract ifmultiaddr tear-down and deallocation in if_freemulti().
  
    - Re-structure if_addmulti() to hold if_addr_mtx around manipulation of
      the ifnet multicast address list and reference count manipulation.
      Make use of non-sleeping allocations.  Annotate the fact that we only
      generate routing socket events for explicit address addition, not
      implicit link layer address addition.
  
    - Re-structure if_delmulti() to hold if_addr_mtx around manipulation of
      the ifnet multicast address list and reference count manipulation.
      Annotate the lack of a routing socket event for implicit link layer
      address removal.
  
    - De-spl all and sundry.
  
    Problem reported by:    Ed Maste <emaste at phaedrus dot sandvine dot ca>
  
  Approved by:    re (hrs)
  
  Revision   Changes    Path
  1.234.2.6  +208 -120  src/sys/net/if.c



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