On Thu, 30 Dec 2004 14:21:37 -0200 (BRST)
"Luiz Gustavo Anflor Pereira" <[EMAIL PROTECTED]> wrote:

> 
> Hello
> 
> I had this problem too. I found that in the newer versions of freeradius, the
> read_mainconfig function (in the src/main/mainconfig.c) tests if the port of
> radiusd is free. If it is not, then exits the program. The problem is that
> radzap uses the same function.
> 
> So, radiusd is running, you try to run radzap, then the function exits
> because the port is already in use. In older version there was no such test.
> 
> I solved this issue copying the entire function to a new one, and the new
> function does not exit the program. Then the radzap calls the new function,
> say read_mainconfig_zap.
> 
> Hope it will help you.
> 
> bye, Luiz Gustavo

Hello Luiz Gustavo,

thank you very much. You surely are right, because in the strace of
radzap-1.0.0 I found something about "Address already in use" and an error
message at the end:

socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
bind(3, {sa_family=AF_INET, sin_port=htons(1812),
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use)
close(3)                                = 0
open("/usr/local/var/log/radius/radius.log", O_WRONLY|O_APPEND|O_CREAT, 0666) =
3 fstat64(3, {st_mode=S_IFREG|0644, st_size=161614, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40019000 fstat64(3, {st_mode=S_IFREG|0644, st_size=161614, ...}) = 0
_llseek(3, 161614, [161614], SEEK_SET)  = 0
time(NULL)                              = 1104422506
write(3, "Thu Dec 30 17:01:46 2004 : Error"..., 116) = 116
close(3)                                = 0
munmap(0x40019000, 4096)                = 0
munmap(0x40018000, 4096)                = 0
exit_group(1)                           = ?

Happy new year,
Oliver

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to