Bug 2061

Summary: DHCP will not work with token ring cards
Product: [Retired] Red Hat Linux Reporter: martin
Component: dhcpcdAssignee: Erik Troan <ewt>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: martin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-06-02 11:16:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description martin 1999-04-08 16:30:01 UTC
DHCP reports "Not an Ethernet device" for Token Ring Cards

The following patch fixes it:

--- dhcpcd-0.65/if.c	Thu May  8 04:36:49 1997
+++ dhcpcd-0.65.new/if.c	Thu Apr  8 16:45:29 1999\
@@ -72,8 +72,9 @@
 	if ( ioctl(s, SIOCGIFHWADDR, &ifr) < 0 ) {
 		logSysExit("ioctl SIOCGIFHWADDR\
(ifConfig)");
 	}
-	if ( ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER ) {
-		logQuit("ifInit: interface %s is not\
Ethernet\n", ifr.ifr_name);
+	if ( ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER
+	&&   ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE802) {
+		logQuit("ifInit: interface %s is not a\
valid interface\n", ifr.ifr_name);
 	}
 	/* save hardware address of the interface
 	 */

Comment 1 David Lawrence 1999-04-08 17:01:59 UTC
We do not currently have a token ring network to verify this problem
on. We are hoping to set one up in the near future. I am passing this
on to a developer for further review.

Comment 2 Jeff Johnson 1999-06-02 11:03:59 UTC
*** Bug 3175 has been marked as a duplicate of this bug. ***

dhcpcd requires a patch to work with TokenRing.

I have submitted the patch under this bug id.

------- Additional Comments From dkl  06/01/99 17:17 -------
Please send the patch again. It didnt seem to make it into the system
properly. For the proper way to do this refer to
http://developer.redhat.com/bugzilla/redhat-faq.phtml#howdoipatch

Thanx

Comment 3 Jeff Johnson 1999-06-02 11:16:59 UTC
Fixed (by applying similar patch) in dhcpcd-1.3.17pl5-2. Thanks for
the patch.