summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/iface.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-08-21 11:07:58 +0000
committerbrian <brian@FreeBSD.org>2001-08-21 11:07:58 +0000
commit2286423a9940558949a4146502f59590daf55499 (patch)
tree865da00fcc0a67c61cafad9286c0f73f1f3b5e61 /usr.sbin/ppp/iface.c
parent637fbcbedbfa2fb5dd068cdf304bef2b5ab2bf33 (diff)
downloadFreeBSD-src-2286423a9940558949a4146502f59590daf55499.zip
FreeBSD-src-2286423a9940558949a4146502f59590daf55499.tar.gz
o Enable IFF_MULTICAST when first opening the tun device (and keep the flag
when we ioctl(TUNSIFINFO) under OpenBSD) o Don't bring the interface up immediately o Don't complain about unrecognised interface flags in ``show iface''.
Diffstat (limited to 'usr.sbin/ppp/iface.c')
-rw-r--r--usr.sbin/ppp/iface.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c
index 8375663..d729a78 100644
--- a/usr.sbin/ppp/iface.c
+++ b/usr.sbin/ppp/iface.c
@@ -622,11 +622,18 @@ iface_Show(struct cmdargs const *arg)
prompt_Printf(arg->prompt, "%s (idx %d) <", iface->name, iface->index);
for (f = 0; f < sizeof if_flags / sizeof if_flags[0]; f++)
- if ((if_flags[f].flag & flags) || (!if_flags[f].flag && flags)) {
+ if ((if_flags[f].flag & flags)) {
prompt_Printf(arg->prompt, "%s%s", flags == iface->flags ? "" : ",",
if_flags[f].value);
flags &= ~if_flags[f].flag;
}
+
+#if 0
+ if (flags)
+ prompt_Printf(arg->prompt, "%s0x%x", flags == iface->flags ? "" : ",",
+ flags);
+#endif
+
prompt_Printf(arg->prompt, "> mtu %d has %d address%s:\n", iface->mtu,
iface->addrs, iface->addrs == 1 ? "" : "es");
OpenPOWER on IntegriCloud