From owner-freebsd-net@FreeBSD.ORG Thu Jul 1 12:54:48 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 8193116A4CE for ; Thu, 1 Jul 2004 12:54:48 +0000 (GMT) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 784D043D1F for ; Thu, 1 Jul 2004 12:54:48 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 7FA9C55A9A for ; Thu, 1 Jul 2004 12:53:58 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DB0416A4CE for ; Thu, 1 Jul 2004 12:53:58 +0000 (GMT) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id C349843D31 for ; Thu, 1 Jul 2004 12:53:57 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru id i61CpjBl023362 for freebsd-net@lists.freebsd.org.checked; (8.12.8/vak/2.1) Thu, 1 Jul 2004 16:51:45 +0400 (MSD) (envelope-from rik@cronyx.ru) Received: from cronyx.ru (hi.cronyx.ru [144.206.181.94]) by hanoi.cronyx.ru with ESMTP id i61CnRNM023237; (8.12.8/vak/2.1) Thu, 1 Jul 2004 16:49:27 +0400 (MSD) (envelope-from rik@cronyx.ru) Message-ID: <40E40839.20500@cronyx.ru> Date: Thu, 01 Jul 2004 16:48:57 +0400 From: Roman Kurakin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Anil Madhavapeddy References: <122AE07F-CB5B-11D8-99F8-000A95DA50A6@recoil.org> In-Reply-To: <122AE07F-CB5B-11D8-99F8-000A95DA50A6@recoil.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 12:54:48 -0000 Anil Madhavapeddy wrote: > 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. 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? rik > > 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 > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >