summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ipsp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index 3d6a5692d43..345900ba10e 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.133 2001/06/24 21:14:33 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.134 2001/06/24 23:11:45 provos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -926,6 +926,11 @@ ipsp_kern(int off, char **bufp, int len)
else
l += sprintf(buffer + l, "\n");
+ if (tdb->tdb_mtu && tdb->tdb_mtutimeout > time.tv_sec)
+ l += sprintf(buffer + l,
+ "\tMTU: %d, expires in %qu seconds\n",
+ tdb->tdb_mtu, tdb->tdb_mtutimeout - time.tv_sec);
+
if (tdb->tdb_local_cred)
l += sprintf(buffer + l, "\tLocal credential type %d\n", ((struct ipsec_ref *) tdb->tdb_local_cred)->ref_type);