Changes in uspace/srv/net/tcp/conn.c [f597bc4:b243da3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/conn.c
rf597bc4 rb243da3 312 312 static bool tcp_socket_match(tcp_sock_t *sock, tcp_sock_t *patt) 313 313 { 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)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))) 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:(%x,%u), l:(%x,%u))", 358 sp->foreign.addr.ipv4, sp->foreign.port, 359 sp->local.addr.ipv4, sp->local.port); 357 log_msg(LOG_DEFAULT, LVL_DEBUG2, "compare conn (f:(%u), l:(%u))", 358 sp->foreign.port, sp->local.port); 360 359 361 360 fibril_mutex_lock(&conn_list_lock); 362 361 363 list_foreach(conn_list, link) { 364 tcp_conn_t *conn = list_get_instance(link, tcp_conn_t, link); 362 list_foreach(conn_list, link, tcp_conn_t, conn) { 365 363 tcp_sockpair_t *csp = &conn->ident; 366 364 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); 365 log_msg(LOG_DEFAULT, LVL_DEBUG2, " - with (f:(%u), l:(%u))", 366 csp->foreign.port, csp->local.port); 370 367 371 368 if (tcp_sockpair_match(sp, csp)) { … … 384 381 * @param conn Connection 385 382 */ 386 staticvoid tcp_conn_reset(tcp_conn_t *conn)383 void tcp_conn_reset(tcp_conn_t *conn) 387 384 { 388 385 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_reset()", conn->name);
Note:
See TracChangeset
for help on using the changeset viewer.