From: Ted Lemon Date: Fri, 14 Apr 2000 16:22:04 +0000 (+0000) Subject: Fix some typos. Don't call the token ring decoder for FDDI. X-Git-Tag: V3-BETA-2-PATCH-1~246 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb968146c2eaddcc20e72105134571419b2d6e0f;p=thirdparty%2Fdhcp.git Fix some typos. Don't call the token ring decoder for FDDI. --- diff --git a/common/packet.c b/common/packet.c index 3070b8414..5099c112d 100644 --- a/common/packet.c +++ b/common/packet.c @@ -42,7 +42,7 @@ #ifndef lint 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 */ #include "dhcpd.h" @@ -125,7 +125,7 @@ void assemble_hw_header (interface, buf, bufix, to) else #endif #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); else #endif @@ -210,8 +210,8 @@ ssize_t decode_hw_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); + if (interface -> hw_address.hbuf [0] == HTYPE_FDDI) + return decode_fddi_header (interface, buf, bufix, from); else #endif return decode_ethernet_header (interface, buf, bufix, from);