[nos-bbs] Situation: ifconfig port netmask <format>
wa7nwp at jnos.org
wa7nwp at jnos.org
Fri Sep 22 13:39:08 EDT 2006
>> ifconfig tun0 netmask 255.0.0.0
>
> Is wrong in the sense that it is not documented that way, also I
> took a look at the code. The passed address argument is directly
> handed to the htol (hex to long) conversion function. So definitely
> one is not supposed to use the decimal number convention when passing
It finally dawned on me just last week that that's being treat the same as:
ifconfig tun0 netmask 255
And the resulting netmask is:
0x000000FF
More information about the nos-bbs
mailing list