From: Ted Lemon Date: Fri, 27 Apr 2001 22:23:02 +0000 (+0000) Subject: Fix a byte swap error X-Git-Tag: V3-RC3~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a010c3ffb3b9605542a7ae047d9a6363f5b0ebb9;p=thirdparty%2Fdhcp.git Fix a byte swap error --- diff --git a/common/tr.c b/common/tr.c index 196ce2dcb..3352d0a68 100644 --- a/common/tr.c +++ b/common/tr.c @@ -37,7 +37,7 @@ #ifndef lint static char copyright[] = -"$Id: tr.c,v 1.6 2000/03/17 03:59:02 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: tr.c,v 1.7 2001/04/27 22:23:02 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -187,7 +187,7 @@ ssize_t decode_tr_header (interface, buf, bufix, from) if (llc->dsap != EXTENDED_SAP || ntohs(llc->ethertype) != ETHERTYPE_IP || ip->ip_p != IPPROTO_UDP - || (ip->ip_off & IP_OFFMASK) != 0 + || (ntohs (ip->ip_off) & IP_OFFMASK) != 0 || udp->uh_dport != local_port) return -1;