Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

linux-ipsec: whack command line

From: Hugh Redelmeier <hugh(at)trends.net>
Date: Sun Aug 16 1998 - 17:05:55 EDT


I've just checked in a new whack that uses getopt_long for argument processing. All scripts using whack will have to change.

There are now four forms of the command:

    help: whack [--help]

    initiate: whack [--port <port-number>] \

	--peer  [--peerport ] \

[--client <subnet>] [--peerclient <subnet>] \
[--encrypt] [--authenticate] [--tunnel]
debug: whack [--port ] [--debug-none] [--debug-all] \
[--debug-raw] [--debug-crypt] [--debug-parsing] \
[--debug-emitting] [--debug-control] [--debug-klips]

    shutdown: whack [--port <port-number>] --shutdown

The new --shutdown command is not yet implemented on the Pluto side.

For each long flag name, there is a short form. Because there are so many distinct letters needed, I could not find very satisfactory ones for a number of flags. This is true for Pluto too. Because I felt the names were awkward, I have not documented them (but they should work, at least for now).

Should I forbid single letter flags? If so, should I switch to getopt_long_only? Does anyone care to go through the set and improve them?

Do you need help?X

flags common to Pluto and Whack:

  h --help
  p --port

  N  --debug-none
  A  --debug-all]
  R  --debug-raw
  X  --debug-crypt
  P  --debug-parsing
  E  --debug-emitting
  C  --debug-control
  K  --debug-klips

Whack's flags:

  d  --peer
  q  --peerport
  c  --client
  o  --peerclient
  e  --encrypt
  a  --authenticate
  t  --tunnel

  s --shutdown

Pluto's flags:

  d  --nofork
  e  --stderrlog
  n  --noklips
  l  --lockdir
  s  --secretsfile

Any thoughts on these would be welcome. I also welcome suggestions for improvements to the long names too.

Hugh Redelmeier
hugh@mimosa.com voice: +1 416 482-8253 Received on Sun Aug 16 17:47:50 1998

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:26 EDT

Do you need more help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library