From: Ted Lemon Date: Sat, 6 Dec 1997 04:03:37 +0000 (+0000) Subject: Handle token ring... X-Git-Tag: V2-BETA-1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=161d49ebc8d422975981122fb47a3e4d0b295ee2;p=thirdparty%2Fdhcp.git Handle token ring... --- diff --git a/common/dispatch.c b/common/dispatch.c index c186b9b34..1ee08be10 100644 --- a/common/dispatch.c +++ b/common/dispatch.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: dispatch.c,v 1.46 1997/11/29 07:51:09 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dispatch.c,v 1.47 1997/12/06 04:03:37 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -214,6 +214,16 @@ void discover_interfaces (state) sa.sa_data, 6); break; +#ifndef ARPHRD_IEEE802 +# define ARPHRD_IEEE802 HTYPE_IEEE802 +#endif + case ARPHRD_IEEE802: + tmp -> hw_address.hlen = 6; + tmp -> hw_address.htype = ARPHRD_IEEE802; + memcpy (tmp -> hw_address.haddr, + sa.sa_data, 6); + break; + #ifdef ARPHRD_METRICOM case ARPHRD_METRICOM: tmp -> hw_address.hlen = 6;