cvs commit: src/sbin/ifconfig ifvlan.c

From: Yar Tikhiy <yar_at_FreeBSD.org>
Date: Sat, 28 Jan 2006 16:38:28 +0000 (UTC)
yar         2006-01-28 16:38:28 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sbin/ifconfig        ifvlan.c 
  Log:
  Temporarily back out the last change, rev. 1.7.2.2.
  
  The problem with it was that it swapped the relative order of IP
  assignment and parent interface attachment.  The present if_vlan
  code gets certain flags from the parent, including those meaningful
  to the upper layers.  E.g., IP assignment to an interface with
  IFF_BROADCAST goes somewhat differently from that to a non-broadcast
  interface.  Consequently, assigning IP before attaching the parent
  results in a bogus or missing broadcast address on the vlan interface.
  This bug is still here, but at least it won't be triggered by doing
  both vlanX configuration steps, IP and vlan+vlandev, in a single
  ifconfig invocation, which is usual to setting up vlans via rc.conf.
  
  Work at the global issue is under way.
  
  Revision  Changes    Path
  1.7.2.3   +45 -36    src/sbin/ifconfig/ifvlan.c
Received on Sat Jan 28 2006 - 16:38:28 UTC