From owner-freebsd-net@FreeBSD.ORG Thu Jul 1 13:01:37 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 F07E616A4CE for ; Thu, 1 Jul 2004 13:01:37 +0000 (GMT) Received: from quick.recoil.org (quick.recoil.org [194.70.3.133]) by mx1.FreeBSD.org (Postfix) with SMTP id 2825943D1F for ; Thu, 1 Jul 2004 13:01:37 +0000 (GMT) (envelope-from anil@recoil.org) Received: (qmail 30960 invoked from network); 1 Jul 2004 12:59:57 -0000 Received: from localhost (HELO ?IPv6:::1?) (127.0.0.1) by quick.recoil.org with SMTP; 1 Jul 2004 12:59:57 -0000 In-Reply-To: <40E40839.20500@cronyx.ru> References: <122AE07F-CB5B-11D8-99F8-000A95DA50A6@recoil.org> <40E40839.20500@cronyx.ru> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <931572E3-CB5E-11D8-99F8-000A95DA50A6@recoil.org> Content-Transfer-Encoding: 7bit From: Anil Madhavapeddy Date: Thu, 1 Jul 2004 14:00:06 +0100 To: Roman Kurakin X-Mailer: Apple Mail (2.618) cc: freebsd-net@lists.freebsd.org Subject: Re: 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 13:01:38 -0000 On 1 Jul 2004, at 13:48, Roman Kurakin wrote: > > If this is a problem why can't you make some wrapper that will > pack/unpack written on C, > which will be a lib for you? Because I want to minimise the size of the foreign bindings - this would require C code for every single Netgraph struct. If they were packed, I could just do it all in OCaml. Isn't this a problem for other language bindings as well, or is everyone doing Netgraph userland hacking in C at the moment? -- Anil Madhavapeddy http://anil.recoil.org University of Cambridge http://www.cl.cam.ac.uk