summaryrefslogtreecommitdiff
path: root/sbin/route/keywords.h
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2004-06-06 17:08:24 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2004-06-06 17:08:24 +0000
commit279617b781ec14108b2825952f7d1f0a5140a417 (patch)
tree6d25610a0394a8a636188a518848e623fdd436d1 /sbin/route/keywords.h
parent26988a280f12eb6b5489e79481d75404a5199fd3 (diff)
add new "-src" and "-srcmask" modifiers to make it possible to add a source
selector part to the routing table entry. complements existing "-dst" and "-dstmask". typical use: route add -src 20.20.20.22 20.20.20.21 route add -src 192.168.1.0/24 -dst 192.168.2.0/24 20.20.20.21 useful for example to implement symetrical routing on multihomed boxes, or to better select which packets to send to gif/tun/... tunnels. new '-S' flag similar to netstat one. ok deraadt@ mcbride@
Diffstat (limited to 'sbin/route/keywords.h')
-rw-r--r--sbin/route/keywords.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/sbin/route/keywords.h b/sbin/route/keywords.h
index 81c547bf986..2c2d9cdae8b 100644
--- a/sbin/route/keywords.h
+++ b/sbin/route/keywords.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: keywords.h,v 1.6 2000/07/27 20:12:25 angelos Exp $ */
+/* $OpenBSD: keywords.h,v 1.7 2004/06/06 17:08:23 cedric Exp $ */
/* WARNING! This file was generated by keywords.sh */
@@ -50,8 +50,10 @@ extern struct keytab {
#define K_SA 40
#define K_SENDPIPE 41
#define K_SHOW 42
-#define K_SSTHRESH 43
-#define K_STATIC 44
-#define K_X25 45
-#define K_XNS 46
-#define K_XRESOLVE 47
+#define K_SRC 43
+#define K_SRCMASK 44
+#define K_SSTHRESH 45
+#define K_STATIC 46
+#define K_X25 47
+#define K_XNS 48
+#define K_XRESOLVE 49