]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't use statmsg socket or handle network location notification in 2.0
authorTed Lemon <source@isc.org>
Sat, 6 Dec 1997 11:24:31 +0000 (11:24 +0000)
committerTed Lemon <source@isc.org>
Sat, 6 Dec 1997 11:24:31 +0000 (11:24 +0000)
client/dhclient.c

index c303688816a0c1cd4cf20fdd3aa0f8e7373da650..eb4d268f97681e0cb447785338d18bba83e23081 100644 (file)
@@ -56,7 +56,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhclient.c,v 1.44 1997/12/06 04:02:35 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhclient.c,v 1.44.2.1 1997/12/06 11:24:31 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -231,9 +231,6 @@ int main (argc, argv, envp)
        /* Set up the bootp packet handler... */
        bootp_packet_handler = do_packet;
 
-       /* Start listening on the sysconf socket... */
-       sysconf_startup (status_message);
-
        /* Start dispatching packets and timeouts... */
        dispatch ();
 
@@ -2053,46 +2050,3 @@ void write_client_pid_file ()
                fclose (pf);
        }
 }
-
-void status_message (header, data)
-       struct sysconf_header *header;
-       void *data;
-{
-       switch (header -> type) {
-             case NETWORK_LOCATION_CHANGED:
-               client_location_changed ();
-               break;
-
-             default:
-               break;
-       }
-}
-
-void client_location_changed ()
-{
-       struct interface_info *ip;
-
-       for (ip = interfaces; ip; ip = ip -> next) {
-               switch (ip -> client -> state) {
-                     case S_SELECTING:
-                       cancel_timeout (send_discover, ip);
-                       break;
-
-                     case S_BOUND:
-                       cancel_timeout (state_bound, ip);
-                       break;
-
-                     case S_REBOOTING:
-                     case S_REQUESTING:
-                     case S_RENEWING:
-                       cancel_timeout (send_request, ip);
-                       break;
-
-                     case S_INIT:
-                     case S_REBINDING:
-                       break;
-               }
-               ip -> client -> state = S_INIT;
-               state_reboot (ip);
-       }
-}