Changeset 97c7682 in mainline for uspace/srv/net/tcp/conn.c
- Timestamp:
- 2012-07-14T11:18:40Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 804d9b6
- Parents:
- 0747468 (diff), f0348c8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/conn.c
r0747468 r97c7682 184 184 void tcp_conn_addref(tcp_conn_t *conn) 185 185 { 186 log_msg(LVL_DEBUG , "%s: tcp_conn_addref(%p)", conn->name, conn);186 log_msg(LVL_DEBUG2, "%s: tcp_conn_addref(%p)", conn->name, conn); 187 187 atomic_inc(&conn->refcnt); 188 188 } … … 196 196 void tcp_conn_delref(tcp_conn_t *conn) 197 197 { 198 log_msg(LVL_DEBUG , "%s: tcp_conn_delref(%p)", conn->name, conn);198 log_msg(LVL_DEBUG2, "%s: tcp_conn_delref(%p)", conn->name, conn); 199 199 200 200 if (atomic_predec(&conn->refcnt) == 0) … … 309 309 } 310 310 311 /** Compare two sockets. 312 * 313 * Two sockets are equal if the address is equal and the port number 314 * is equal. 315 */ 311 /** Match socket with pattern. */ 316 312 static bool tcp_socket_match(tcp_sock_t *sock, tcp_sock_t *patt) 317 313 { 318 log_msg(LVL_DEBUG , "tcp_socket_match(sock=(%x,%u), pat=(%x,%u))",314 log_msg(LVL_DEBUG2, "tcp_socket_match(sock=(%x,%u), pat=(%x,%u))", 319 315 sock->addr.ipv4, sock->port, patt->addr.ipv4, patt->port); 320 316 … … 327 323 return false; 328 324 329 log_msg(LVL_DEBUG , " -> match");325 log_msg(LVL_DEBUG2, " -> match"); 330 326 331 327 return true; 332 328 } 333 329 334 /** Match socket with pattern. */330 /** Match socket pair with pattern. */ 335 331 static bool tcp_sockpair_match(tcp_sockpair_t *sp, tcp_sockpair_t *pattern) 336 332 { 337 log_msg(LVL_DEBUG , "tcp_sockpair_match(%p, %p)", sp, pattern);333 log_msg(LVL_DEBUG2, "tcp_sockpair_match(%p, %p)", sp, pattern); 338 334 339 335 if (!tcp_socket_match(&sp->local, &pattern->local)) … … 357 353 tcp_conn_t *tcp_conn_find_ref(tcp_sockpair_t *sp) 358 354 { 359 log_msg(LVL_DEBUG, "tcp_conn_find (%p)", sp);355 log_msg(LVL_DEBUG, "tcp_conn_find_ref(%p)", sp); 360 356 361 357 fibril_mutex_lock(&conn_list_lock); … … 364 360 tcp_conn_t *conn = list_get_instance(link, tcp_conn_t, link); 365 361 tcp_sockpair_t *csp = &conn->ident; 366 log_msg(LVL_DEBUG , "compare with conn (f:(%x,%u), l:(%x,%u))",362 log_msg(LVL_DEBUG2, "compare with conn (f:(%x,%u), l:(%x,%u))", 367 363 csp->foreign.addr.ipv4, csp->foreign.port, 368 364 csp->local.addr.ipv4, csp->local.port);
Note:
See TracChangeset
for help on using the changeset viewer.