Date: Fri, 4 Nov 2005 13:50:38 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netgraph ng_fec.c Message-ID: <200511041350.jA4DocpK005449@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511041350.jA4DocpK005449>