-/* $OpenBSD: route.c,v 1.252 2021/01/24 08:58:50 florian Exp $ */
+/* $OpenBSD: route.c,v 1.253 2021/02/24 16:12:42 deraadt Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
sizeof(rtdns->sr_dns));
return;
}
- printf(" [");
switch (rtdns->sr_family) {
case AF_INET:
+ printf(" INET [");
/* An array of IPv4 addresses. */
servercnt = srclen / sizeof(struct in_addr);
if (servercnt * sizeof(struct in_addr) != srclen) {
}
break;
case AF_INET6:
+ printf(" INET6 [");
servercnt = srclen / sizeof(struct in6_addr);
if (servercnt * sizeof(struct in6_addr) != srclen) {
printf("<invalid server count>\n");
}
break;
default:
+ printf(" UNKNOWN [");
break;
}
printf("]");