From owner-freebsd-hackers Thu Jan 20 15:11:42 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id E22C714D8B; Thu, 20 Jan 2000 15:11:40 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) id PAA14393; Thu, 20 Jan 2000 15:35:03 -0800 (PST) Date: Thu, 20 Jan 2000 15:35:02 -0800 From: Alfred Perlstein To: Brian Somers Cc: des@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: ioctl(... TUNSLMODE ...) Message-ID: <20000120153502.A14030@fw.wintelcom.net> References: <200001201939.TAA01260@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200001201939.TAA01260@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Thu, Jan 20, 2000 at 07:39:11PM +0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Brian Somers [000120 15:30] wrote: > Hi, > > I know this is a while in coming, but now that I'm looking at getting > ppp(8) to talk IPv6 (with the help of some KAME patches), I've looked > at how TUNSLMODE is implemented... it doesn't look good to me. > > What's the rationale behind stuffing the entire sockaddr in front of > the packet ? AFAIK the only information of any use is the address > family. > > By default, OpenBSD has a u_int32_t in front of every packet (I > believe this is unconfigurable), and I think this is about the most > sensible thing to do - I don't see that alignment issues will cause > problems. > > Alfred, this was originally submitted by you. Do you have any > argument against me changing it to just stuff the address family > as a 4-byte network-byte-order quantity there ? > > Any other opinions/arguments ? No objections, I just did it as an excercise to implement something in the manpages. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message