From owner-freebsd-net@FreeBSD.ORG Thu Jul 1 12:35:30 2004 Return-Path: Delivered-To: freebsd-net@www.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1985C16A4CE for ; Thu, 1 Jul 2004 12:35:30 +0000 (GMT) Received: from quick.recoil.org (quick.recoil.org [194.70.3.133]) by mx1.FreeBSD.org (Postfix) with SMTP id 4308343D31 for ; Thu, 1 Jul 2004 12:35:29 +0000 (GMT) (envelope-from anil@recoil.org) Received: (qmail 30790 invoked from network); 1 Jul 2004 12:34:52 -0000 Received: from localhost (HELO ?IPv6:::1?) (127.0.0.1) by quick.recoil.org with SMTP; 1 Jul 2004 12:34:52 -0000 Mime-Version: 1.0 (Apple Message framework v618) Content-Transfer-Encoding: 7bit Message-Id: <122AE07F-CB5B-11D8-99F8-000A95DA50A6@recoil.org> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-net@lists.freebsd.org From: Anil Madhavapeddy Date: Thu, 1 Jul 2004 13:35:01 +0100 X-Mailer: Apple Mail (2.618) Subject: Packing netgraph structs X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 12:35:30 -0000 I'm creating Netgraph bindings for OCaml in order to play around more easily with various Bluetooth and Ethernet things I'm working on. It's all pretty straightforward except for the problem that the netgraph message structs aren't all packed (e.g. struct ng_mesg). This means that it's very difficult to serialise them in a language other than C. Is there any reason why these aren't packed? If not, I can submit a diff to make them so. thanks, -- Anil Madhavapeddy http://anil.recoil.org University of Cambridge http://www.cl.cam.ac.uk