Hello,
I'm using the lcr module with prefix capability to make failover. When I use a "big" IP, the lcr module gives back a wrong IP.
It was very hard for me to compile lcr with prefix capability and ser-0.9.3... has anyone of you a lcr module with prefix-support for ser-0.9.3 and without this bug?
Thanks!
Sebastian
Hi!
If the last number of the IP is greater than 127, lcr puts out 255.255.255.0 or something like that.
I found something in google and I changed "atoi()" to "atoll()" in the file /usr/src/ser-0.x.x/modules/postgres/db_val.c.
I hope that will fix that problem... or not?
Thanks!
Sebastian
----- Original Message ----- From: "Juha Heinanen" jh@tutpro.com To: "Sebastian Kühner" skuehner@veraza.com Cc: serusers@lists.iptel.org Sent: Friday, September 23, 2005 5:40 AM Subject: Re: [Serusers] lcr
Sebastian Kühner said:
It was very hard for me to compile lcr with prefix capability and ser-0.9.3... has anyone of you a lcr module with prefix-support for ser-0.9.3 and without this bug?
which bug? how does it show up?
-- juha
Sebastian Kühner writes:
If the last number of the IP is greater than 127, lcr puts out 255.255.255.0 or something like that.
I found something in google and I changed "atoi()" to "atoll()" in the file /usr/src/ser-0.x.x/modules/postgres/db_val.c.
I hope that will fix that problem... or not?
if there is a bug, looks like it is in postgres module, not in lcr module.
-- juha
Yes. There is a problem in postgres module with unsigned intergers. http://openser.org/pipermail/devel/2005-July/000279.html
btw: postgresql itself does not support unsigned int. Thus, you have to use big int in postgres table definitions.
regards klaus
Sebastian Kühner wrote:
Hi!
If the last number of the IP is greater than 127, lcr puts out 255.255.255.0 or something like that.
I found something in google and I changed "atoi()" to "atoll()" in the file /usr/src/ser-0.x.x/modules/postgres/db_val.c.
I hope that will fix that problem... or not?
Thanks!
Sebastian
----- Original Message ----- From: "Juha Heinanen" jh@tutpro.com To: "Sebastian Kühner" skuehner@veraza.com Cc: serusers@lists.iptel.org Sent: Friday, September 23, 2005 5:40 AM Subject: Re: [Serusers] lcr
Sebastian Kühner said:
It was very hard for me to compile lcr with prefix capability and ser-0.9.3... has anyone of you a lcr module with prefix-support for ser-0.9.3 and without this bug?
which bug? how does it show up?
-- juha
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers