• Pietro Fezzardi's avatar
    arch-sim: network operations and main loop · dcddecbc
    Pietro Fezzardi authored
    New struct sim_pending_pkt is introduced to hold information on pakets still in
    fly. An array of such structures is stored in ppg->arch_data. This array is
    written by every send. The insertion is designed to sort automatically the
    packets so that the first element of the array after an insertion is always
    the first packet that will be received. Function sim_fast_forward_ns is changed
    to update also the reception times into this array, so that when you fast
    forward, also the pending packets are fast_forwarded.
    The main loop works in this way:
    	- if there are packets to be received check when
    	- if the first packet to be received is coming before the state machine
    	  timestamps expire, then fast forward till it's time to receive it.
    	  Then receive it and call the state machine of the receiver
    	- if there are no packet pending or the first pending packet is coming
    	  after a timeout, then fast forward till the timeout expires and
    	  run all the state machines
    dcddecbc
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...