2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-04 16:25:21 +00:00

Correctly parse unknown-ddd hardware types.

This commit is contained in:
Ted Lemon
2000-10-03 19:33:37 +00:00
parent 8c63dd893f
commit 7d452841d1

View File

@@ -43,7 +43,7 @@
#ifndef lint #ifndef lint
static char copyright[] = 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 */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -303,9 +303,15 @@ void parse_hardware_param (cfile, hardware)
hardware -> hbuf [0] = HTYPE_FDDI; hardware -> hbuf [0] = HTYPE_FDDI;
break; break;
default: default:
parse_warn (cfile, "expecting a network hardware type"); if (!strncmp (val, "unknown-", 8)) {
skip_to_semi (cfile); hardware -> hbuf [i] = atoi (&val [8]);
return; } else {
parse_warn (cfile,
"expecting a network hardware type");
skip_to_semi (cfile);
return;
}
} }
/* Parse the hardware address information. Technically, /* Parse the hardware address information. Technically,