Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
dhcp
Commits
7e2f5636
Commit
7e2f5636
authored
Mar 24, 2000
by
Ted Lemon
Browse files
Add support for DEC-specific FDDI interfaces.
parent
a770670e
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/packet.c
View file @
7e2f5636
...
...
@@ -42,7 +42,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: packet.c,v 1.3
2
2000/03/
17 03:59:0
1 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: packet.c,v 1.3
3
2000/03/
24 00:22:4
1 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include
"dhcpd.h"
...
...
@@ -123,6 +123,11 @@ void assemble_hw_header (interface, buf, bufix, to)
if
(
interface
->
hw_address
.
hbuf
[
0
]
==
HTYPE_IEEE802
)
assemble_tr_header
(
interface
,
buf
,
bufix
,
to
);
else
#endif
#if defined (DEC_FDDI)
if
(
interface
->
hw_address
.
hbuf
[
i
]
==
HTYPE_FDDI
)
assemble_fddi_header
(
interface
,
buf
,
bufix
,
to
);
else
#endif
assemble_ethernet_header
(
interface
,
buf
,
bufix
,
to
);
...
...
@@ -203,6 +208,11 @@ ssize_t decode_hw_header (interface, buf, bufix, from)
if
(
interface
->
hw_address
.
hbuf
[
0
]
==
HTYPE_IEEE802
)
return
decode_tr_header
(
interface
,
buf
,
bufix
,
from
);
else
#endif
#if defined (DEC_FDDI)
if
(
interface
->
hw_address
.
hbuf
[
i
]
==
HTYPE_FDDI
)
return
decode_tr_header
(
interface
,
buf
,
bufix
,
from
);
else
#endif
return
decode_ethernet_header
(
interface
,
buf
,
bufix
,
from
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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