Changes in uspace/srv/net/tcp/ncsim.c [2f19103:257feec] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/ncsim.c
r2f19103 r257feec 1 1 /* 2 * Copyright (c) 201 5Jiri Svoboda2 * Copyright (c) 2011 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 42 42 #include <async.h> 43 43 #include <errno.h> 44 #include <inet/endpoint.h>45 44 #include <io/log.h> 46 45 #include <stdlib.h> … … 66 65 /** Bounce segment through simulator into receive queue. 67 66 * 68 * @param epp Endpoint pair, oriented for transmission67 * @param sp Socket pair, oriented for transmission 69 68 * @param seg Segment 70 69 */ 71 void tcp_ncsim_bounce_seg( inet_ep2_t *epp, tcp_segment_t *seg)70 void tcp_ncsim_bounce_seg(tcp_sockpair_t *sp, tcp_segment_t *seg) 72 71 { 73 72 tcp_squeue_entry_t *sqe; … … 76 75 77 76 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_bounce_seg()"); 78 tcp_rqueue_bounce_seg( epp, seg);77 tcp_rqueue_bounce_seg(sp, seg); 79 78 return; 80 79 … … 93 92 94 93 sqe->delay = random() % (1000 * 1000); 95 sqe-> epp = *epp;94 sqe->sp = *sp; 96 95 sqe->seg = seg; 97 96 … … 148 147 149 148 log_msg(LOG_DEFAULT, LVL_DEBUG, "NCSim - End Sleep"); 150 tcp_rqueue_bounce_seg(&sqe-> epp, sqe->seg);149 tcp_rqueue_bounce_seg(&sqe->sp, sqe->seg); 151 150 free(sqe); 152 151 }
Note:
See TracChangeset
for help on using the changeset viewer.