cvs commit: src/sys/net bridgestp.c if_bridge.c if_bridgevar.h

Andrew Thompson thompsa at FreeBSD.org
Wed Jul 6 01:24:46 GMT 2005


thompsa     2005-07-06 01:24:45 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bridgestp.c if_bridge.c if_bridgevar.h 
  Log:
  - Previously when broadcasting to N number of interfaces we would run pfil
    hooks for each outgoing interface but also run pfil hooks _N times_ on the
    bridge interface. This is changed so pfil hooks are run once for the bridge
    interface (bridge0) and then only on the outgoing interfaces in the broadcast
    loop.
  
  - Simplify bridge_enqueue() by moving bridge_pfil() to the callers.
  
  - Check (inet6_pfil_hook.ph_busy_count >= 0), it may be possible to have a
    packet filter hooked for only ipv6 but we were only checking if ipv4 hooks
    were busy.
  
  - Minor optimisation for null mbuf check after bridge_pfil(), move it into the
    if-block as it couldnt possibly be null outside.
  
  Prodded by:     mlaier
  Approved by:    re (scottl), mlaier (mentor)
  
  Revision  Changes    Path
  1.3       +2 -2      src/sys/net/bridgestp.c
  1.11      +86 -28    src/sys/net/if_bridge.c
  1.4       +1 -2      src/sys/net/if_bridgevar.h


More information about the cvs-all mailing list