]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
syntactic sugar: support range notation such as
authorLuigi Rizzo <luigi@FreeBSD.org>
Mon, 23 Jun 2003 08:20:28 +0000 (08:20 +0000)
committerLuigi Rizzo <luigi@FreeBSD.org>
Mon, 23 Jun 2003 08:20:28 +0000 (08:20 +0000)
commit9ef3f16d0801f7fe19d2b64a0f1ca5b64e2858a8
tree460a55242ad470dbd4dacf37e16a0bb45c00bb4f
parent064d54a2480a257586fcf0f9b5a00858ccc44a2b
syntactic sugar: support range notation such as
    1.2.3.4/24{5,6,7,10-20,60-90}
for set of ip addresses.
Previously you needed to specify every address in the range, which
was unconvenient and lead to very long lines.
Internally the set is still stored in the same way, just the
input and output routines are modified.

Manpage update still missing.

Perhaps a similar preprocessing step would be useful for port ranges.

MFC after: 3 days
sbin/ipfw/ipfw2.c