diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-12-04 23:26:28 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-12-04 23:26:28 +0000 |
commit | 01eca044b157c002a1d1429b9ea8ca0aae793827 (patch) | |
tree | e32ec8624730b11b81931687ec493ecebc3f5942 | |
parent | d4a9724fb4e14e2f833a1d12d62854b6b7b247ae (diff) |
Deprecate -local flag.
-rw-r--r-- | sbin/ipsecadm/ipsecadm.8 | 25 | ||||
-rw-r--r-- | sbin/ipsecadm/ipsecadm.c | 6 |
2 files changed, 8 insertions, 23 deletions
diff --git a/sbin/ipsecadm/ipsecadm.8 b/sbin/ipsecadm/ipsecadm.8 index c487dd61fa9..0559400ee30 100644 --- a/sbin/ipsecadm/ipsecadm.8 +++ b/sbin/ipsecadm/ipsecadm.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ipsecadm.8,v 1.15 1999/11/04 11:29:35 ho Exp $ +.\" $OpenBSD: ipsecadm.8,v 1.16 1999/12/04 23:26:27 angelos Exp $ .\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> .\" All rights reserved. .\" @@ -157,7 +157,6 @@ Association. Allowed modifiers are: .Fl transport , .Fl sport , .Fl dport , -.Fl local , .Fl delete , and .Fl bypass . @@ -173,7 +172,6 @@ flows, additional modifiers are restricted to: .Fl transport , .Fl sport , .Fl dport , -.Fl local , and .Fl delete . These flows always have SPI 0, destination 0.0.0.0 and protocol 0. @@ -217,15 +215,8 @@ The modifiers have the following meanings: .It src The source IP address for the SA. This is necessary for incoming SAs to avoid source address spoofing between mutually -suspicious hosts that have established SAs with us. For outgoing SAs, this -field is used to slightly speedup packet processing. If this field is -zero (0.0.0.0), no spoofing check will be done for incoming SAs, and an -extra routing lookup may be necessary for certain classes of packets that -originate from the local machine and make use of the SA. If present, the -value of this field is used when doing IP-in-IP encapsulation (e.g., when -the -.Nm forcetunnel -option has been specified. +suspicious hosts that have established SAs with us. For outgoing SAs, +this field is not currently used, however it must still be specified. .It dst The destination IP address for the SA. .It proxy @@ -386,12 +377,6 @@ By default the source port is not used for matching. Instead of a number, a valid service name that appears in .Xr services 5 can be used. -.It local -The -.Nm flow -command also creates a flow which matches local packets. This is equivalent -to using a source address of 0.0.0.0 and a source network mask of -255.255.255.255. .It delete Instead of creating a flow, an existing flow is deleted. .It bypass @@ -441,13 +426,13 @@ ipsecadm old ah -auth md5 -spi 1001 -dst 169.20.12.2 -src 169.20.12.3 \e\ .Pp Setup a flow using the above SA: .Bd -literal -ipsecadm flow -dst 169.20.12.2 -spi 1001 -proto ah -local \e\ +ipsecadm flow -dst 169.20.12.2 -spi 1001 -proto ah \e\ -addr 10.1.1.0 255.255.255.0 10.0.0.0 255.0.0.0.0 .Ed .Pp Setup a bypass flow: .Bd -literal -ipsecadm flow -bypass -local \e\ +ipsecadm flow -bypass \e\ -addr 10.1.1.0 255.255.255.0 10.1.1.0 255.255.255.0 .Ed .Pp diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c index 155d609951f..769b4a74aa1 100644 --- a/sbin/ipsecadm/ipsecadm.c +++ b/sbin/ipsecadm/ipsecadm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecadm.c,v 1.25 1999/11/04 11:29:35 ho Exp $ */ +/* $OpenBSD: ipsecadm.c,v 1.26 1999/12/04 23:26:27 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -196,7 +196,6 @@ usage() "\t -transport <val>\t\t protocol number for flow\n" "\t -addr <ip> <net> <ip> <net>\t subnets for flow\n" "\t -delete\t\t\t delete specified flow\n" - "\t -local\t\t\t also create a local flow\n" "\t -bypass\t\t\t create/delete a bypass flow\n" "\t -sport\t\t\t source port for flow\n" "\t -dport\t\t\t destination port for flow\n" @@ -608,7 +607,8 @@ main(int argc, char **argv) if (!strcmp(argv[i] + 1, "local") && iscmd(mode, FLOW)) { - sa.sadb_sa_flags |= SADB_X_SAFLAGS_LOCALFLOW; + fprintf(stderr, + "%s: Warning: option local has been deprecated\n", argv[0]); continue; } |