summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfctl/ospfctl.c
diff options
context:
space:
mode:
authormsf <msf@openbsd.org>2005-09-24 21:10:32 +0000
committermsf <msf@openbsd.org>2005-09-24 21:10:32 +0000
commita4aef966b607a57eadb5d7a58fd328fb57486135 (patch)
tree506e9cbdebb25af03f4624fd7514135e4608f02e /usr.sbin/ospfctl/ospfctl.c
parentAdd some code to just build the packing-list even if the package won't (diff)
downloadwireguard-openbsd-a4aef966b607a57eadb5d7a58fd328fb57486135.tar.xz
wireguard-openbsd-a4aef966b607a57eadb5d7a58fd328fb57486135.zip
- add auth_type and auth_keyid to struct ctl_iface
- have ospfctl tell us when we are using authentication with 'show interface' ok claudio@ norby@
Diffstat (limited to 'usr.sbin/ospfctl/ospfctl.c')
-rw-r--r--usr.sbin/ospfctl/ospfctl.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c
index 789bb7e8a50..1341a9e8a8c 100644
--- a/usr.sbin/ospfctl/ospfctl.c
+++ b/usr.sbin/ospfctl/ospfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfctl.c,v 1.17 2005/05/27 00:51:52 norby Exp $ */
+/* $OpenBSD: ospfctl.c,v 1.18 2005/09/24 21:10:32 msf Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -344,6 +344,20 @@ show_interface_msg(struct imsg *imsg)
fmt_timeframe_core(iface->hello_timer));
printf(" Neighbor count is %d, adjacent neighbor count is "
"%d\n", iface->nbr_cnt, iface->adj_cnt);
+ if (iface->auth_type > 0) {
+ switch (iface->auth_type) {
+ case AUTH_SIMPLE:
+ printf(" Simple password authentication "
+ "enabled\n");
+ case AUTH_CRYPT:
+ printf(" Message digest authentication "
+ "enabled\n");
+ printf(" Primary key id is %d\n",
+ iface->auth_keyid);
+ default:
+ break;
+ }
+ }
break;
case IMSG_CTL_END:
printf("\n");