mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 13:57:50 +00:00
Pass flag to cons_options indicating that this is a BOOTP packet
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: bootp.c,v 1.27 1997/06/08 04:10:54 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: bootp.c,v 1.28 1997/09/16 18:17:55 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -237,7 +237,7 @@ void bootp (packet)
|
|||||||
pack options into the filename and server name buffers. */
|
pack options into the filename and server name buffers. */
|
||||||
|
|
||||||
outgoing.packet_length =
|
outgoing.packet_length =
|
||||||
cons_options (packet, outgoing.raw, options, 0, 0);
|
cons_options (packet, outgoing.raw, options, 0, 0, 1);
|
||||||
if (outgoing.packet_length < BOOTP_MIN_LEN)
|
if (outgoing.packet_length < BOOTP_MIN_LEN)
|
||||||
outgoing.packet_length = BOOTP_MIN_LEN;
|
outgoing.packet_length = BOOTP_MIN_LEN;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user