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
a770670e
Commit
a770670e
authored
Mar 24, 2000
by
Ted Lemon
Browse files
Get rid of cobwebs.
parent
95e58554
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/ethernet.c
View file @
a770670e
/*
pack
et.c
/*
ethern
et.c
Packet assembly code, originally contributed by Archie Cobbs. */
...
...
@@ -43,7 +43,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: ethernet.c,v 1.
5
2000/03/
17 03:59:01
mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: ethernet.c,v 1.
6
2000/03/
24 00:22:20
mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include
"dhcpd.h"
...
...
@@ -54,7 +54,6 @@ static char copyright[] =
#if defined (PACKET_ASSEMBLY)
/* Assemble an hardware header... */
/* XXX currently only supports ethernet; doesn't check for other types. */
void
assemble_ethernet_header
(
interface
,
buf
,
bufix
,
to
)
struct
interface_info
*
interface
;
...
...
@@ -75,11 +74,7 @@ void assemble_ethernet_header (interface, buf, bufix, to)
else
memset
(
eh
.
ether_shost
,
0x00
,
sizeof
(
eh
.
ether_shost
));
#ifdef BROKEN_FREEBSD_BPF
/* Fixed in FreeBSD 2.2 */
eh
.
ether_type
=
ETHERTYPE_IP
;
#else
eh
.
ether_type
=
htons
(
ETHERTYPE_IP
);
#endif
memcpy
(
&
buf
[
*
bufix
],
&
eh
,
ETHER_HEADER_SIZE
);
*
bufix
+=
ETHER_HEADER_SIZE
;
...
...
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