X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fndp.c;h=7cabc5e69cbbc79b4cd262618062a459bb501610;hp=f9e04051c73c3018c3b9197a51e2ab2148f88b3c;hb=df023adafeee1bf48fa1e0cce31e7130f8043dae;hpb=c8ac572154981ca833dad92d7ee7aa62b88087cc diff --git a/src/ndp.c b/src/ndp.c index f9e0405..7cabc5e 100644 --- a/src/ndp.c +++ b/src/ndp.c @@ -291,9 +291,9 @@ static int prefixcmp(const void *va, const void *vb) // Check address update static void check_updates(struct interface *iface) { - struct odhcpd_ipaddr addr[8] = {{IN6ADDR_ANY_INIT, 0, 0, 0, 0}}; + struct odhcpd_ipaddr addr[RELAYD_MAX_ADDRS] = {{IN6ADDR_ANY_INIT, 0, 0, 0, 0}}; time_t now = odhcpd_time(); - ssize_t len = odhcpd_get_interface_addresses(iface->ifindex, addr, 8); + ssize_t len = odhcpd_get_interface_addresses(iface->ifindex, addr, ARRAY_SIZE(addr)); if (len < 0) return;