I dont think it is a special case. Many 1000M NIC/drivers support ethtool yet not support mii. These NIC/drivers will all have this problem.
A cleaner solution is to use ETHTOOL_GLINK to get the link status of the interface first. If the link is off, we just returns some default value. If the link is on, call ETHTOOL_GSET to get the speed. calling ETHTOOL_GSET without ETHTOOL_GLINK is wrong. 2007/7/17, Robert Story <[EMAIL PROTECTED]>: > On Fri, 13 Jul 2007 10:00:08 +0200 Thomas wrote: > TA> Yadong Wu wrote: > TA> > I have a quick fix for this. > TA> > TA> Can you please submit the patch to http://www.net-snmp.org/patches so it > TA> won't get lost? > > That's not a fix, it's ripping out code for a platform's special case. > > What's really needed is a configure test for the ioctl in question, and > ifdefs. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Net-snmp-coders mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
