summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-11-07 23:31:29 +0000
committersam <sam@FreeBSD.org>2003-11-07 23:31:29 +0000
commite5e7aba8ca7d5c1332ef4091d7272e5a8c828d61 (patch)
treeeebf9be558003c3134704d545991874b29d77fd4
parente3855085d101638bdcca471186a43f37fbc0852f (diff)
downloadFreeBSD-src-e5e7aba8ca7d5c1332ef4091d7272e5a8c828d61.zip
FreeBSD-src-e5e7aba8ca7d5c1332ef4091d7272e5a8c828d61.tar.gz
MFp4: reminder that random id code is not reentrant
Supported by: FreeBSD Foundation
-rw-r--r--sys/netinet/ip_id.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/ip_id.c b/sys/netinet/ip_id.c
index 664b4d1..d8be42b 100644
--- a/sys/netinet/ip_id.c
+++ b/sys/netinet/ip_id.c
@@ -186,6 +186,7 @@ ip_randomid(void)
int i, n;
struct timeval time;
+ /* XXX not reentrant */
getmicrotime(&time);
if (ru_counter >= RU_MAX || time.tv_sec > ru_reseed)
ip_initid();
OpenPOWER on IntegriCloud