[OLSR-users] dot draw connection problem

Drew (spam-protected)
Fri Mar 31 00:25:43 CEST 2006


The netstat didn't return anything, and here are greps of the output of: 
strace -o strace_out9 -s 64 olsrd -d 9
Doesn't look like there's any bind() to 2004 happening.

AW1:/home/drew# grep 2004 strace_out9
write(1, "\"port\"/\"2004\"... ", 17)   = 17
write(1, "(DOT DRAW) listening on port: 2004\n", 35) = 35

AW1:/home/drew# grep socket strace_out9
socket(PF_FILE, SOCK_DGRAM, 0)          = 4
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
socket(PF_FILE, SOCK_DGRAM, 0)          = 5
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 5
write(1, "Binding socket 5 to device br0\n", 31) = 31
write(1, "Adding OLSR socket entry 5\n", 27) = 27
socket(PF_FILE, SOCK_DGRAM, 0)          = 6
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
write(1, "Binding socket 6 to device eth0\n", 32) = 32
write(1, "Adding OLSR socket entry 6\n", 27) = 27
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
write(1, "Adding OLSR socket entry 7\n", 27) = 27
socket(PF_FILE, SOCK_DGRAM, 0)          = 8
socket(PF_FILE, SOCK_DGRAM, 0)          = 8
socket(PF_FILE, SOCK_DGRAM, 0)          = 8
socket(PF_FILE, SOCK_DGRAM, 0)          = 8
socket(PF_FILE, SOCK_DGRAM, 0)          = 8
socket(PF_FILE, SOCK_DGRAM, 0)          = 8
write(1, "Closing sockets...\n", 19)    = 19

AW1:/home/drew# grep bind strace_out9
bind(5, {sa_family=AF_INET, sin_port=htons(698), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
bind(6, {sa_family=AF_INET, sin_port=htons(698), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
bind(7, {sa_family=AF_INET, sin_port=htons(8080), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0

AW1:/home/drew# grep listen strace_out9
write(1, "(HTTPINFO) listening on port: 8080\n", 35) = 35
listen(7, 1)                            = 0
write(1, "(DOT DRAW) listening on port: 2004\n", 35) = 35

AW1:/home/drew# grep accept strace_out9


>typos:
>  
>
>>a) What gives `netstat -an | gerp 2004`?
>>    
>>
>                              grep
>  
>
>>b) Could `strace` olsrd and look around the syscalls socket(), bind(),
>>   listen(), accept()what really happens there (if you don'ßt want to
>>   look into the source)?
>>    
>>
>
>	Bernd
>  
>





More information about the Olsr-users mailing list