Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 1999 21:18:51 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        crossd@cs.rpi.edu (David E. Cross)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: host byte order in networkin routines?!?
Message-ID:  <199908140418.VAA10421@bubba.whistle.com>
In-Reply-To: <199908071725.NAA75325@cs.rpi.edu> from "David E. Cross" at "Aug 7, 1999 01:25:43 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
David E. Cross writes:
> A friend writing some portable network tunneling software ran into an
> interesting thing... when you specify "IP_HDRINCL" with SOCK_RAW,  and
> IPPROTO_RAW you need to construct the outgoing packet in host byte order.
> 
> This seems wonderfully inconsistent with all of the other socket based
> networking interface in FreeBSD, and it is also inconsistent with other
> Operating Systems.   Would it be possible to get this changed?  I can provide
> diffs if need be.

I suspect most people agree it needs to be changed, but the problem is
(as usual) all the legacy code that would break.

Maybe if you had a temporary check in the kernel for backwards packets
that would cause a core dump.. ? Ugh.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908140418.VAA10421>