Changes in uspace/srv/net/tcp/ncsim.c [c718bda:9520af7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/ncsim.c
rc718bda r9520af7 81 81 return; 82 82 83 if (0 /*rand () % 4 == 3*/) {83 if (0 /*random() % 4 == 3*/) { 84 84 /* Drop segment */ 85 85 log_msg(LOG_DEFAULT, LVL_ERROR, "NCSim dropping segment"); … … 94 94 } 95 95 96 sqe->delay = rand () % (1000 * 1000);96 sqe->delay = random() % (1000 * 1000); 97 97 sqe->epp = *epp; 98 98 sqe->seg = seg; … … 123 123 124 124 /** Network condition simulator handler fibril. */ 125 static errno_t tcp_ncsim_fibril(void *arg)125 static int tcp_ncsim_fibril(void *arg) 126 126 { 127 127 link_t *link; 128 128 tcp_squeue_entry_t *sqe; 129 129 inet_ep2_t rident; 130 errno_t rc;130 int rc; 131 131 132 132 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_fibril()");
Note:
See TracChangeset
for help on using the changeset viewer.