On May 2, 2011, at 10:32 AM, Mr Dash Four wrote:

> 
>> But C's default input radix is 10. In tcdevices and tcrules file, the 
>> default input radix is 16. So the '0x' is only required in those cases where 
>> there is an ambiguity in the syntax; e.g., when a00 can be interpreted as a 
>> hex number or as an interface name.
> Not if it is followed by a colon (:) it isn't. Anyway, whatever you decide 
> what the final format should be, it needs to be the same regardless of which 
> file it appears in. In other words, is it "A", "0A" (00000A too?) or "0xA" 
> (or any of these?)? I need clarity.
> 
>> I can't now suddenly require all numbers in those files to be prefaced by 0x.
>>  
> It was your idea to put the "0x" in front of these numbers, not mine, so, 
> stop complaining! Whatever you decide the format should be let me know so 
> that I could test it.

The final format is:

a) The 0x prefix is neither required nor accepted when referring to devices.
b) In the tcclasses file, if the token preceding the first ":" matches the name 
of a device defined in the tcdevices file, then it is assumed to be an 
interface name. Otherwise, if it is composed of valid hex digits, then it is 
interpreted as a device number. Otherwise, it is an error.

This means that it is very unwise to have a device named "a" if it isn't device 
number 10 (hex a).

There is a preview of 4.4.19.2 at 
http://www.shorewall.net/pub/shorewall/development/4.4/shorewall-4.4.19 if you 
are interested in testing.

-Tom

Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________


Attachment: PGP.sig
Description: This is a digitally signed message part

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to