]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Correctly parse unknown-ddd hardware types.
authorTed Lemon <source@isc.org>
Tue, 3 Oct 2000 19:33:37 +0000 (19:33 +0000)
committerTed Lemon <source@isc.org>
Tue, 3 Oct 2000 19:33:37 +0000 (19:33 +0000)
common/parse.c

index 88c555a0a6a8ac5f532596e1dd5e24ff9fab4da5..873b49c4a77cc12e2c9cb4cceab882ebdf8fe1cd 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: parse.c,v 1.86 2000/09/27 19:13:57 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: parse.c,v 1.87 2000/10/03 19:33:37 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -303,9 +303,15 @@ void parse_hardware_param (cfile, hardware)
                hardware -> hbuf [0] = HTYPE_FDDI;
                break;
              default:
-               parse_warn (cfile, "expecting a network hardware type");
-               skip_to_semi (cfile);
-               return;
+               if (!strncmp (val, "unknown-", 8)) {
+                       hardware -> hbuf [i] = atoi (&val [8]);
+               } else {
+                       parse_warn (cfile,
+                                   "expecting a network hardware type");
+                       skip_to_semi (cfile);
+
+                       return;
+               }
        }
 
        /* Parse the hardware address information.   Technically,