]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Change cons_option calling convention. Declare dhcp_max_agent_option_packet_length.
authorTed Lemon <source@isc.org>
Fri, 6 Feb 1998 00:58:36 +0000 (00:58 +0000)
committerTed Lemon <source@isc.org>
Fri, 6 Feb 1998 00:58:36 +0000 (00:58 +0000)
client/dhclient.c

index 134881052019de5f54693b275935efe92781cdd7..363b4303fe110de3d56908d3725e8a4c1430ea22 100644 (file)
@@ -56,7 +56,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhclient.c,v 1.45 1997/12/09 20:29:00 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhclient.c,v 1.46 1998/02/06 00:58:36 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -70,6 +70,8 @@ char *path_dhclient_conf = _PATH_DHCLIENT_CONF;
 char *path_dhclient_db = _PATH_DHCLIENT_DB;
 char *path_dhclient_pid = _PATH_DHCLIENT_PID;
 
+int dhcp_max_agent_option_packet_length = 0;
+
 int interfaces_requested = 0;
 
 int log_perror = 1;
@@ -1358,8 +1360,8 @@ void make_discover (ip, lease)
 
        /* Set up the option buffer... */
        ip -> client -> packet_length =
-               cons_options ((struct packet *)0, &ip -> client -> packet,
-                             options, 0, 0, 0);
+               cons_options ((struct packet *)0, &ip -> client -> packet, 0,
+                             options, (struct agent_options *)0, 0, 0, 0);
        if (ip -> client -> packet_length < BOOTP_MIN_LEN)
                ip -> client -> packet_length = BOOTP_MIN_LEN;
 
@@ -1465,8 +1467,8 @@ void make_request (ip, lease)
 
        /* Set up the option buffer... */
        ip -> client -> packet_length =
-               cons_options ((struct packet *)0, &ip -> client -> packet,
-                             options, 0, 0, 0);
+               cons_options ((struct packet *)0, &ip -> client -> packet, 0,
+                             options, (struct agent_options *)0, 0, 0, 0);
        if (ip -> client -> packet_length < BOOTP_MIN_LEN)
                ip -> client -> packet_length = BOOTP_MIN_LEN;
 
@@ -1564,8 +1566,8 @@ void make_decline (ip, lease)
 
        /* Set up the option buffer... */
        ip -> client -> packet_length =
-               cons_options ((struct packet *)0, &ip -> client -> packet,
-                             options, 0, 0, 0);
+               cons_options ((struct packet *)0, &ip -> client -> packet, 0,
+                             options, (struct agent_options *)0, 0, 0, 0);
        if (ip -> client -> packet_length < BOOTP_MIN_LEN)
                ip -> client -> packet_length = BOOTP_MIN_LEN;
 
@@ -1630,8 +1632,8 @@ void make_release (ip, lease)
 
        /* Set up the option buffer... */
        ip -> client -> packet_length =
-               cons_options ((struct packet *)0, &ip -> client -> packet,
-                             options, 0, 0, 0);
+               cons_options ((struct packet *)0, &ip -> client -> packet, 0,
+                             options, (struct agent_options *)0, 0, 0, 0);
        if (ip -> client -> packet_length < BOOTP_MIN_LEN)
                ip -> client -> packet_length = BOOTP_MIN_LEN;