Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dhcp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
dhcp
Commits
7d452841
Commit
7d452841
authored
Oct 03, 2000
by
Ted Lemon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly parse unknown-ddd hardware types.
parent
8c63dd89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
common/parse.c
common/parse.c
+10
-4
No files found.
common/parse.c
View file @
7d452841
...
...
@@ -43,7 +43,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: parse.c,v 1.8
6 2000/09/27 19:13:5
7 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: parse.c,v 1.8
7 2000/10/03 19:33:3
7 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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment