summaryrefslogtreecommitdiff
path: root/sbin/route/keywords.sh
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.sh
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.sh')
-rw-r--r--sbin/route/keywords.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/route/keywords.sh b/sbin/route/keywords.sh
index c97c481abee..f79f7330a24 100644
--- a/sbin/route/keywords.sh
+++ b/sbin/route/keywords.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: keywords.sh,v 1.5 2000/07/27 20:12:25 angelos Exp $
+# $OpenBSD: keywords.sh,v 1.6 2004/06/06 17:08:23 cedric Exp $
# $NetBSD: keywords.sh,v 1.2 1996/11/15 18:57:21 gwr Exp $
# @(#)keywords 8.2 (Berkeley) 3/19/94
#
@@ -51,6 +51,8 @@ rttvar
sa
sendpipe
show
+src
+srcmask
ssthresh
static
x25