diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-12-27 03:05:53 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-12-27 03:05:53 +0000 |
commit | 24e342bdd7ef8950cbf5dbd0f86a33f1b482dadb (patch) | |
tree | 9b2c055198a983ee9bd62a8f20df6effef426de4 /sys | |
parent | 4b89c162e059c9135660a361991f00bb48a76a58 (diff) |
Print associated interface, if present.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_ipsp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index 80c36fbb6af..f7663f4989b 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.61 1999/12/25 07:09:42 angelos Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.62 1999/12/27 03:05:52 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -1335,6 +1335,10 @@ ipsp_kern(int off, char **bufp, int len) l += sprintf(buffer + l, "\t\tAuthentication = <%s>\n", tdb->tdb_authalgxform->name); + if (tdb->tdb_interface) + l += sprintf(buffer + l, "\tAssociated interface = <%s>\n", + ((struct ifnet *) tdb->tdb_interface)->if_xname); + if (tdb->tdb_bind_out) l += sprintf(buffer + l, "\tBound SA: SPI = %08x, " |