From owner-freebsd-net Mon Apr 16 12:27:34 2001 Delivered-To: freebsd-net@freebsd.org Received: from a.mx.everquick.net (a.mx.everquick.net [216.89.137.3]) by hub.freebsd.org (Postfix) with ESMTP id D75CD37B422; Mon, 16 Apr 2001 12:27:28 -0700 (PDT) (envelope-from eddy+public+spam@noc.everquick.net) Received: from localhost (eddy@localhost) by a.mx.everquick.net (8.10.2/8.10.2) with ESMTP id f3GJO8u26443; Mon, 16 Apr 2001 19:24:08 GMT X-EverQuick-No-Abuse: Report any e-mail abuse to Date: Mon, 16 Apr 2001 19:24:07 +0000 (GMT) From: "E.B. Dreger" To: Kris Kennaway Cc: Wes Peters , freebsd-security@FreeBSD.ORG, net@FreeBSD.ORG, provos@OpenBSD.org Subject: Re: non-random IP IDs In-Reply-To: <20010416121019.D10023@xor.obsecurity.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Date: Mon, 16 Apr 2001 12:10:19 -0700 > From: Kris Kennaway > > I can't think of anything off the top of my head, but there was some > reason why OpenBSD made this change: > > - ip_copy->ip_id = htons(ip_randomid()); > + ip_copy->ip_id = ip_randomid(); > + HTONS(ip_copy->ip_id); > > Presumably there was some reasoning there. Niels, can you shed any > light? Without having the source in front of me, what length of value does ip_randomid() return? htons(long) != htons(short) perhaps? Eddy --------------------------------------------------------------------------- Brotsman & Dreger, Inc. EverQuick Internet / EternalCommerce Division Phone: (316) 794-8922 --------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message