]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Handle token ring...
authorTed Lemon <source@isc.org>
Sat, 6 Dec 1997 04:03:37 +0000 (04:03 +0000)
committerTed Lemon <source@isc.org>
Sat, 6 Dec 1997 04:03:37 +0000 (04:03 +0000)
common/dispatch.c

index c186b9b34efc5305ca91abd844ba0ca8532d3890..1ee08be1087be3a22f2bb06e07290f824d927aad 100644 (file)
@@ -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;