]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Added associated-ip to priority list, for rt16180.
authorShane Kerr <shane@isc.org>
Tue, 25 Jul 2006 13:36:58 +0000 (13:36 +0000)
committerShane Kerr <shane@isc.org>
Tue, 25 Jul 2006 13:36:58 +0000 (13:36 +0000)
common/options.c

index 304f456b999c3d43eb1c81c8ff33ad9f3c59769d..449775d605e05b4eaaca43eb6a577a531e39a65a 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: options.c,v 1.93 2006/07/25 13:25:59 shane Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
+"$Id: options.c,v 1.94 2006/07/25 13:36:58 shane Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #define DHCP_OPTION_DATA
@@ -570,11 +570,12 @@ int cons_options (inpacket, outpacket, lease, client_state,
         * This effectively gives these options the highest priority.
         */
        priority_len = 0;
-       priority_list [priority_len++] = DHO_DHCP_MESSAGE_TYPE;
-       priority_list [priority_len++] = DHO_DHCP_SERVER_IDENTIFIER;
-       priority_list [priority_len++] = DHO_DHCP_LEASE_TIME;
-       priority_list [priority_len++] = DHO_DHCP_MESSAGE;
-       priority_list [priority_len++] = DHO_DHCP_REQUESTED_ADDRESS;
+       priority_list[priority_len++] = DHO_DHCP_MESSAGE_TYPE;
+       priority_list[priority_len++] = DHO_DHCP_SERVER_IDENTIFIER;
+       priority_list[priority_len++] = DHO_DHCP_LEASE_TIME;
+       priority_list[priority_len++] = DHO_DHCP_MESSAGE;
+       priority_list[priority_len++] = DHO_DHCP_REQUESTED_ADDRESS;
+       priority_list[priority_len++] = DHO_ASSOCIATED_IP;
 
        if (prl && prl -> len > 0) {
                if ((op = lookup_option (&dhcp_universe, cfg_options,