Changes in uspace/srv/net/tcp/conn.c [a2e3ee6:f597bc4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/conn.c
ra2e3ee6 rf597bc4 312 312 static bool tcp_socket_match(tcp_sock_t *sock, tcp_sock_t *patt) 313 313 { 314 if ((!inet_addr_is_any(&patt->addr)) && 315 (!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) 316 319 return false; 317 320 318 if ( (patt->port != TCP_PORT_ANY)&&319 (patt->port != sock->port))321 if (patt->port != TCP_PORT_ANY && 322 patt->port != sock->port) 320 323 return false; 321 324 … … 351 354 { 352 355 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_find_ref(%p)", sp); 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); 353 360 354 361 fibril_mutex_lock(&conn_list_lock); … … 357 364 tcp_conn_t *conn = list_get_instance(link, tcp_conn_t, link); 358 365 tcp_sockpair_t *csp = &conn->ident; 366 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); 359 370 360 371 if (tcp_sockpair_match(sp, csp)) {
Note:
See TracChangeset
for help on using the changeset viewer.