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
Merged-In: I809e7efa238e065ba092639e6001c7ac33d91bb3
Change-Id: I809e7efa238e065ba092639e6001c7ac33d91bb3
(cherry picked from commit 1012ffee71e020f859c54ec69e5c81ec1a8fc3cf)
diff --git a/server/XfrmController.cpp b/server/XfrmController.cpp
index 52ffd7b..744728a 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;