From owner-freebsd-hackers Thu Jan 20 15: 7: 3 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from awfulhak.org (dynamic-71.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.199]) by hub.freebsd.org (Postfix) with ESMTP id 1E13914F2C; Thu, 20 Jan 2000 15:06:59 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id VAA10638; Thu, 20 Jan 2000 21:00:02 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id TAA01260; Thu, 20 Jan 2000 19:39:11 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200001201939.TAA01260@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: des@FreeBSD.ORG, bright@cygnus.rush.net Cc: hackers@FreeBSD.ORG Subject: ioctl(... TUNSLMODE ...) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 20 Jan 2000 19:39:11 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ? Cheers. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message