mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 22:05:23 +00:00
Fix compile errors when building with DEBUG_PACKET.
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char ocopyright[] =
|
static char ocopyright[] =
|
||||||
"$Id: dhclient.c,v 1.127 2001/04/05 22:37:35 mellon Exp $ Copyright (c) 1995-2001 Internet Software Consortium. All rights reserved.\n";
|
"$Id: dhclient.c,v 1.128 2001/04/09 00:34:06 mellon Exp $ Copyright (c) 1995-2001 Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -1805,7 +1805,6 @@ void make_discover (client, lease)
|
|||||||
struct client_state *client;
|
struct client_state *client;
|
||||||
struct client_lease *lease;
|
struct client_lease *lease;
|
||||||
{
|
{
|
||||||
struct dhcp_packet *raw;
|
|
||||||
unsigned char discover = DHCPDISCOVER;
|
unsigned char discover = DHCPDISCOVER;
|
||||||
int i;
|
int i;
|
||||||
struct option_state *options = (struct option_state *)0;
|
struct option_state *options = (struct option_state *)0;
|
||||||
@@ -1853,9 +1852,7 @@ void make_discover (client, lease)
|
|||||||
(unsigned)(client -> interface -> hw_address.hlen - 1));
|
(unsigned)(client -> interface -> hw_address.hlen - 1));
|
||||||
|
|
||||||
#ifdef DEBUG_PACKET
|
#ifdef DEBUG_PACKET
|
||||||
dump_packet (sendpkt);
|
dump_raw ((unsigned char *)&client -> packet, client -> packet_length);
|
||||||
dump_raw ((unsigned char *)client -> packet,
|
|
||||||
sendpkt->packet_length);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1937,8 +1934,7 @@ void make_request (client, lease)
|
|||||||
(unsigned)(client -> interface -> hw_address.hlen - 1));
|
(unsigned)(client -> interface -> hw_address.hlen - 1));
|
||||||
|
|
||||||
#ifdef DEBUG_PACKET
|
#ifdef DEBUG_PACKET
|
||||||
dump_packet (sendpkt);
|
dump_raw ((unsigned char *)&client -> packet, client -> packet_length);
|
||||||
dump_raw ((unsigned char *)client -> packet, sendpkt->packet_length);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1993,8 +1989,7 @@ void make_decline (client, lease)
|
|||||||
client -> interface -> hw_address.hlen);
|
client -> interface -> hw_address.hlen);
|
||||||
|
|
||||||
#ifdef DEBUG_PACKET
|
#ifdef DEBUG_PACKET
|
||||||
dump_packet (sendpkt);
|
dump_raw ((unsigned char *)&client -> packet, client -> packet_length);
|
||||||
dump_raw ((unsigned char *)client -> packet, sendpkt->packet_length);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2046,9 +2041,7 @@ void make_release (client, lease)
|
|||||||
client -> interface -> hw_address.hlen);
|
client -> interface -> hw_address.hlen);
|
||||||
|
|
||||||
#ifdef DEBUG_PACKET
|
#ifdef DEBUG_PACKET
|
||||||
dump_packet (sendpkt);
|
dump_raw ((unsigned char *)&client -> packet, client -> packet_length);
|
||||||
dump_raw ((unsigned char *)client -> packet,
|
|
||||||
client -> packet_length);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user