procmail
[Top] [All Lists]

Re: How to match IP's

2001-09-08 16:05:00
Martin suggested,

| We can divide everything by two and it's then OK.  And that's alright
| because it can't be a /32 address block *and* be an address range - it
| needs to be at least a /31.  But that's just a layer of complication on
| top of something that's already too complicated.

Well, no, it doesn't complicate things any more.  Instead of multiplying the
octets by 16777216, 65536, 256, and 1, we just multiply them by 8388608,
32768, 128, and .5.  Since shell arithmetic can't always handle fractions,
we'd need to multiply within procmail ... oh, that's fun stuff.

Yes, let's just farm the task out to a program that does arithmetic.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>