Changes in uspace/srv/net/tcp/iqueue.c [1ddbf81:ef1ddad] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/iqueue.c
r1ddbf81 ref1ddad 84 84 tcp_iqueue_entry_t, link); 85 85 86 if (seq_no_seg_cmp(iqueue->conn, iqe->seg, qe->seg) <0)86 if (seq_no_seg_cmp(iqueue->conn, iqe->seg, qe->seg) >= 0) 87 87 break; 88 89 link = list_next(link, &iqueue->list);90 88 } 91 89 … … 94 92 else 95 93 list_append(&iqe->link, &iqueue->list); 96 }97 98 /** Remove segment from incoming queue.99 *100 * @param iqueue Incoming queue101 * @param seg Segment102 */103 void tcp_iqueue_remove_seg(tcp_iqueue_t *iqueue, tcp_segment_t *seg)104 {105 tcp_iqueue_entry_t *qe;106 link_t *link;107 108 log_msg(LOG_DEFAULT, LVL_NOTE, "tcp_iqueue_remove_seg()");109 110 link = list_first(&iqueue->list);111 while (link != NULL) {112 log_msg(LOG_DEFAULT, LVL_NOTE, "tcp_iqueue_remove_seg() - next");113 qe = list_get_instance(link,114 tcp_iqueue_entry_t, link);115 116 if (qe->seg == seg) {117 log_msg(LOG_DEFAULT, LVL_NOTE, "tcp_iqueue_remove_seg() - found, DONE");118 list_remove(&qe->link);119 free(qe);120 return;121 }122 123 link = list_next(link, &iqueue->list);124 }125 126 log_msg(LOG_DEFAULT, LVL_NOTE, "tcp_iqueue_remove_seg() - not found");127 assert(false);128 94 } 129 95
Note:
See TracChangeset
for help on using the changeset viewer.