projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dhcpv6-ia: create assignment for unknown IA in rebind messages
[project/odhcpd.git]
/
src
/
ndp.c
diff --git
a/src/ndp.c
b/src/ndp.c
index
e201ac9
..
97a4713
100644
(file)
--- a/
src/ndp.c
+++ b/
src/ndp.c
@@
-33,9
+33,8
@@
#include <netlink/socket.h>
#include <netlink/attr.h>
#include <netlink/socket.h>
#include <netlink/attr.h>
-#include "router.h"
#include "dhcpv6.h"
#include "dhcpv6.h"
-#include "
ndp
.h"
+#include "
odhcpd
.h"
struct event_socket {
struct odhcpd_event ev;
struct event_socket {
struct odhcpd_event ev;
@@
-363,8
+362,6
@@
static void check_addr_updates(struct interface *iface)
qsort(addr, len, sizeof(*addr), prefixcmp);
for (int i = 0; i < len; ++i) {
qsort(addr, len, sizeof(*addr), prefixcmp);
for (int i = 0; i < len; ++i) {
- addr[i].addr.s6_addr32[3] = 0;
-
if (addr[i].preferred < UINT32_MAX - now)
addr[i].preferred += now;
if (addr[i].preferred < UINT32_MAX - now)
addr[i].preferred += now;
@@
-395,7
+392,7
@@
static void check_addr_updates(struct interface *iface)
}
}
}
}
-void setup_addr_for_relaying(struct in6_addr *addr, struct interface *iface, bool add)
+
static
void setup_addr_for_relaying(struct in6_addr *addr, struct interface *iface, bool add)
{
struct interface *c;
char ipbuf[INET6_ADDRSTRLEN];
{
struct interface *c;
char ipbuf[INET6_ADDRSTRLEN];
@@
-417,7
+414,7
@@
void setup_addr_for_relaying(struct in6_addr *addr, struct interface *iface, boo
}
}
}
}
-void setup_ping6(struct in6_addr *addr, struct interface *iface)
+
static
void setup_ping6(struct in6_addr *addr, struct interface *iface)
{
struct interface *c;
{
struct interface *c;