diff options
author | Dave Barach <dave@barachs.net> | 2018-12-06 10:20:14 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-12-06 18:28:47 +0000 |
commit | 10c5ff143a86d15e78cb1f8625eb0ab8bf72b6ce (patch) | |
tree | 00afabf7ca2ccd4042b2315b38fa6fb1bf5902c2 /src/plugins/nsim/nsim.h | |
parent | 995ff06fb73a2d1ac8472977cf3089d763f17d33 (diff) |
nsim: add packet loss simulation, docs
Change-Id: Ic9747541aad8148ebf7d520b525b99c4cc3961f3
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/nsim/nsim.h')
-rw-r--r-- | src/plugins/nsim/nsim.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/nsim/nsim.h b/src/plugins/nsim/nsim.h index d0b5ed32fee..c5264ecb244 100644 --- a/src/plugins/nsim/nsim.h +++ b/src/plugins/nsim/nsim.h @@ -54,6 +54,8 @@ typedef struct /* Two interfaces, cross-connected with delay */ u32 sw_if_index0, sw_if_index1; u32 output_next_index0, output_next_index1; + /* Random seed for loss-rate simulation */ + u32 seed; /* Per-thread buffer / scheduler wheels */ nsim_wheel_t **wheel_by_thread; @@ -63,6 +65,7 @@ typedef struct f64 delay; f64 bandwidth; f64 packet_size; + f64 drop_fraction; u64 mmap_size; |