summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_ipsp.c
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-05-30 16:43:11 +0000
committerangelos <angelos@openbsd.org>2001-05-30 16:43:11 +0000
commit4c5f7fc67b40a498a491d43f4f99c457f548f479 (patch)
tree4e8b2107766b6ed29b2afa03a534a4726e32d2ae /sys/netinet/ip_ipsp.c
parentchange misleading variable name (diff)
downloadwireguard-openbsd-4c5f7fc67b40a498a491d43f4f99c457f548f479.tar.xz
wireguard-openbsd-4c5f7fc67b40a498a491d43f4f99c457f548f479.zip
IPSP_IDENTITY_MBOX -> IPSP_IDENTITY_FQDN, and print type of creds/auth
in kernfs
Diffstat (limited to 'sys/netinet/ip_ipsp.c')
-rw-r--r--sys/netinet/ip_ipsp.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index 0f3ce4af16d..0963cd3606d 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.121 2001/05/30 11:15:37 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.122 2001/05/30 16:43:11 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -982,6 +982,18 @@ ipsp_kern(int off, char **bufp, int len)
else
l += sprintf(buffer + l, "\n");
+ if (tdb->tdb_local_cred)
+ l += sprintf(buffer + l, "\tLocal credential type %d\n", ((struct ipsec_ref *) tdb->tdb_local_cred)->ref_type);
+
+ if (tdb->tdb_remote_cred)
+ l += sprintf(buffer + l, "\tRemote credential type %d\n", ((struct ipsec_ref *) tdb->tdb_remote_cred)->ref_type);
+
+ if (tdb->tdb_local_auth)
+ l += sprintf(buffer + l, "\tLocal auth type %d\n", ((struct ipsec_ref *) tdb->tdb_local_auth)->ref_type);
+
+ if (tdb->tdb_remote_auth)
+ l += sprintf(buffer + l, "\tRemote auth type %d\n", ((struct ipsec_ref *) tdb->tdb_remote_auth)->ref_type);
+
l += sprintf(buffer + l, "\tFlags (%08x) = <", tdb->tdb_flags);
if ((tdb->tdb_flags & ~(TDBF_TIMER | TDBF_BYTES |