Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Dnsmasq
Commits
99e8891f
Commit
99e8891f
authored
Nov 26, 2013
by
Vladislav Grishenko
Committed by
Simon Kelley
Nov 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warning.
parent
532066ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/rfc2131.c
src/rfc2131.c
+7
-3
No files found.
src/rfc2131.c
View file @
99e8891f
...
...
@@ -92,7 +92,10 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
struct
dhcp_netid
known_id
,
iface_id
,
cpewan_id
;
struct
dhcp_opt
*
o
;
unsigned
char
pxe_uuid
[
17
];
unsigned
char
*
oui
=
NULL
,
*
serial
=
NULL
,
*
class
=
NULL
;
unsigned
char
*
oui
=
NULL
,
*
serial
=
NULL
;
#ifdef HAVE_SCRIPT
unsigned
char
*
class
=
NULL
;
#endif
subnet_addr
.
s_addr
=
override
.
s_addr
=
0
;
...
...
@@ -156,8 +159,9 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
unsigned
char
*
y
=
option_ptr
(
opt
,
offset
+
elen
+
5
);
oui
=
option_find1
(
x
,
y
,
1
,
1
);
serial
=
option_find1
(
x
,
y
,
2
,
1
);
class
=
option_find1
(
x
,
y
,
3
,
1
);
#ifdef HAVE_SCRIPT
class
=
option_find1
(
x
,
y
,
3
,
1
);
#endif
/* If TR069-id is present set the tag "cpewan-id" to facilitate echoing
the gateway id back. Note that the device class is optional */
if
(
oui
&&
serial
)
...
...
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