summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1997-06-29 08:45:24 +0000
committerNiels Provos <provos@cvs.openbsd.org>1997-06-29 08:45:24 +0000
commit9c47a8afdb225143fb185e72527430b36650c0b7 (patch)
tree32e5aa35b26bb68ef95022af63b9bb88840f992e /usr.bin
parent50fe533e67e9badf69649b32b90e5bdc836af894 (diff)
leave out some fields for ipsp not any longer used in new encap
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/route.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 1dbbc09a1e7..b02e0852286 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.11 1997/06/24 03:53:01 millert Exp $ */
+/* $OpenBSD: route.c,v 1.12 1997/06/29 08:45:23 provos Exp $ */
/* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94";
#else
-static char *rcsid = "$OpenBSD: route.c,v 1.11 1997/06/24 03:53:01 millert Exp $";
+static char *rcsid = "$OpenBSD: route.c,v 1.12 1997/06/29 08:45:23 provos Exp $";
#endif
#endif /* not lint */
@@ -230,10 +230,10 @@ pr_encaphdr()
{
if (Aflag)
printf("%-8s ", "Address");
- printf("%-15s %-15s %-5s %-15s %-15s %-5s %-5s %-15s %-15s %-8s %-9s %s\n",
+ printf("%-15s %-15s %-5s %-15s %-15s %-5s %-5s %-15s %-8s %s\n",
"Source address", "Source mask", "Port", "Dest. address",
- "Dest. mask", "Port", "Proto", "Tunnel entry", "Tunnel exit",
- "SPI", "Interface", "Use");
+ "Dest. mask", "Port", "Proto", "Tunnel exit",
+ "SPI", "Use");
}
static struct sockaddr *
@@ -801,9 +801,8 @@ encap_print(rt)
printf("%-15s ", inet_ntoa(sen1.sen_ip_dst));
printf("%-15s %-5u %-5u ", inet_ntoa(sen2.sen_ip_dst),
sen1.sen_dport, sen1.sen_proto);
- printf("%-15s ", inet_ntoa(sen3.sen_ipsp_src));
- printf("%-15s %08x enc%-6u %-u\n", inet_ntoa(sen3.sen_ipsp_dst),
- ntohl(sen3.sen_ipsp_spi), sen3.sen_ipsp_ifn, rt->rt_use);
+ printf("%-15s %08x %-u\n", inet_ntoa(sen3.sen_ipsp_dst),
+ ntohl(sen3.sen_ipsp_spi), rt->rt_use);
}
void