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
71
Issues
71
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
218eee75
Commit
218eee75
authored
Jan 25, 2000
by
Ted Lemon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixups for haddr/htype->hbuf
parent
4cbc378f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
common/upf.c
common/upf.c
+10
-10
No files found.
common/upf.c
View file @
218eee75
...
...
@@ -22,7 +22,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: upf.c,v 1.1
4 1999/10/07 06:47:49
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: upf.c,v 1.1
5 2000/01/25 01:17:01
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -103,9 +103,9 @@ int if_register_upf (info)
log_fatal
(
"Invalid hardware address length on %s: %d"
,
info
->
name
,
param
.
end_addr_len
);
info
->
hw_address
.
hlen
=
6
;
info
->
hw_address
.
h
type
=
ARPHRD_ETHER
;
memcpy
(
&
info
->
hw_address
.
h
addr
[
0
],
param
.
end_addr
,
6
);
info
->
hw_address
.
hlen
=
7
;
info
->
hw_address
.
h
buf
[
0
]
=
ARPHRD_ETHER
;
memcpy
(
&
info
->
hw_address
.
h
buf
[
1
],
param
.
end_addr
,
6
);
return
sock
;
}
...
...
@@ -125,9 +125,9 @@ void if_register_send (info)
if
(
!
quiet_interface_discovery
)
log_info
(
"Sending on UPF/%s/%s%s%s"
,
info
->
name
,
print_hw_addr
(
info
->
hw_address
.
h
type
,
info
->
hw_address
.
hlen
,
info
->
hw_address
.
haddr
),
print_hw_addr
(
info
->
hw_address
.
h
buf
[
0
]
,
info
->
hw_address
.
hlen
-
1
,
&
info
->
hw_address
.
hbuf
[
1
]
),
(
info
->
shared_network
?
"/"
:
""
),
(
info
->
shared_network
?
info
->
shared_network
->
name
:
""
));
...
...
@@ -191,9 +191,9 @@ void if_register_receive (info)
if
(
!
quiet_interface_discovery
)
log_info
(
"Listening on UPF/%s/%s%s%s"
,
info
->
name
,
print_hw_addr
(
info
->
hw_address
.
h
type
,
info
->
hw_address
.
hlen
,
info
->
hw_address
.
haddr
),
print_hw_addr
(
info
->
hw_address
.
h
buf
[
0
]
,
info
->
hw_address
.
hlen
-
1
,
&
info
->
hw_address
.
hbuf
[
1
]
),
(
info
->
shared_network
?
"/"
:
""
),
(
info
->
shared_network
?
info
->
shared_network
->
name
:
""
));
...
...
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