[Serusers] Re: LCR usage (How to enter data in gw table?)

Bruno Lopes F. Cabral bruno at openline.com.br
Tue Sep 6 15:21:49 CEST 2005


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) ?

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




More information about the sr-users mailing list