Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tcp/ncsim.c

    r2f19103 r257feec  
    11/*
    2  * Copyright (c) 2015 Jiri Svoboda
     2 * Copyright (c) 2011 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4242#include <async.h>
    4343#include <errno.h>
    44 #include <inet/endpoint.h>
    4544#include <io/log.h>
    4645#include <stdlib.h>
     
    6665/** Bounce segment through simulator into receive queue.
    6766 *
    68  * @param epp   Endpoint pair, oriented for transmission
     67 * @param sp    Socket pair, oriented for transmission
    6968 * @param seg   Segment
    7069 */
    71 void tcp_ncsim_bounce_seg(inet_ep2_t *epp, tcp_segment_t *seg)
     70void tcp_ncsim_bounce_seg(tcp_sockpair_t *sp, tcp_segment_t *seg)
    7271{
    7372        tcp_squeue_entry_t *sqe;
     
    7675
    7776        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_bounce_seg()");
    78         tcp_rqueue_bounce_seg(epp, seg);
     77        tcp_rqueue_bounce_seg(sp, seg);
    7978        return;
    8079
     
    9392
    9493        sqe->delay = random() % (1000 * 1000);
    95         sqe->epp = *epp;
     94        sqe->sp = *sp;
    9695        sqe->seg = seg;
    9796
     
    148147
    149148                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);
    151150                free(sqe);
    152151        }
Note: See TracChangeset for help on using the changeset viewer.