carp: use nd6log() macro to log debug messages

Obtained from:	Yandex LLC
Sponsored by:	Yandex LLC
This commit is contained in:
Andrey V. Elsukov 2023-06-28 13:27:37 +03:00
parent 6927176113
commit 0cd2d88d8d

View file

@ -517,9 +517,9 @@ nd6_ns_output_fib(struct ifnet *ifp, const struct in6_addr *saddr6,
*/
if (ifa != NULL && ifa->ifa_carp != NULL &&
!(*carp_master_p)(ifa)) {
log(LOG_DEBUG,
nd6log((LOG_DEBUG,
"nd6_ns_output: NS from BACKUP CARP address %s\n",
ip6_sprintf(ip6buf, &ip6->ip6_src));
ip6_sprintf(ip6buf, &ip6->ip6_src)));
ifa_free(ifa);
goto bad;
}
@ -742,9 +742,9 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len)
* the CARP master.
*/
if (!(*carp_master_p)(ifa)) {
log(LOG_DEBUG,
nd6log((LOG_DEBUG,
"nd6_na_input: NA for BACKUP CARP address %s\n",
ip6_sprintf(ip6bufs, &taddr6));
ip6_sprintf(ip6bufs, &taddr6)));
ifa_free(ifa);
goto freeit;
}