diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-30 12:11:38 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-30 12:11:38 +0000 |
commit | f02a68cf86c066f83baf55b3830aea7f08608e1d (patch) | |
tree | d497ba2b0fe7e5a0df2d40a7f93b3b2dc497116e /sbin/route/route.c | |
parent | 7f476f911e55d615aa9700a268e8833ef73ca49b (diff) |
If an address family is specified do not print IPSec "routes". Additionally
add a -encap option to show only the IPSec part. OK hshoexer@, henning@
Diffstat (limited to 'sbin/route/route.c')
-rw-r--r-- | sbin/route/route.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index b258f173fdd..489e494740d 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.93 2006/03/30 09:56:06 claudio Exp $ */ +/* $OpenBSD: route.c,v 1.94 2006/03/30 12:11:37 claudio Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -585,6 +585,9 @@ show(int argc, char *argv[]) case K_LINK: af = AF_LINK; break; + case K_ENCAP: + af = PF_KEY; + break; default: usage(*argv); /* NOTREACHED */ |