Start SPI Allocation Window at 256
RFC 4303 reserves the first 255 SPIs for future
use and they may not be allocated. Thus, restrict
the random range.
Bug: 77205120
Test: runtest frameworks-net
Change-Id: I809e7efa238e065ba092639e6001c7ac33d91bb3
diff --git a/server/XfrmController.cpp b/server/XfrmController.cpp
index cc2c305..d31b243 100644
--- a/server/XfrmController.cpp
+++ b/server/XfrmController.cpp
@@ -78,7 +78,7 @@
namespace {
-constexpr uint32_t RAND_SPI_MIN = 1;
+constexpr uint32_t RAND_SPI_MIN = 256;
constexpr uint32_t RAND_SPI_MAX = 0xFFFFFFFE;
constexpr uint32_t INVALID_SPI = 0;