Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2001 19:24:07 +0000 (GMT)
From:      "E.B. Dreger" <eddy+public+spam@noc.everquick.net>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Wes Peters <wes@softweyr.com>, freebsd-security@FreeBSD.ORG, net@FreeBSD.ORG, provos@OpenBSD.org
Subject:   Re: non-random IP IDs
Message-ID:  <Pine.LNX.4.20.0104161919390.26335-100000@www.everquick.net>
In-Reply-To: <20010416121019.D10023@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Mon, 16 Apr 2001 12:10:19 -0700
> From: Kris Kennaway <kris@obsecurity.org>
> 
> 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-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.20.0104161919390.26335-100000>