[Xorp-cvs] XORP cvs commit: xorp/fea

Pavlin Radoslavov pavlin@icir.org
Sun, 25 Dec 2005 21:58:18 GMT


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2005-12-25 21:58:18 UTC

XORP CVS repository


Modified files:
	fea           ifconfig_media.cc 

Log message:
	* Add a hack defining missing (kernel) types that are used in older
	  versions of <linux/ethtool.h>.
	
	* Add missing creation of the ioctl socket for the ioctl(SIOCETHTOOL)
	  mechanism that was lost during the generation of the final solution.
	
	* Conditionally compile the ioctl(SIOCETHTOOL) mechanism only if
	  SIOCETHTOOL and ETHTOOL_GLINK are defined. Apparently, older ethtool
	  implementations don't have ETHTOOL_GLINK (e.g., Linux RedHat-7.3
	  with kernel 2.4.20).
	
	* Use &ifreq.ifr_addr instead of &ifreq.ifr_data to point to the
	  payload for the ioctl(SIOCGMIIPHY) result. Both fields can be
	  used because they refer to the same union storage.
	  This fixes a compilation error described in Bugzilla entry #448
	
	Bugzilla URL:   http://www.xorp.org/bugzilla/show_bug.cgi?id=448

Revision  Changes                               Path
1.7       +21 -6;  commitid: fcdf43af13ed7ea6;  xorp/fea/ifconfig_media.cc