Commit eb968146 authored by Ted Lemon's avatar Ted Lemon
Browse files

Fix some typos. Don't call the token ring decoder for FDDI.

parent 201601d5
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: packet.c,v 1.33 2000/03/24 00:22:41 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; "$Id: packet.c,v 1.34 2000/04/14 16:22:04 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
...@@ -125,7 +125,7 @@ void assemble_hw_header (interface, buf, bufix, to) ...@@ -125,7 +125,7 @@ void assemble_hw_header (interface, buf, bufix, to)
else else
#endif #endif
#if defined (DEC_FDDI) #if defined (DEC_FDDI)
if (interface -> hw_address.hbuf [i] == HTYPE_FDDI) if (interface -> hw_address.hbuf [0] == HTYPE_FDDI)
assemble_fddi_header (interface, buf, bufix, to); assemble_fddi_header (interface, buf, bufix, to);
else else
#endif #endif
...@@ -210,8 +210,8 @@ ssize_t decode_hw_header (interface, buf, bufix, from) ...@@ -210,8 +210,8 @@ ssize_t decode_hw_header (interface, buf, bufix, from)
else else
#endif #endif
#if defined (DEC_FDDI) #if defined (DEC_FDDI)
if (interface -> hw_address.hbuf [i] == HTYPE_FDDI) if (interface -> hw_address.hbuf [0] == HTYPE_FDDI)
return decode_tr_header (interface, buf, bufix, from); return decode_fddi_header (interface, buf, bufix, from);
else else
#endif #endif
return decode_ethernet_header (interface, buf, bufix, from); return decode_ethernet_header (interface, buf, bufix, from);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment