Changeset fb4d788 in mainline for uspace/srv/net/tcp/ncsim.c
- Timestamp:
- 2015-07-28T11:28:14Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6accc5cf
- Parents:
- df2bce3 (diff), 47726b5e (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/ncsim.c
rdf2bce3 rfb4d788 1 1 /* 2 * Copyright (c) 201 1Jiri Svoboda2 * Copyright (c) 2015 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 42 42 #include <async.h> 43 43 #include <errno.h> 44 #include <inet/endpoint.h> 44 45 #include <io/log.h> 45 46 #include <stdlib.h> … … 65 66 /** Bounce segment through simulator into receive queue. 66 67 * 67 * @param sp Socket pair, oriented for transmission68 * @param epp Endpoint pair, oriented for transmission 68 69 * @param seg Segment 69 70 */ 70 void tcp_ncsim_bounce_seg( tcp_sockpair_t *sp, tcp_segment_t *seg)71 void tcp_ncsim_bounce_seg(inet_ep2_t *epp, tcp_segment_t *seg) 71 72 { 72 73 tcp_squeue_entry_t *sqe; … … 75 76 76 77 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_bounce_seg()"); 77 tcp_rqueue_bounce_seg( sp, seg);78 tcp_rqueue_bounce_seg(epp, seg); 78 79 return; 79 80 … … 92 93 93 94 sqe->delay = random() % (1000 * 1000); 94 sqe-> sp = *sp;95 sqe->epp = *epp; 95 96 sqe->seg = seg; 96 97 … … 147 148 148 149 log_msg(LOG_DEFAULT, LVL_DEBUG, "NCSim - End Sleep"); 149 tcp_rqueue_bounce_seg(&sqe-> sp, sqe->seg);150 tcp_rqueue_bounce_seg(&sqe->epp, sqe->seg); 150 151 free(sqe); 151 152 }
Note:
See TracChangeset
for help on using the changeset viewer.