diff options
author | sam <sam@FreeBSD.org> | 2003-11-07 23:31:29 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-11-07 23:31:29 +0000 |
commit | e5e7aba8ca7d5c1332ef4091d7272e5a8c828d61 (patch) | |
tree | eebf9be558003c3134704d545991874b29d77fd4 | |
parent | e3855085d101638bdcca471186a43f37fbc0852f (diff) | |
download | FreeBSD-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.c | 1 |
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(); |