X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fndp.c;h=97a471338ca843a71f6a126379b8071e93fbe5d1;hp=e201ac99f44826ff889d7c5bfe575d093376322d;hb=adc8f6269d82f526e225fd8d4b78388fc2da0659;hpb=eea7d037b93020dd5d5d2e5a698e88650a0f0912 diff --git a/src/ndp.c b/src/ndp.c index e201ac9..97a4713 100644 --- a/src/ndp.c +++ b/src/ndp.c @@ -33,9 +33,8 @@ #include #include -#include "router.h" #include "dhcpv6.h" -#include "ndp.h" +#include "odhcpd.h" 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) { - addr[i].addr.s6_addr32[3] = 0; - 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]; @@ -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;