The following commit has been merged in the master branch: commit 0a3501d7c8e1ba7d05a0a6846f025c22a7ccdaa7 Author: Marek Lindner lindner_marek@yahoo.de Date: Tue Oct 3 18:35:26 2006 +0200
udp tunnel part VII
diff --git a/posix.c b/posix.c index 54b78ee..95fa7e3 100644 --- a/posix.c +++ b/posix.c @@ -589,12 +589,15 @@ void *gw_listen( void *arg ) {
list_for_each_safe(client_pos, client_pos_tmp, &batman_if->client_list) {
- max_sock =max_sock_min; + max_sock = max_sock_min;
gw_client = list_entry(client_pos, struct gw_client, list);
if ( FD_ISSET( gw_client->sock, &tmp_wait_sockets ) ) {
+ if ( debug_level >= 1 ) + addr_to_string(gw_client->addr.sin_addr.s_addr, str2, sizeof (str2)); + status = read( gw_client->sock, buff, sizeof( buff ) );
if ( status > 0 ) { @@ -614,12 +617,12 @@ void *gw_listen( void *arg ) { if ( status < 0 ) {
if ( debug_level >= 1 ) - printf( "Cannot read message from client: %s\n", strerror(errno) ); + printf( "Cannot read message from client %s: %s\n", str2, strerror(errno) );
} else {
if ( debug_level >= 1 ) - printf( "Client closed connection ...\n" ); + printf( "Client %s closed connection ...\n", str2 );
}
@@ -655,7 +658,7 @@ void *gw_listen( void *arg ) {
client_timeout = get_time();
- max_sock =max_sock_min; + max_sock = max_sock_min;
list_for_each_safe(client_pos, client_pos_tmp, &batman_if->client_list) {