ndp: harden netlink event socket error handling
[project/odhcpd.git] / src / ndp.h
1 /**
2  * Copyright (C) 2012-2013 Steven Barth <steven@midlink.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License v2 as published by
6  * the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  */
14
15 #pragma once
16 #include "odhcpd.h"
17 #include <time.h>
18
19 #ifndef SOL_NETLINK
20 #define SOL_NETLINK 270
21 #endif
22
23 #define NDP_MAX_NEIGHBORS 1000
24
25 struct ndp_neighbor {
26         struct list_head head;
27         struct interface *iface;
28         struct in6_addr addr;
29         uint8_t len;
30         time_t timeout;
31 };