Changes in uspace/srv/net/tcp/conn.c [b243da3:f597bc4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/conn.c
rb243da3 rf597bc4 312 312 static bool tcp_socket_match(tcp_sock_t *sock, tcp_sock_t *patt) 313 313 { 314 log_msg(LOG_DEFAULT, LVL_DEBUG2, 315 "tcp_socket_match(sock=(%u), pat=(%u))", sock->port, patt->port);316 317 if ( (!inet_addr_is_any(&patt->addr))&&318 (!inet_addr_compare(&patt->addr, &sock->addr)))314 log_msg(LOG_DEFAULT, LVL_DEBUG2, "tcp_socket_match(sock=(%x,%u), pat=(%x,%u))", 315 sock->addr.ipv4, sock->port, patt->addr.ipv4, patt->port); 316 317 if (patt->addr.ipv4 != TCP_IPV4_ANY && 318 patt->addr.ipv4 != sock->addr.ipv4) 319 319 return false; 320 320 321 if ( (patt->port != TCP_PORT_ANY)&&322 (patt->port != sock->port))321 if (patt->port != TCP_PORT_ANY && 322 patt->port != sock->port) 323 323 return false; 324 324 … … 355 355 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_find_ref(%p)", sp); 356 356 357 log_msg(LOG_DEFAULT, LVL_DEBUG2, "compare conn (f:(%u), l:(%u))", 358 sp->foreign.port, sp->local.port); 357 log_msg(LOG_DEFAULT, LVL_DEBUG2, "compare conn (f:(%x,%u), l:(%x,%u))", 358 sp->foreign.addr.ipv4, sp->foreign.port, 359 sp->local.addr.ipv4, sp->local.port); 359 360 360 361 fibril_mutex_lock(&conn_list_lock); 361 362 362 list_foreach(conn_list, link, tcp_conn_t, conn) { 363 list_foreach(conn_list, link) { 364 tcp_conn_t *conn = list_get_instance(link, tcp_conn_t, link); 363 365 tcp_sockpair_t *csp = &conn->ident; 364 366 365 log_msg(LOG_DEFAULT, LVL_DEBUG2, " - with (f:(%u), l:(%u))", 366 csp->foreign.port, csp->local.port); 367 log_msg(LOG_DEFAULT, LVL_DEBUG2, " - with (f:(%x,%u), l:(%x,%u))", 368 csp->foreign.addr.ipv4, csp->foreign.port, 369 csp->local.addr.ipv4, csp->local.port); 367 370 368 371 if (tcp_sockpair_match(sp, csp)) { … … 381 384 * @param conn Connection 382 385 */ 383 void tcp_conn_reset(tcp_conn_t *conn)386 static void tcp_conn_reset(tcp_conn_t *conn) 384 387 { 385 388 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_reset()", conn->name);
Note:
See TracChangeset
for help on using the changeset viewer.