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 /dhcp6relay.c | |
parent | 158974c70111ea132a13a832954e196faba22653 (diff) |
sync with the latest KAME
* corrected the condition for detecting unwanted incoming messages
* missing initialization in dhcp6c
Diffstat (limited to 'dhcp6relay.c')
-rw-r--r-- | dhcp6relay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcp6relay.c b/dhcp6relay.c index f5055a1..98bc5d2 100644 --- a/dhcp6relay.c +++ b/dhcp6relay.c @@ -1,4 +1,4 @@ -/* $KAME: dhcp6relay.c,v 1.60 2005/10/16 16:17:18 suz Exp $ */ +/* $KAME: dhcp6relay.c,v 1.62 2006/01/19 04:25:16 jinmei Exp $ */ /* * Copyright (C) 2000 WIDE Project. * All rights reserved. @@ -180,7 +180,7 @@ main(argc, argv) if (argc != 1) { fprintf(stderr, "you should explicitly specify a " "relaying interface, when you are to " - "listen to multiple interfaces"); + "listen on multiple interfaces"); exit(0); } relaydevice = argv[0]; @@ -577,7 +577,7 @@ relay6_recv(s, fromclient) * interface, when a DHCPv6 server is running on that interface. * This check prevents such reception. */ - if (ifd == NULL || pi->ipi6_ifindex != relayifid) + if (ifd == NULL && pi->ipi6_ifindex != relayifid) return; if (if_indextoname(pi->ipi6_ifindex, ifname) == NULL) { dprintf(LOG_WARNING, FNAME, |