X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=src%2Frouter.c;h=37ba14f2de747b10dc9d4da66f97a22f00e2b9f6;hb=44965f14d7abed2d5327ca1c89e4bcf481473e53;hp=c410a9ceaf74742ee5dc82f55af6a9cac5a889a4;hpb=e447ff965919f3718c1483d44ea4e99e800c6714;p=project%2Fodhcpd.git diff --git a/src/router.c b/src/router.c index c410a9c..37ba14f 100644 --- a/src/router.c +++ b/src/router.c @@ -263,8 +263,8 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add else if (parse_routes(addrs, ipcnt)) adv.h.nd_ra_router_lifetime = htons(1); - syslog(LOG_INFO, "Initial router lifetime %d, %d address(es) available", - ntohs(adv.h.nd_ra_router_lifetime), (int)ipcnt); + syslog(LOG_INFO, "Initial RA router lifetime %d, %d address(es) available on %s", + ntohs(adv.h.nd_ra_router_lifetime), (int)ipcnt, iface->ifname); } // Construct Prefix Information options @@ -282,8 +282,8 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add char namebuf[INET6_ADDRSTRLEN]; inet_ntop(AF_INET6, addr, namebuf, sizeof(namebuf)); - syslog(LOG_INFO, "Address %s (prefix %d, valid %u) not suitable", - namebuf, addr->prefix, addr->valid); + syslog(LOG_INFO, "Address %s (prefix %d, valid %u) not suitable as RA prefix on %s", + namebuf, addr->prefix, addr->valid, iface->ifname); continue; } @@ -314,7 +314,7 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add && ntohs(adv.h.nd_ra_router_lifetime) < this_lifetime) { adv.h.nd_ra_router_lifetime = htons(this_lifetime); - syslog(LOG_DEBUG, "Updating router lifetime to %d", this_lifetime); + syslog(LOG_INFO, "Updating RA router lifetime to %d on %s", this_lifetime, iface->ifname); } odhcpd_bmemcpy(&p->nd_opt_pi_prefix, &addr->addr,