diff options
author | Jared Yanovich <jaredy@cvs.openbsd.org> | 2004-09-25 18:29:47 +0000 |
---|---|---|
committer | Jared Yanovich <jaredy@cvs.openbsd.org> | 2004-09-25 18:29:47 +0000 |
commit | 5dc1d76765c1120ae16c4d6108323c970d7cfeb0 (patch) | |
tree | 6d72adb6b4a1f1e47fd2eb480dde6ffa016c16c9 | |
parent | 0b49ef3652d23513b4d4b5b9dd1fdda698068614 (diff) |
tidy usage; ok ho hshoexer
-rw-r--r-- | sbin/ipsecadm/ipsecadm.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c index e004deaff2d..9b0bb4d3334 100644 --- a/sbin/ipsecadm/ipsecadm.c +++ b/sbin/ipsecadm/ipsecadm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecadm.c,v 1.80 2004/06/25 02:35:36 henning Exp $ */ +/* $OpenBSD: ipsecadm.c,v 1.81 2004/09/25 18:29:46 jaredy Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -280,7 +280,7 @@ gotit: void usage(void) { - fprintf(stderr, "usage: ipsecadm [command] <modifier...>\n" + fprintf(stderr, "usage: ipsecadm command [modifier ...]\n" "\tCommands: new esp, old esp, new ah, old ah, group, delspi, ip4, ipcomp,\n" "\t\t tcpmd5, flow, flush, show, monitor\n" "\tPossible modifiers:\n" @@ -300,10 +300,11 @@ usage(void) "\t -keyfile <file>\t\tfile to read key material from\n" "\t -authkey <val>\t\tkey material for auth in new esp\n" "\t -authkeyfile <file>\t\tfile to read authkey material from\n" - "\t -sport\t\t\tsource port for flow\n" - "\t -dport\t\t\tdestination port for flow\n" + "\t -sport <port>\t\t\tsource port for flow\n" + "\t -dport <port>\t\t\tdestination port for flow\n" "\t -transport <val>\t\tprotocol number for flow\n" - "\t -addr [<ip> <net> <ip> <net>|<ip/len> <ip/len>] subnets for flow\n" + "\t -addr <srcnet> <mask> <dstnet> <mask>\t\tsubnets for flow\n" + "\t -addr <srcnet/prefix> <dstnet/prefix>\t\tsame as above but in CIDR\n" "\t -delete\t\t\tdelete specified flow\n" "\t -bypass\t\t\tpermit a flow through without IPsec\n" "\t -permit\t\t\tsame as bypass\n" @@ -314,11 +315,11 @@ usage(void) "\t -dontacq\t\t\trequire, without using key mgmt.\n" "\t -in\t\t\t\tspecify incoming-packet policy\n" "\t -out\t\t\t\tspecify outgoing-packet policy\n" - "\t -[ah|esp|ip4|ipcomp|tcpmd5]\t\tflush a particular protocol\n" - "\t -srcid\t\t\tsource identity for flows\n" - "\t -dstid\t\t\tdestination identity for flows\n" - "\t -srcid_type\t\t\tsource identity type\n" - "\t -dstid_type\t\t\tdestination identity type\n" + "\t -[ah|esp|ip4|ipcomp|tcpmd5]\tflush a particular protocol\n" + "\t -srcid <id>\t\t\tsource identity for flows\n" + "\t -dstid <id>\t\t\tdestination identity for flows\n" + "\t -srcid_type <type>\t\tsource identity type\n" + "\t -dstid_type <type>\t\tdestination identity type\n" "\talso: dst2, spi2, proto2\n" ); } |