diff options
author | Florin Coras <fcoras@cisco.com> | 2019-01-02 12:22:02 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-01-03 21:25:15 +0000 |
commit | 18e0d4f07812e7c1f52f1f78b613e057017019cf (patch) | |
tree | 815a0fa4d60316c88c494243e455238f20a29c40 /src/vnet/tcp/tcp.h | |
parent | 98d6b61183ecb15932fbdae96a60e0d0fcf97466 (diff) |
tcp: better randomize iss
Change-Id: I3638221e59024d6b7d82499d57e25b8e609f73cb
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp.h')
-rw-r--r-- | src/vnet/tcp/tcp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h index 3848f03f1dc..dca045128ed 100644 --- a/src/vnet/tcp/tcp.h +++ b/src/vnet/tcp/tcp.h @@ -437,6 +437,12 @@ typedef struct tcp_worker_ctx_ } tcp_worker_ctx_t; +typedef struct tcp_iss_seed_ +{ + u64 first; + u64 second; +} tcp_iss_seed_t; + typedef struct _tcp_main { /* Per-worker thread tcp connection pools */ @@ -464,6 +470,9 @@ typedef struct _tcp_main /** vlib buffer size */ u32 bytes_per_buffer; + /* Seed used to generate random iss */ + tcp_iss_seed_t iss_seed; + /* * Configuration */ |