don't print ndp -i result if the interface is not
initialized Obtained from: KAME
This commit is contained in:
parent
31b1bfe1b0
commit
31423309c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121162
@ -944,6 +944,11 @@ ifinfo(argc, argv)
|
||||
#undef SETFLAG
|
||||
}
|
||||
|
||||
if (!ND.initialized) {
|
||||
errx(1, "%s: not initialized yet", ifname);
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
printf("linkmtu=%d", ND.linkmtu);
|
||||
printf(", curhlim=%d", ND.chlim);
|
||||
printf(", basereachable=%ds%dms",
|
||||
|
Loading…
Reference in New Issue
Block a user