Changes in uspace/srv/net/tcp/conn.c [f0a2720:a1a101d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/conn.c
rf0a2720 ra1a101d 164 164 static void tcp_conn_free(tcp_conn_t *conn) 165 165 { 166 log_msg(L VL_DEBUG, "%s: tcp_conn_free(%p)", conn->name, conn);166 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_free(%p)", conn->name, conn); 167 167 tcp_tqueue_fini(&conn->retransmit); 168 168 … … 184 184 void tcp_conn_addref(tcp_conn_t *conn) 185 185 { 186 log_msg(L VL_DEBUG2, "%s: tcp_conn_addref(%p)", conn->name, conn);186 log_msg(LOG_DEFAULT, 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(L VL_DEBUG2, "%s: tcp_conn_delref(%p)", conn->name, conn);198 log_msg(LOG_DEFAULT, LVL_DEBUG2, "%s: tcp_conn_delref(%p)", conn->name, conn); 199 199 200 200 if (atomic_predec(&conn->refcnt) == 0) … … 211 211 void tcp_conn_delete(tcp_conn_t *conn) 212 212 { 213 log_msg(L VL_DEBUG, "%s: tcp_conn_delete(%p)", conn->name, conn);213 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_delete(%p)", conn->name, conn); 214 214 215 215 assert(conn->deleted == false); … … 245 245 tcp_cstate_t old_state; 246 246 247 log_msg(L VL_DEBUG, "tcp_conn_state_set(%p)", conn);247 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_state_set(%p)", conn); 248 248 249 249 old_state = conn->cstate; … … 253 253 /* Run user callback function */ 254 254 if (conn->cstate_cb != NULL) { 255 log_msg(L VL_DEBUG, "tcp_conn_state_set() - run user CB");255 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_state_set() - run user CB"); 256 256 conn->cstate_cb(conn, conn->cstate_cb_arg); 257 257 } else { 258 log_msg(L VL_DEBUG, "tcp_conn_state_set() - no user CB");258 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_state_set() - no user CB"); 259 259 } 260 260 … … 293 293 case st_syn_received: 294 294 case st_established: 295 log_msg(L VL_DEBUG, "%s: FIN sent -> Fin-Wait-1", conn->name);295 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: FIN sent -> Fin-Wait-1", conn->name); 296 296 tcp_conn_state_set(conn, st_fin_wait_1); 297 297 break; 298 298 case st_close_wait: 299 log_msg(L VL_DEBUG, "%s: FIN sent -> Last-Ack", conn->name);299 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: FIN sent -> Last-Ack", conn->name); 300 300 tcp_conn_state_set(conn, st_last_ack); 301 301 break; 302 302 default: 303 log_msg(L VL_ERROR, "%s: Connection state %d", conn->name,303 log_msg(LOG_DEFAULT, LVL_ERROR, "%s: Connection state %d", conn->name, 304 304 conn->cstate); 305 305 assert(false); … … 312 312 static bool tcp_socket_match(tcp_sock_t *sock, tcp_sock_t *patt) 313 313 { 314 log_msg(L VL_DEBUG2, "tcp_socket_match(sock=(%x,%u), pat=(%x,%u))",314 log_msg(LOG_DEFAULT, LVL_DEBUG2, "tcp_socket_match(sock=(%x,%u), pat=(%x,%u))", 315 315 sock->addr.ipv4, sock->port, patt->addr.ipv4, patt->port); 316 316 … … 323 323 return false; 324 324 325 log_msg(L VL_DEBUG2, " -> match");325 log_msg(LOG_DEFAULT, LVL_DEBUG2, " -> match"); 326 326 327 327 return true; … … 331 331 static bool tcp_sockpair_match(tcp_sockpair_t *sp, tcp_sockpair_t *pattern) 332 332 { 333 log_msg(L VL_DEBUG2, "tcp_sockpair_match(%p, %p)", sp, pattern);333 log_msg(LOG_DEFAULT, LVL_DEBUG2, "tcp_sockpair_match(%p, %p)", sp, pattern); 334 334 335 335 if (!tcp_socket_match(&sp->local, &pattern->local)) … … 353 353 tcp_conn_t *tcp_conn_find_ref(tcp_sockpair_t *sp) 354 354 { 355 log_msg(L VL_DEBUG, "tcp_conn_find_ref(%p)", sp);355 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_find_ref(%p)", sp); 356 356 357 357 fibril_mutex_lock(&conn_list_lock); … … 360 360 tcp_conn_t *conn = list_get_instance(link, tcp_conn_t, link); 361 361 tcp_sockpair_t *csp = &conn->ident; 362 log_msg(L VL_DEBUG2, "compare with conn (f:(%x,%u), l:(%x,%u))",362 log_msg(LOG_DEFAULT, LVL_DEBUG2, "compare with conn (f:(%x,%u), l:(%x,%u))", 363 363 csp->foreign.addr.ipv4, csp->foreign.port, 364 364 csp->local.addr.ipv4, csp->local.port); … … 380 380 static void tcp_conn_reset(tcp_conn_t *conn) 381 381 { 382 log_msg(L VL_DEBUG, "%s: tcp_conn_reset()", conn->name);382 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_reset()", conn->name); 383 383 tcp_conn_state_set(conn, st_closed); 384 384 conn->reset = true; … … 398 398 { 399 399 /* TODO */ 400 log_msg(L VL_DEBUG, "%s: tcp_reset_signal()", conn->name);400 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_reset_signal()", conn->name); 401 401 } 402 402 … … 422 422 return true; 423 423 case st_closed: 424 log_msg(L VL_WARN, "state=%d", (int) conn->cstate);424 log_msg(LOG_DEFAULT, LVL_WARN, "state=%d", (int) conn->cstate); 425 425 assert(false); 426 426 } … … 436 436 static void tcp_conn_sa_listen(tcp_conn_t *conn, tcp_segment_t *seg) 437 437 { 438 log_msg(L VL_DEBUG, "tcp_conn_sa_listen(%p, %p)", conn, seg);438 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_sa_listen(%p, %p)", conn, seg); 439 439 440 440 if ((seg->ctrl & CTL_RST) != 0) { 441 log_msg(L VL_DEBUG, "Ignoring incoming RST.");441 log_msg(LOG_DEFAULT, LVL_DEBUG, "Ignoring incoming RST."); 442 442 return; 443 443 } 444 444 445 445 if ((seg->ctrl & CTL_ACK) != 0) { 446 log_msg(L VL_DEBUG, "Incoming ACK, send acceptable RST.");446 log_msg(LOG_DEFAULT, LVL_DEBUG, "Incoming ACK, send acceptable RST."); 447 447 tcp_reply_rst(&conn->ident, seg); 448 448 return; … … 450 450 451 451 if ((seg->ctrl & CTL_SYN) == 0) { 452 log_msg(L VL_DEBUG, "SYN not present. Ignoring segment.");453 return; 454 } 455 456 log_msg(L VL_DEBUG, "Got SYN, sending SYN, ACK.");452 log_msg(LOG_DEFAULT, LVL_DEBUG, "SYN not present. Ignoring segment."); 453 return; 454 } 455 456 log_msg(LOG_DEFAULT, LVL_DEBUG, "Got SYN, sending SYN, ACK."); 457 457 458 458 conn->rcv_nxt = seg->seq + 1; … … 460 460 461 461 462 log_msg(L VL_DEBUG, "rcv_nxt=%u", conn->rcv_nxt);462 log_msg(LOG_DEFAULT, LVL_DEBUG, "rcv_nxt=%u", conn->rcv_nxt); 463 463 464 464 if (seg->len > 1) 465 log_msg(L VL_WARN, "SYN combined with data, ignoring data.");465 log_msg(LOG_DEFAULT, LVL_WARN, "SYN combined with data, ignoring data."); 466 466 467 467 /* XXX select ISS */ … … 493 493 static void tcp_conn_sa_syn_sent(tcp_conn_t *conn, tcp_segment_t *seg) 494 494 { 495 log_msg(L VL_DEBUG, "tcp_conn_sa_syn_sent(%p, %p)", conn, seg);495 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_sa_syn_sent(%p, %p)", conn, seg); 496 496 497 497 if ((seg->ctrl & CTL_ACK) != 0) { 498 log_msg(L VL_DEBUG, "snd_una=%u, seg.ack=%u, snd_nxt=%u",498 log_msg(LOG_DEFAULT, LVL_DEBUG, "snd_una=%u, seg.ack=%u, snd_nxt=%u", 499 499 conn->snd_una, seg->ack, conn->snd_nxt); 500 500 if (!seq_no_ack_acceptable(conn, seg->ack)) { 501 501 if ((seg->ctrl & CTL_RST) == 0) { 502 log_msg(L VL_WARN, "ACK not acceptable, send RST");502 log_msg(LOG_DEFAULT, LVL_WARN, "ACK not acceptable, send RST"); 503 503 tcp_reply_rst(&conn->ident, seg); 504 504 } else { 505 log_msg(L VL_WARN, "RST,ACK not acceptable, drop");505 log_msg(LOG_DEFAULT, LVL_WARN, "RST,ACK not acceptable, drop"); 506 506 } 507 507 return; … … 512 512 /* If we get here, we have either an acceptable ACK or no ACK */ 513 513 if ((seg->ctrl & CTL_ACK) != 0) { 514 log_msg(L VL_DEBUG, "%s: Connection reset. -> Closed",514 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: Connection reset. -> Closed", 515 515 conn->name); 516 516 /* Reset connection */ … … 518 518 return; 519 519 } else { 520 log_msg(L VL_DEBUG, "%s: RST without ACK, drop",520 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: RST without ACK, drop", 521 521 conn->name); 522 522 return; … … 527 527 528 528 if ((seg->ctrl & CTL_SYN) == 0) { 529 log_msg(L VL_DEBUG, "No SYN bit, ignoring segment.");529 log_msg(LOG_DEFAULT, LVL_DEBUG, "No SYN bit, ignoring segment."); 530 530 return; 531 531 } … … 544 544 } 545 545 546 log_msg(L VL_DEBUG, "Sent SYN, got SYN.");546 log_msg(LOG_DEFAULT, LVL_DEBUG, "Sent SYN, got SYN."); 547 547 548 548 /* … … 551 551 * will always be accepted as new window setting. 552 552 */ 553 log_msg(L VL_DEBUG, "SND.WND := %" PRIu32 ", SND.WL1 := %" PRIu32 ", "553 log_msg(LOG_DEFAULT, LVL_DEBUG, "SND.WND := %" PRIu32 ", SND.WL1 := %" PRIu32 ", " 554 554 "SND.WL2 = %" PRIu32, seg->wnd, seg->seq, seg->seq); 555 555 conn->snd_wnd = seg->wnd; … … 558 558 559 559 if (seq_no_syn_acked(conn)) { 560 log_msg(L VL_DEBUG, "%s: syn acked -> Established", conn->name);560 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: syn acked -> Established", conn->name); 561 561 tcp_conn_state_set(conn, st_established); 562 562 tcp_tqueue_ctrl_seg(conn, CTL_ACK /* XXX */); 563 563 } else { 564 log_msg(L VL_DEBUG, "%s: syn not acked -> Syn-Received",564 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: syn not acked -> Syn-Received", 565 565 conn->name); 566 566 tcp_conn_state_set(conn, st_syn_received); … … 582 582 tcp_segment_t *pseg; 583 583 584 log_msg(L VL_DEBUG, "tcp_conn_sa_seq(%p, %p)", conn, seg);584 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_sa_seq(%p, %p)", conn, seg); 585 585 586 586 /* Discard unacceptable segments ("old duplicates") */ 587 587 if (!seq_no_segment_acceptable(conn, seg)) { 588 log_msg(L VL_DEBUG, "Replying ACK to unacceptable segment.");588 log_msg(LOG_DEFAULT, LVL_DEBUG, "Replying ACK to unacceptable segment."); 589 589 tcp_tqueue_ctrl_seg(conn, CTL_ACK); 590 590 tcp_segment_delete(seg); … … 682 682 assert(seq_no_in_rcv_wnd(conn, seg->seq)); 683 683 684 log_msg(L VL_WARN, "SYN is in receive window, should send reset. XXX");684 log_msg(LOG_DEFAULT, LVL_WARN, "SYN is in receive window, should send reset. XXX"); 685 685 686 686 /* … … 705 705 if (!seq_no_ack_acceptable(conn, seg->ack)) { 706 706 /* ACK is not acceptable, send RST. */ 707 log_msg(L VL_WARN, "Segment ACK not acceptable, sending RST.");707 log_msg(LOG_DEFAULT, LVL_WARN, "Segment ACK not acceptable, sending RST."); 708 708 tcp_reply_rst(&conn->ident, seg); 709 709 tcp_segment_delete(seg); … … 711 711 } 712 712 713 log_msg(L VL_DEBUG, "%s: SYN ACKed -> Established", conn->name);713 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: SYN ACKed -> Established", conn->name); 714 714 715 715 tcp_conn_state_set(conn, st_established); … … 730 730 static cproc_t tcp_conn_seg_proc_ack_est(tcp_conn_t *conn, tcp_segment_t *seg) 731 731 { 732 log_msg(L VL_DEBUG, "tcp_conn_seg_proc_ack_est(%p, %p)", conn, seg);733 734 log_msg(L VL_DEBUG, "SEG.ACK=%u, SND.UNA=%u, SND.NXT=%u",732 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_seg_proc_ack_est(%p, %p)", conn, seg); 733 734 log_msg(LOG_DEFAULT, LVL_DEBUG, "SEG.ACK=%u, SND.UNA=%u, SND.NXT=%u", 735 735 (unsigned)seg->ack, (unsigned)conn->snd_una, 736 736 (unsigned)conn->snd_nxt); 737 737 738 738 if (!seq_no_ack_acceptable(conn, seg->ack)) { 739 log_msg(L VL_DEBUG, "ACK not acceptable.");739 log_msg(LOG_DEFAULT, LVL_DEBUG, "ACK not acceptable."); 740 740 if (!seq_no_ack_duplicate(conn, seg->ack)) { 741 log_msg(L VL_WARN, "Not acceptable, not duplicate. "741 log_msg(LOG_DEFAULT, LVL_WARN, "Not acceptable, not duplicate. " 742 742 "Send ACK and drop."); 743 743 /* Not acceptable, not duplicate. Send ACK and drop. */ … … 746 746 return cp_done; 747 747 } else { 748 log_msg(L VL_DEBUG, "Ignoring duplicate ACK.");748 log_msg(LOG_DEFAULT, LVL_DEBUG, "Ignoring duplicate ACK."); 749 749 } 750 750 } else { … … 758 758 conn->snd_wl2 = seg->ack; 759 759 760 log_msg(L VL_DEBUG, "Updating send window, SND.WND=%" PRIu32760 log_msg(LOG_DEFAULT, LVL_DEBUG, "Updating send window, SND.WND=%" PRIu32 761 761 ", SND.WL1=%" PRIu32 ", SND.WL2=%" PRIu32, 762 762 conn->snd_wnd, conn->snd_wl1, conn->snd_wl2); … … 785 785 786 786 if (conn->fin_is_acked) { 787 log_msg(L VL_DEBUG, "%s: FIN acked -> Fin-Wait-2", conn->name);787 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: FIN acked -> Fin-Wait-2", conn->name); 788 788 tcp_conn_state_set(conn, st_fin_wait_2); 789 789 } … … 850 850 851 851 if (conn->fin_is_acked) { 852 log_msg(L VL_DEBUG, "%s: FIN acked -> Closed", conn->name);852 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: FIN acked -> Closed", conn->name); 853 853 tcp_conn_remove(conn); 854 854 tcp_conn_state_set(conn, st_closed); … … 881 881 static cproc_t tcp_conn_seg_proc_ack(tcp_conn_t *conn, tcp_segment_t *seg) 882 882 { 883 log_msg(L VL_DEBUG, "%s: tcp_conn_seg_proc_ack(%p, %p)",883 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_seg_proc_ack(%p, %p)", 884 884 conn->name, conn, seg); 885 885 886 886 if ((seg->ctrl & CTL_ACK) == 0) { 887 log_msg(L VL_WARN, "Segment has no ACK. Dropping.");887 log_msg(LOG_DEFAULT, LVL_WARN, "Segment has no ACK. Dropping."); 888 888 tcp_segment_delete(seg); 889 889 return cp_done; … … 940 940 size_t xfer_size; 941 941 942 log_msg(L VL_DEBUG, "%s: tcp_conn_seg_proc_text(%p, %p)",942 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_seg_proc_text(%p, %p)", 943 943 conn->name, conn, seg); 944 944 … … 982 982 fibril_condvar_broadcast(&conn->rcv_buf_cv); 983 983 984 log_msg(L VL_DEBUG, "Received %zu bytes of data.", xfer_size);984 log_msg(LOG_DEFAULT, LVL_DEBUG, "Received %zu bytes of data.", xfer_size); 985 985 986 986 /* Advance RCV.NXT */ … … 998 998 tcp_conn_trim_seg_to_wnd(conn, seg); 999 999 } else { 1000 log_msg(L VL_DEBUG, "%s: Nothing left in segment, dropping "1001 "(xfer_size=%zu, SEG.LEN=% " PRIu32 ", seg->ctrl=%u)",1002 conn->name, xfer_size, seg->len, (unsigned int)seg->ctrl);1000 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: Nothing left in segment, dropping " 1001 "(xfer_size=%zu, SEG.LEN=%zu, seg->ctrl=%u)", 1002 conn->name, xfer_size, seg->len, (unsigned)seg->ctrl); 1003 1003 /* Nothing left in segment */ 1004 1004 tcp_segment_delete(seg); … … 1018 1018 static cproc_t tcp_conn_seg_proc_fin(tcp_conn_t *conn, tcp_segment_t *seg) 1019 1019 { 1020 log_msg(L VL_DEBUG, "%s: tcp_conn_seg_proc_fin(%p, %p)",1020 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_seg_proc_fin(%p, %p)", 1021 1021 conn->name, conn, seg); 1022 log_msg(L VL_DEBUG, " seg->len=%zu, seg->ctl=%u", (size_t) seg->len,1022 log_msg(LOG_DEFAULT, LVL_DEBUG, " seg->len=%zu, seg->ctl=%u", (size_t) seg->len, 1023 1023 (unsigned) seg->ctrl); 1024 1024 1025 1025 /* Only process FIN if no text is left in segment. */ 1026 1026 if (tcp_segment_text_size(seg) == 0 && (seg->ctrl & CTL_FIN) != 0) { 1027 log_msg(L VL_DEBUG, " - FIN found in segment.");1027 log_msg(LOG_DEFAULT, LVL_DEBUG, " - FIN found in segment."); 1028 1028 1029 1029 /* Send ACK */ … … 1042 1042 case st_syn_received: 1043 1043 case st_established: 1044 log_msg(L VL_DEBUG, "%s: FIN received -> Close-Wait",1044 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: FIN received -> Close-Wait", 1045 1045 conn->name); 1046 1046 tcp_conn_state_set(conn, st_close_wait); 1047 1047 break; 1048 1048 case st_fin_wait_1: 1049 log_msg(L VL_DEBUG, "%s: FIN received -> Closing",1049 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: FIN received -> Closing", 1050 1050 conn->name); 1051 1051 tcp_conn_state_set(conn, st_closing); 1052 1052 break; 1053 1053 case st_fin_wait_2: 1054 log_msg(L VL_DEBUG, "%s: FIN received -> Time-Wait",1054 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: FIN received -> Time-Wait", 1055 1055 conn->name); 1056 1056 tcp_conn_state_set(conn, st_time_wait); … … 1091 1091 static void tcp_conn_seg_process(tcp_conn_t *conn, tcp_segment_t *seg) 1092 1092 { 1093 log_msg(L VL_DEBUG, "tcp_conn_seg_process(%p, %p)", conn, seg);1093 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_seg_process(%p, %p)", conn, seg); 1094 1094 tcp_segment_dump(seg); 1095 1095 … … 1097 1097 /* XXX Permit valid ACKs, URGs and RSTs */ 1098 1098 /* if (!seq_no_segment_acceptable(conn, seg)) { 1099 log_msg(L VL_WARN, "Segment not acceptable, dropping.");1099 log_msg(LOG_DEFAULT, LVL_WARN, "Segment not acceptable, dropping."); 1100 1100 if ((seg->ctrl & CTL_RST) == 0) { 1101 1101 tcp_tqueue_ctrl_seg(conn, CTL_ACK); … … 1131 1131 */ 1132 1132 if (seg->len > 0) { 1133 log_msg(L VL_DEBUG, "Re-insert segment %p. seg->len=%zu",1133 log_msg(LOG_DEFAULT, LVL_DEBUG, "Re-insert segment %p. seg->len=%zu", 1134 1134 seg, (size_t) seg->len); 1135 1135 tcp_iqueue_insert_seg(&conn->incoming, seg); … … 1146 1146 void tcp_conn_segment_arrived(tcp_conn_t *conn, tcp_segment_t *seg) 1147 1147 { 1148 log_msg(L VL_DEBUG, "%s: tcp_conn_segment_arrived(%p)",1148 log_msg(LOG_DEFAULT, LVL_DEBUG, "%c: tcp_conn_segment_arrived(%p)", 1149 1149 conn->name, seg); 1150 1150 … … 1165 1165 tcp_conn_sa_queue(conn, seg); break; 1166 1166 case st_closed: 1167 log_msg(L VL_DEBUG, "state=%d", (int) conn->cstate);1167 log_msg(LOG_DEFAULT, LVL_DEBUG, "state=%d", (int) conn->cstate); 1168 1168 assert(false); 1169 1169 } … … 1178 1178 tcp_conn_t *conn = (tcp_conn_t *) arg; 1179 1179 1180 log_msg(L VL_DEBUG, "tw_timeout_func(%p)", conn);1180 log_msg(LOG_DEFAULT, LVL_DEBUG, "tw_timeout_func(%p)", conn); 1181 1181 1182 1182 fibril_mutex_lock(&conn->lock); 1183 1183 1184 1184 if (conn->cstate == st_closed) { 1185 log_msg(L VL_DEBUG, "Connection already closed.");1185 log_msg(LOG_DEFAULT, LVL_DEBUG, "Connection already closed."); 1186 1186 fibril_mutex_unlock(&conn->lock); 1187 1187 tcp_conn_delref(conn); … … 1189 1189 } 1190 1190 1191 log_msg(L VL_DEBUG, "%s: TW Timeout -> Closed", conn->name);1191 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: TW Timeout -> Closed", conn->name); 1192 1192 tcp_conn_remove(conn); 1193 1193 tcp_conn_state_set(conn, st_closed); … … 1240 1240 void tcp_unexpected_segment(tcp_sockpair_t *sp, tcp_segment_t *seg) 1241 1241 { 1242 log_msg(L VL_DEBUG, "tcp_unexpected_segment(%p, %p)", sp, seg);1242 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_unexpected_segment(%p, %p)", sp, seg); 1243 1243 1244 1244 if ((seg->ctrl & CTL_RST) == 0) … … 1268 1268 tcp_segment_t *rseg; 1269 1269 1270 log_msg(L VL_DEBUG, "tcp_reply_rst(%p, %p)", sp, seg);1270 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_reply_rst(%p, %p)", sp, seg); 1271 1271 1272 1272 rseg = tcp_segment_make_rst(seg);
Note:
See TracChangeset
for help on using the changeset viewer.