[Openvpn-devel] logging remote ip disconnection

2004-09-20 Thread Kisero
Hi, ive send two mails already and no answere..if imasking something
wrong just tell me :)

i need to know when a remote ip address disconnect..i could not find
anything on the man, or raising the verb level , or nothing. so i
start looking at the source code to get a patch for myselfe..im not
goot at al in #c , so maybe someone can help me out with this...
:)

i saw that in socket.c at line 1128 you got a msg to the log

msg (D_CLOSE, "TCP/UDP: Closing socket");

when the peer goes down...

the function wich calls that,  gets "link_socket_close (struct
link_socket *sock)" as a paramter, in the link_socket structure ,
there is a memeber wich is another struct called "struct sockaddr_in"
wich i think has the src ip address of the end point vpn wich is
closing the socket.

but i couldnt make it work...
does anyone have any idea? i dont knwo what else to do really.
thanks a lot



[Openvpn-devel] logging remote peer disconnection

2004-09-20 Thread Kisero
Hi, ive send two mails already and no answere..if imasking something
wrong just tell me :)

i need to know when a remote ip address disconnect..i could not find
anything on the man, or raising the verb level , or nothing. so i
start looking at the source code to get a patch for myselfe..im not
goot at al in #c , so maybe someone can help me out with this...
:)

i saw that in socket.c at line 1128 you got a msg to the log

msg (D_CLOSE, "TCP/UDP: Closing socket");

when the peer goes down...

the function wich calls that,  gets "link_socket_close (struct
link_socket *sock)" as a paramter, in the link_socket structure ,
there is a memeber wich is another struct called "struct sockaddr_in"
wich i think has the src ip address of the end point vpn wich is
closing the socket.

but i couldnt make it work...
does anyone have any idea? i dont knwo what else to do really.
thanks a lot