networkd-ndisc.c revision f5a8c43f39937d97c9ed75e3fe8621945b42b0db
/*-*- 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 "sd-ndisc.h"
#include "networkd-link.h"
static void ndisc_router_handler(sd_ndisc *nd, uint8_t flags, const struct in6_addr *gateway, unsigned lifetime, int pref, void *userdata) {
int r;
return;
if (flags & ND_RA_FLAG_MANAGED)
if (r < 0 && r != -EALREADY)
}
}
int r;
return;
switch (event) {
case SD_NDISC_EVENT_TIMEOUT:
if (r < 0 && r != -EALREADY)
break;
case SD_NDISC_EVENT_STOP:
break;
default:
}
}
int r;
if (r < 0)
return r;
if (r < 0)
return r;
if (r < 0)
return r;
if (r < 0)
return r;
NULL,
NULL,
link);
return r;
}