diff options
author | SUZUKI, Shinsuke <suz@kame.net> | 2006-01-19 04:58:42 +0000 |
---|---|---|
committer | SUZUKI, Shinsuke <suz@kame.net> | 2006-01-19 04:58:42 +0000 |
commit | e137e82e0a14b4b60f165b2621a25fbc8c040c2c (patch) | |
tree | eeb8bb0b780f3ea206f00a74e2e27daa5b9ec1a6 /dhcp6c.c | |
parent | 158974c70111ea132a13a832954e196faba22653 (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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |