Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v retrieving revision 1.175 retrieving revision 1.176 diff -u -p -r1.175 -r1.176 --- src/sys/netinet/ip_input.c 2003/08/22 22:00:37 1.175 +++ src/sys/netinet/ip_input.c 2003/09/05 22:09:38 1.176 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.175 2003/08/22 22:00:37 itojun Exp $ */ +/* $NetBSD: ip_input.c,v 1.176 2003/09/05 22:09:38 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.175 2003/08/22 22:00:37 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.176 2003/09/05 22:09:38 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 = time.tv_sec & 0xffff; + ip_id = arc4random() & 0xffff; ipintrq.ifq_maxlen = ipqmaxlen; TAILQ_INIT(&in_ifaddr); in_ifaddrhashtbl = hashinit(IN_IFADDR_HASH_SIZE, HASH_LIST, M_IFADDR,