summaryrefslogtreecommitdiff
path: root/sbin/route/show.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-10-11 11:45:01 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-10-11 11:45:01 +0000
commitf85887c1b6d42fa8b68c78dc07cbae461a7bb81b (patch)
tree927ea6392918f77c36ea482c1b44cf5a5750816b /sbin/route/show.h
parentfa7d763dca81101fef4d9041f72d9cb4c3d4e120 (diff)
Make route(8) use the ROUTE_TABLEFILTER and change the code so that
route(8) will default to the process rtableid. route -T 1 exec route add default 192.168.1.1 route -T 1 exec route -n show These commands will now operate outmatically on rtable 1 and not on rtable 0 as it was done before. OK henning@
Diffstat (limited to 'sbin/route/show.h')
-rw-r--r--sbin/route/show.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/route/show.h b/sbin/route/show.h
index 95f48800503..9edfb545311 100644
--- a/sbin/route/show.h
+++ b/sbin/route/show.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: show.h,v 1.8 2010/09/21 10:58:23 krw Exp $ */
+/* $OpenBSD: show.h,v 1.9 2010/10/11 11:45:00 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -28,7 +28,7 @@ union sockunion {
struct sockaddr_mpls smpls;
};
-void p_rttables(int, u_int);
+void p_rttables(int, u_int, int);
char *routename(struct sockaddr *);
char *netname(struct sockaddr *, struct sockaddr *);
char *mpls_op(u_int32_t);