|
|||||||||||
|
re: linux-ipsec: address-range syntax (was apps/utils/libs that parse...)
From: Henry Spencer <henry(at)spsystems.net>
Date: Wed Jul 22 1998 - 12:52:18 EDT
Note that I didn't say it was required, only that there was a large bonus for it. Remember that scripts are programs -- often arguments are being substituted in from elsewhere, so you may not know exactly which form a particular argument is going to take -- and that cut-and-paste is also quite common with smart user interfaces. None of these things is *impossible* with a shell-hostile syntax, but a shell-friendly syntax makes them easier and less error-prone. Eliminating the problem, if we can, is better than making everyone cope with it. This is all reasonably traditional, and we already have it (I'm not sure of the difference between the first two, and the bit counts don't seem to quite add up, but that may just be typos...).
> xxx.xxx.xxx.xxx [(mask|netmask) yyy.yyy.yyy.yyy] traditional syntax
xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy is also reasonably traditional here, and again, the support for that is already done.
> xxx.xxx.xxx.xxx to yyy.yyy.yyy.yyy a literal range, no sensibility checks
I see problems here, among them the fact that "to" can be a legitimate DNS name. (So can "mask" and "netmask", by the way -- a DNS query on "mask" on my system yields "255.255.255.240".) I think it would still be better to have a single-argument syntax that doesn't need quoting.
Henry Spencer
henry@spsystems.net
(henry@zoo.toronto.edu)
Received on Wed Jul 22 18:10:56 1998This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:24 EDT |
||||||||||
|
|||||||||||