summaryrefslogtreecommitdiffhomepage
path: root/src/ndp.h
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-14 08:37:38 +0200
committerSteven Barth <steven@midlink.org>2013-10-14 08:37:38 +0200
commit8b19de666e02f24280728938dd985ecb3673b83e (patch)
treef378f10e87dea4d9b143f8e3f983c2c01efba7e5 /src/ndp.h
Initial commit
Diffstat (limited to 'src/ndp.h')
-rw-r--r--src/ndp.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/ndp.h b/src/ndp.h
new file mode 100644
index 0000000..abd5b0a
--- /dev/null
+++ b/src/ndp.h
@@ -0,0 +1,31 @@
+/**
+ * Copyright (C) 2012-2013 Steven Barth <steven@midlink.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License v2 as published by
+ * the Free Software Foundation.
+ *
+ * This program 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 General Public License for more details.
+ *
+ */
+
+#pragma once
+#include "odhcpd.h"
+#include <time.h>
+
+#ifndef SOL_NETLINK
+#define SOL_NETLINK 270
+#endif
+
+#define NDP_MAX_NEIGHBORS 1000
+
+struct ndp_neighbor {
+ struct list_head head;
+ struct interface *iface;
+ struct in6_addr addr;
+ uint8_t len;
+ time_t timeout;
+};