diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-10-01 16:22:58 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-10-01 16:22:58 +0000 |
commit | 672467eb28bc8853e428d688f6d8ce884f2af416 (patch) | |
tree | 00706e1938d497aa9c75e411b555cead1ce0f507 /sys/netinet6/ip6_id.c | |
parent | 2923494300efe2a1c7aeac1ea45b804c52d79135 (diff) | |
download | src-672467eb28bc8853e428d688f6d8ce884f2af416.tar.gz src-672467eb28bc8853e428d688f6d8ce884f2af416.zip |
Don't compiled ip6_randomid() in if RANDOM_IP_ID is not defined.
Notes
Notes:
svn path=/head/; revision=120641
Diffstat (limited to 'sys/netinet6/ip6_id.c')
-rw-r--r-- | sys/netinet6/ip6_id.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_id.c b/sys/netinet6/ip6_id.c index 788e16712f50..c84c5cfb3df9 100644 --- a/sys/netinet6/ip6_id.c +++ b/sys/netinet6/ip6_id.c @@ -98,6 +98,8 @@ #include <netinet/ip6.h> #include <netinet6/ip6_var.h> +#ifdef RANDOM_IP_ID + #ifndef INT32_MAX #define INT32_MAX 0x7fffffffU #endif @@ -245,3 +247,5 @@ ip6_randomid(void) return randomid(&randomtab_32); } + +#endif /* RANDOM_IP_ID */ |