summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfctl/ospfctl.c
diff options
context:
space:
mode:
authorMathieu Sauve-Frankel <msf@cvs.openbsd.org>2005-09-24 21:10:33 +0000
committerMathieu Sauve-Frankel <msf@cvs.openbsd.org>2005-09-24 21:10:33 +0000
commit99b74a6b0edb3b9af9b75ff6efcc87e5d67ae80f (patch)
treefb304a88354d7314a65087d61b67193d55b0dd4c /usr.sbin/ospfctl/ospfctl.c
parentf1f361f7c045b614de6393f564527b5d01c082d8 (diff)
- 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");