From: Ted Lemon Date: Sat, 29 Mar 1997 03:18:28 +0000 (+0000) Subject: Compile checksum code whether or not we're doing a low-level packet driver X-Git-Tag: DHCP-970328~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=714ef4f5d23a28596b2613cb392062a1dbea1c61;p=thirdparty%2Fdhcp.git Compile checksum code whether or not we're doing a low-level packet driver --- diff --git a/common/packet.c b/common/packet.c index 3710a93da..c69cf4575 100644 --- a/common/packet.c +++ b/common/packet.c @@ -42,15 +42,16 @@ #ifndef lint static char copyright[] = -"$Id: packet.c,v 1.15 1997/03/06 18:27:55 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: packet.c,v 1.16 1997/03/29 03:18:28 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" + #if defined (PACKET_ASSEMBLY) || defined (PACKET_DECODING) -#include #include "includes/netinet/ip.h" #include "includes/netinet/udp.h" #include "includes/netinet/if_ether.h" +#endif /* PACKET_ASSEMBLY || PACKET_DECODING */ /* Compute the easy part of the checksum on a range of bytes. */ @@ -115,7 +116,6 @@ u_int32_t wrapsum (sum) #endif return htons(sum); } -#endif /* PACKET_ASSEMBLY || PACKET_DECODING */ #ifdef PACKET_ASSEMBLY /* Assemble an hardware header... */