sd-dhcp6-client.c revision 139b011ab81ccea1d51f09e0261a1c390115c6ff
/*-*- 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 <errno.h>
#include <string.h>
#include "util.h"
#include "refcnt.h"
#include "sd-dhcp6-client.h"
#include "dhcp6-protocol.h"
struct sd_dhcp6_client {
enum DHCP6State state;
int event_priority;
int index;
struct ether_addr mac_addr;
void *userdata;
};
{
return 0;
}
{
return 0;
}
const struct ether_addr *mac_addr)
{
if (mac_addr)
else
return 0;
}
}
return client;
}
{
return 0;
}
if (client)
return client;
}
{
return 0;
}
{
int r = 0;
return r;
}
int priority)
{
int r;
if (event)
else {
if (r < 0)
return 0;
}
return 0;
}
return 0;
}
if (!client)
return NULL;
}
if (client)
return client;
}
return NULL;
}
return client;
}
{
if (!client)
return -ENOMEM;
return 0;
}