From: Simon Lodal <simonl@parknet.dk>
To: netfilter-devel@lists.netfilter.org
Cc: Ben Efros <ben@xgendev.com>, Henrik Nordstrom <hno@marasystems.com>
Subject: Re: RFC: Partial IP4 syntax
Date: Wed, 29 Sep 2004 18:37:34 +0200 [thread overview]
Message-ID: <415AE4CE.3030305@parknet.dk> (raw)
In-Reply-To: <Pine.LNX.4.61.0409291042240.11661@filer.marasystems.com>
Henrik Nordstrom skrev:
> There already is an old BSD syntax similar this which many people are
> used to, but with a slightly different meaning
>
> 10.1 is the same as 10.0.0.1
Interesting, thanks.
When people talk about the 10.44 network, I assume they append .0.0, not
insert them in the middle. My proposal does that with a double dot, eg.
10..44 = 10.0.0.44.
The old syntax could actually be supported if we always require
leading/trailing/double dot. In other words:
1) .b.c.d | .c.d | .d
2) a..d | a..c.d | a.b..d
3) a. | a.b. | a.b.c.
They all require special dotting, so none of them clash with an address
that just lacks some octets, eg. "10.1". We can then choose to support
that in it's own way.
Note that "10.1" and "10..1" would both expand to 10.0.0.1 but have
different defaults netmasks: /32 vs. 255.0.0.255.
> 10.59470 is the same as 10.0.232.78
>
> 2888886350 is the same as 172.48.232.78
I understand if that is being deprecated.
They could at least have used hex!
> not very useful for netfilter thou as here one mostly wants to specify
> networks, not hosts which means that the address must always end in .0
I also want compact syntax for groups of similar hosts in different
nets. I have a bunch of class C nets internally, in each .1 is the
router, I want to match traffic directly to/from them:
"10.0.0.1/255.0.0.255". It is possible but looks ugly, so I want
simplification, in this case "10..1". Parsed result is the same.
What I also want is a way to only specify the least significant bits. If
I do not care about the first octet (10), the above would just become ".1".
Simon
next prev parent reply other threads:[~2004-09-29 16:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-29 1:41 RFC: Partial IP4 syntax Simon Lodal
2004-09-29 3:56 ` Ben Efros
2004-09-29 5:42 ` Simon Lodal
2004-09-29 8:55 ` Henrik Nordstrom
2004-09-29 16:38 ` Simon Lodal
2004-09-29 17:05 ` Henrik Nordstrom
2004-09-29 18:45 ` Simon Lodal
2004-09-29 19:11 ` Cedric Blancher
2004-09-29 22:41 ` Simon Lodal
2004-09-29 19:39 ` Henrik Nordstrom
2004-09-29 8:50 ` Henrik Nordstrom
2004-09-29 16:37 ` Simon Lodal [this message]
2004-09-29 16:54 ` Henrik Nordstrom
2004-09-29 18:21 ` Simon Lodal
2004-09-29 19:30 ` Henrik Nordstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=415AE4CE.3030305@parknet.dk \
--to=simonl@parknet.dk \
--cc=ben@xgendev.com \
--cc=hno@marasystems.com \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.