From dd45bfac41a9f653e6f81b1829f99ff0a3873554 Mon Sep 17 00:00:00 2001 From: itojun Date: Sat, 6 Sep 2003 00:24:54 +0000 Subject: [PATCH] backout previous, we don't know if arc4random() corrides on reboot. --- sys/netinet/ip_input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index b8de998ecb44..4a8a6ecc7cb3 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.176 2003/09/05 22:09:38 itojun Exp $ */ +/* $NetBSD: ip_input.c,v 1.177 2003/09/06 00:24:54 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -98,7 +98,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.176 2003/09/05 22:09:38 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.177 2003/09/06 00:24:54 itojun Exp $"); #include "opt_gateway.h" #include "opt_pfil_hooks.h" @@ -360,7 +360,7 @@ ip_init() pr->pr_protocol && pr->pr_protocol != IPPROTO_RAW) ip_protox[pr->pr_protocol] = pr - inetsw; LIST_INIT(&ipq); - ip_id = arc4random() & 0xffff; + ip_id = time.tv_sec & 0xffff; ipintrq.ifq_maxlen = ipqmaxlen; TAILQ_INIT(&in_ifaddr); in_ifaddrhashtbl = hashinit(IN_IFADDR_HASH_SIZE, HASH_LIST, M_IFADDR,