Tom Eastep wrote:
> Brian J. Murrell wrote:
>> On Wed, 2007-12-19 at 15:02 -0800, Tom Eastep wrote:
>>> I don't have time for puzzles. What input did you give to Shorewall to
>>> produce whatever problem you are trying to report?
>> Sorry.  I should have reproduced more of the subject into the message.
>> The results which can be too large for busybox's /bin/sh is from
>> decodeaddr.  I believe the address input was 172.16.0.0 but I'm sure any
>> address nearer the top end of the ipv4 address space would yield the
>> same result.
> 
> 172.16.0.0 decodes to 0x100000. Does BusyBox on that architecture only
> support 20-bit arithmetic?
>

It's rather odd, actually -- the shell calculates that number, yet it chokes
when the same number appears as an argument to 'test'.

What is going on here is that IP addresses in dot-4 notation are converted
to the equivalent 32-bit integer. Some shells only do 32-bit signed
arithmetic which produces anomalies at 128.0.0.0 but I've not seen cases
where numbers of this magnitude caused problems.

-Tom
-- 
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to