cvs commit: src/sys/netgraph ng_fec.c

Ruslan Ermilov ru at FreeBSD.org
Fri Nov 4 05:50:39 PST 2005


ru          2005-11-04 13:50:38 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_fec.c 
  Log:
  - Fix another fallout from the if_alloc() conversion:
    previously, ifp->if_type was set to IFT_ETHER by
    ether_ifattach(), now it's done by if_alloc() so
    an assignment of if_type to IFT_PROPVIRTUAL after
    if_alloc() but before ether_ifattach() broke it.
    This makes arp(8) and friends happy about the fec
    interfaces, and will allow us to use if_setlladdr()
    on the fec interface.
  
  - Set/reset IFF_DRV_RUNNING/IFF_DRV_OACTIVE in init()
    and stop() methods rather than in ioctl(), like the
    rest of the drivers do.  This fixes a bug when an
    "ifconfig fec0 ipv4_address" would not have made
    the interface running, didn't launch the ticker
    function to track media status of bundled ports,
    etc.
  
  Revision  Changes    Path
  1.22      +6 -6      src/sys/netgraph/ng_fec.c


More information about the cvs-src mailing list