networkd-dhcp6.c revision 85bd849f09aceb7f972a0697494ea22b2247a5d7
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright (C) 2014 Intel Corporation. All rights reserved.
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "networkd-link.h"
#include "network-internal.h"
#include "sd-icmp6-nd.h"
#include "sd-dhcp6-client.h"
return;
switch(event) {
case DHCP6_EVENT_STOP:
case DHCP6_EVENT_RETRANS_MAX:
case DHCP6_EVENT_IP_ACQUIRE:
break;
default:
if (event < 0)
else
event);
return;
}
}
int r;
bool information_request;
if (link->dhcp6_client) {
return 0;
if (r < 0) {
link->dhcp6_client =
return r;
}
if (!information_request)
return r;
false);
if (r < 0) {
link->dhcp6_client =
return r;
}
if (r < 0) {
link->dhcp6_client =
return r;
}
return r;
}
if (r < 0)
return r;
if (r < 0) {
return r;
}
if (r < 0) {
return r;
}
if (r < 0) {
return r;
}
link);
if (r < 0) {
return r;
}
if (event == ICMP6_EVENT_ROUTER_ADVERTISMENT_OTHER) {
true);
if (r < 0) {
link->dhcp6_client =
return r;
}
}
if (r < 0)
return r;
}
return;
switch(event) {
return;
break;
default:
if (event < 0)
else
event);
return;
}
}
int r;
if (r < 0)
return r;
if (r < 0)
return r;
if (r < 0)
return r;
if (r < 0)
return r;
return r;
}