diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2001-06-24 23:11:46 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2001-06-24 23:11:46 +0000 |
commit | 90d415258d57d514c014004a5050d39f149868b5 (patch) | |
tree | cae1dfc4e4934202d1afeb678c816fc098dc0391 /sys/netinet/ip_ipsp.c | |
parent | e63a41c0b00b78b316523b25edc2753b84bb9ffa (diff) |
print mtu of tdb if discovered
Diffstat (limited to 'sys/netinet/ip_ipsp.c')
-rw-r--r-- | sys/netinet/ip_ipsp.c | 7 |
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); |