diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ndp/ndp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 51f32e9..8e41adb 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -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", |