Hi,
I have a question on how to enter values specifically ip_address in the gw table?
I would like to give a go this LCR module. I'm facing a problem where by: - 1. I created the tables (gw, lcr, gw_grp) 2. Inserting values into the tables ready for use.
The gw:ip_addr field is int data type, not able to store the decimal IP format!!
How to manage that?
Thanks in advance.
Hi Amos,
the ip is in integer format; for x.y.z.w -> (x<<24 + y<<16 + z<<8 + w)
regards, bogdan
Amos Nungu wrote:
Hi,
I have a question on how to enter values specifically ip_address in the gw table?
I would like to give a go this LCR module. I'm facing a problem where by: -
- I created the tables (gw, lcr, gw_grp)
- Inserting values into the tables ready for use.
The gw:ip_addr field is int data type, not able to store the decimal IP format!!
How to manage that?
Thanks in advance.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
The IP address must be stored in integer format. You can use openserctl to insert the GW. It allows entering the IP in dotted-quad format and does teh conversion.
regards klaus
Amos Nungu wrote:
Hi,
I have a question on how to enter values specifically ip_address in the gw table?
I would like to give a go this LCR module. I'm facing a problem where by: -
- I created the tables (gw, lcr, gw_grp)
- Inserting values into the tables ready for use.
The gw:ip_addr field is int data type, not able to store the decimal IP format!!
How to manage that?
Thanks in advance.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users