From: Ted Lemon Date: Fri, 24 Mar 2000 00:22:41 +0000 (+0000) Subject: Add support for DEC-specific FDDI interfaces. X-Git-Tag: V3-BETA-2-PATCH-1~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e2f56365fb03c4e0ec7beefabb3783ead8b1367;p=thirdparty%2Fdhcp.git Add support for DEC-specific FDDI interfaces. --- diff --git a/common/packet.c b/common/packet.c index 40e2bb9be..3070b8414 100644 --- a/common/packet.c +++ b/common/packet.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: packet.c,v 1.32 2000/03/17 03:59:01 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; +"$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"; #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); }