diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2006-03-23 18:37:35 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2006-03-23 18:37:35 +0000 |
commit | 26b512eab382feda7dce937ab290183de33fd254 (patch) | |
tree | 51d3fd2958c3df0a32caa8b9d4f1adafbfabef11 /usr.sbin/ospfd | |
parent | c83cee38b062d0789008997b2afacb27f9291186 (diff) |
List interfaces they way we list neighbors etc.
This makes it much easier to grep in the output.
The original format of "show interface" can be seen with
"show interface detail".
help and ok claudio@
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r-- | usr.sbin/ospfd/interface.c | 3 | ||||
-rw-r--r-- | usr.sbin/ospfd/ospfd.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/interface.c b/usr.sbin/ospfd/interface.c index 28e9a92d002..32d0d60b6d6 100644 --- a/usr.sbin/ospfd/interface.c +++ b/usr.sbin/ospfd/interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interface.c,v 1.48 2006/03/15 13:25:33 claudio Exp $ */ +/* $OpenBSD: interface.c,v 1.49 2006/03/23 18:37:34 norby Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -635,6 +635,7 @@ if_to_ctl(struct iface *iface) ictl.rxmt_interval = iface->rxmt_interval; ictl.type = iface->type; ictl.linkstate = iface->linkstate; + ictl.mediatype = iface->media_type; ictl.priority = iface->priority; ictl.passive = iface->passive; ictl.auth_type = iface->auth_type; diff --git a/usr.sbin/ospfd/ospfd.h b/usr.sbin/ospfd/ospfd.h index bd0bd373286..e65019e5b04 100644 --- a/usr.sbin/ospfd/ospfd.h +++ b/usr.sbin/ospfd/ospfd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfd.h,v 1.53 2006/03/22 16:01:20 claudio Exp $ */ +/* $OpenBSD: ospfd.h,v 1.54 2006/03/23 18:37:34 norby Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -435,6 +435,7 @@ struct ctl_iface { u_int16_t rxmt_interval; enum iface_type type; u_int8_t linkstate; + u_int8_t mediatype; u_int8_t priority; u_int8_t passive; enum auth_type auth_type; |