From: Ted Lemon Date: Tue, 22 Dec 1998 22:42:23 +0000 (+0000) Subject: Add support for FDDI hardware type. Fix bug in the SAP initialization. X-Git-Tag: V2-BETA-1-PATCH-7~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0227f48c25494ecbf7c5a7d1112fd878ed8f2d64;p=thirdparty%2Fdhcp.git Add support for FDDI hardware type. Fix bug in the SAP initialization. --- diff --git a/common/dlpi.c b/common/dlpi.c index 1158d1f57..bf75c4383 100644 --- a/common/dlpi.c +++ b/common/dlpi.c @@ -222,6 +222,9 @@ int if_register_dlpi (info) case DL_ETHER: info -> hw_address.htype = HTYPE_ETHER; break; + case DL_FDDI: + info -> hw_address.htype = HTYPE_FDDI; + break; default: error ("%s: unknown DLPI MAC type %d", info -> name, @@ -482,8 +485,8 @@ ssize_t send_packet (interface, packet, raw, len, from, to, hto) rslt = write (interface -> wfdesc, dbuf, dbuflen); #else /* XXX: Assumes ethernet, with two byte SAP */ - sap [0] = 0; /* ETHERTYPE_IP, high byte */ - sap [1] = 0x80; /* ETHERTYPE_IP, low byte */ + sap [0] = 0x08; /* ETHERTYPE_IP, high byte */ + sap [1] = 0x0; /* ETHERTYPE_IP, low byte */ saplen = -2; /* -2 indicates a two byte SAP at the end of the address */