Changeset cf3aee19 in mainline for uspace/srv/net/tcp/rqueue.c
- Timestamp:
- 2015-06-17T23:45:24Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 523b17a
- Parents:
- fc7bf19 (diff), 2654afb (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/rqueue.c
rfc7bf19 rcf3aee19 1 1 /* 2 * Copyright (c) 201 1Jiri Svoboda2 * Copyright (c) 2015 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 67 67 * This is for testing purposes only. 68 68 * 69 * @param sp Socket pair, oriented for transmission69 * @param sp Endpoint pair, oriented for transmission 70 70 * @param seg Segment 71 71 */ 72 void tcp_rqueue_bounce_seg( tcp_sockpair_t *sp, tcp_segment_t *seg)72 void tcp_rqueue_bounce_seg(inet_ep2_t *epp, tcp_segment_t *seg) 73 73 { 74 tcp_sockpair_t rident;74 inet_ep2_t rident; 75 75 76 76 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_rqueue_bounce_seg()"); … … 80 80 tcp_segment_t *dseg; 81 81 82 if (tcp_pdu_encode( sp, seg, &pdu) != EOK) {82 if (tcp_pdu_encode(epp, seg, &pdu) != EOK) { 83 83 log_msg(LOG_DEFAULT, LVL_WARN, "Not enough memory. Segment dropped."); 84 84 return; … … 97 97 #else 98 98 /* Reverse the identification */ 99 tcp_ sockpair_flipped(sp, &rident);99 tcp_ep2_flipped(epp, &rident); 100 100 101 101 /* Insert segment back into rqueue */ … … 106 106 /** Insert segment into receive queue. 107 107 * 108 * @param sp Socket pair, oriented for reception108 * @param epp Endpoint pair, oriented for reception 109 109 * @param seg Segment 110 110 */ 111 void tcp_rqueue_insert_seg( tcp_sockpair_t *sp, tcp_segment_t *seg)111 void tcp_rqueue_insert_seg(inet_ep2_t *epp, tcp_segment_t *seg) 112 112 { 113 113 tcp_rqueue_entry_t *rqe; … … 122 122 } 123 123 124 rqe-> sp = *sp;124 rqe->epp = *epp; 125 125 rqe->seg = seg; 126 126 … … 140 140 rqe = list_get_instance(link, tcp_rqueue_entry_t, link); 141 141 142 tcp_as_segment_arrived(&rqe-> sp, rqe->seg);142 tcp_as_segment_arrived(&rqe->epp, rqe->seg); 143 143 free(rqe); 144 144 }
Note:
See TracChangeset
for help on using the changeset viewer.