From 90d415258d57d514c014004a5050d39f149868b5 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sun, 24 Jun 2001 23:11:46 +0000 Subject: print mtu of tdb if discovered --- sys/netinet/ip_ipsp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/netinet/ip_ipsp.c') 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); -- cgit v1.2.3