[Serusers] Re: LCR usage (How to enter data in gw table?)
Klaus Darilion
klaus.mailinglists at pernau.at
Tue Sep 6 15:30:10 CEST 2005
Bruno Lopes F. Cabral wrote:
> Hello there
>
> sorry for my ignorance but in x86 (low ending machine)
> isn't it unsigned int = a*256^3 + b*256^2 + c*256 + d
> (or a>>24 + b>>16 + c>>8 + d) ?
yes, but AFAIK not in lcr module.
klaus
>
> Cheers
> !3runo
>
> Klaus Darilion wrote:
>
>>> You can convert IP address a.b.c.d to unsigned integer using:
>>>
>>> int = d * 224 + c * 216 + b * 28 + a
>>
>>
>>
>> I do not think that this will work. Try
>> a+b*256+c*65536+d*16777216
>
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
More information about the sr-users
mailing list