aboutsummaryrefslogtreecommitdiff
path: root/dhcp6c.c
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2006-01-19 04:58:42 +0000
committerSUZUKI, Shinsuke <suz@kame.net>2006-01-19 04:58:42 +0000
commite137e82e0a14b4b60f165b2621a25fbc8c040c2c (patch)
treeeeb8bb0b780f3ea206f00a74e2e27daa5b9ec1a6 /dhcp6c.c
parent158974c70111ea132a13a832954e196faba22653 (diff)
sync with the latest KAME
* corrected the condition for detecting unwanted incoming messages * missing initialization in dhcp6c
Diffstat (limited to 'dhcp6c.c')
-rw-r--r--dhcp6c.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dhcp6c.c b/dhcp6c.c
index c776021..ef98cd1 100644
--- a/dhcp6c.c
+++ b/dhcp6c.c
@@ -1,4 +1,4 @@
-/* $KAME: dhcp6c.c,v 1.163 2005/09/16 11:30:14 suz Exp $ */
+/* $KAME: dhcp6c.c,v 1.164 2006/01/10 02:46:09 jinmei Exp $ */
/*
* Copyright (C) 1998 and 1999 WIDE Project.
* All rights reserved.
@@ -673,6 +673,8 @@ client6_do_ctlcommand(buf, len)
char ifname[IFNAMSIZ];
time_t now;
+ memset(ifname, 0, sizeof(ifname));
+
ctlhead = (struct dhcp6ctl *)buf;
command = ntohs(ctlhead->command);
@@ -809,6 +811,9 @@ client6_ifctl(ifname, command)
return (-1);
}
+ dprintf(LOG_DEBUG, FNAME, "%s interface %s",
+ command == DHCP6CTL_COMMAND_START ? "start" : "stop", ifname);
+
switch(command) {
case DHCP6CTL_COMMAND_START:
free_resources(ifp);