diff options
Diffstat (limited to 'net/core/secure_seq.c')
-rw-r--r-- | net/core/secure_seq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/secure_seq.c b/net/core/secure_seq.c index 90e8a8250255..897da56f3aff 100644 --- a/net/core/secure_seq.c +++ b/net/core/secure_seq.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <net/secure_seq.h> | 12 | #include <net/secure_seq.h> |
13 | 13 | ||
14 | #if IS_ENABLED(CONFIG_IPV6) || IS_ENABLED(CONFIG_INET) | ||
14 | #define NET_SECRET_SIZE (MD5_MESSAGE_BYTES / 4) | 15 | #define NET_SECRET_SIZE (MD5_MESSAGE_BYTES / 4) |
15 | 16 | ||
16 | static u32 net_secret[NET_SECRET_SIZE] ____cacheline_aligned; | 17 | static u32 net_secret[NET_SECRET_SIZE] ____cacheline_aligned; |
@@ -19,6 +20,7 @@ static __always_inline void net_secret_init(void) | |||
19 | { | 20 | { |
20 | net_get_random_once(net_secret, sizeof(net_secret)); | 21 | net_get_random_once(net_secret, sizeof(net_secret)); |
21 | } | 22 | } |
23 | #endif | ||
22 | 24 | ||
23 | #ifdef CONFIG_INET | 25 | #ifdef CONFIG_INET |
24 | static u32 seq_scale(u32 seq) | 26 | static u32 seq_scale(u32 seq) |