mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
sync with KAME in the following points:
- removed compilation warnings - suppress a redundant error message when a default-router-list is empty Obtained from: KAME Reviewd by: ume, gnn MFC after: 2 weeks
This commit is contained in:
parent
2110d9c31a
commit
ec0176bbda
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151472
|
@ -142,7 +142,6 @@ void ifinfo __P((char *, int, char **));
|
|||
void rtrlist __P((void));
|
||||
void plist __P((void));
|
||||
void pfx_flush __P((void));
|
||||
void rtrlist __P((void));
|
||||
void rtr_flush __P((void));
|
||||
void harmonize_rtr __P((void));
|
||||
#ifdef SIOCSDEFIFACE_IN6 /* XXX: check SIOCGDEFIFACE_IN6 as well? */
|
||||
|
@ -1042,6 +1041,8 @@ ifinfo(ifname, argc, argv)
|
|||
printf("\nRandom ID: ");
|
||||
rbuf = ND.randomid;
|
||||
break;
|
||||
default:
|
||||
errx(1, "impossible case for tempaddr display");
|
||||
}
|
||||
for (j = 0; j < 8; j++)
|
||||
printf("%02x", rbuf[j]);
|
||||
|
@ -1085,6 +1086,8 @@ rtrlist()
|
|||
err(1, "sysctl(ICMPV6CTL_ND6_DRLIST)");
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
if (l == 0)
|
||||
return;
|
||||
buf = malloc(l);
|
||||
if (!buf) {
|
||||
err(1, "malloc");
|
||||
|
|
Loading…
Reference in a new issue