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

Andres andres at telesip.net
Mon Sep 5 22:46:02 CEST 2005


Amos Nungu wrote:

> On 9/5/05, *Juha Heinanen* <jh at tutpro.com <mailto:jh at tutpro.com>> wrote:
>
>
>
>     did you search the archives?
>
>     -- juha
>
> --
>
> Yes,
>
> I searched the archives, both "users and dev" lists. May be my search 
> keyword "LCR" was not enough:(.
>
> I was able to get the table structure and all discussion went through 
> from february up to now, unfortunately, I didn't come across on how to 
> achive the int value table insertion or conversion.

  You can convert IP address a.b.c.d to unsigned integer using:

  int = d * 224 + c * 216 + b * 28 + a

>  
> Regards,
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>  
>





More information about the sr-users mailing list