]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix a byte swap error
authorTed Lemon <source@isc.org>
Fri, 27 Apr 2001 22:23:02 +0000 (22:23 +0000)
committerTed Lemon <source@isc.org>
Fri, 27 Apr 2001 22:23:02 +0000 (22:23 +0000)
common/tr.c

index 196ce2dcb17b8be6dc338ef24fc1bc5f106f3b4d..3352d0a685369bb51e4962ed1174185ee028089d 100644 (file)
@@ -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;