From owner-freebsd-net@FreeBSD.ORG Sat May 22 12:22:12 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 042D91065677; Sat, 22 May 2010 12:22:12 +0000 (UTC) (envelope-from anjali@juniper.net) Received: from exprod7og126.obsmtp.com (exprod7og126.obsmtp.com [64.18.2.206]) by mx1.freebsd.org (Postfix) with ESMTP id 7D38B8FC13; Sat, 22 May 2010 12:22:11 +0000 (UTC) Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob126.postini.com ([64.18.6.12]) with SMTP ID DSNKS/fMcogCQeW/xWIWWE/5Hwvo2syv7ZpM@postini.com; Sat, 22 May 2010 05:22:11 PDT Received: from EMBX01-HQ.jnpr.net ([fe80::c821:7c81:f21f:8bc7]) by P-EMHUB01-HQ.jnpr.net ([fe80::fc92:eb1:759:2c72%11]) with mapi; Sat, 22 May 2010 05:09:32 -0700 From: Anjali Kulkarni To: "freebsd-net@freebsd.org" Date: Sat, 22 May 2010 05:09:31 -0700 Thread-Topic: Common OS/kernel code between freebsd and linux Thread-Index: AQHK+aeiVE/G37v7OkKM7CCVvJavpQ== Message-ID: <50B3A5560BA4D74CADEC55A48B4641B23D5119D0BA@EMBX01-HQ.jnpr.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-hackers@freebsd.org" Subject: Common OS/kernel code between freebsd and linux X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2010 12:22:12 -0000 Hi Folks, I am not sure the right forum to ask this question - is there any effort do= ne to find portable code between different OSes, particularly freebsd and l= inux?=20 Specifically, the networking layer could be portable between the 2 and ther= e could be some set of APIs to call into the OS specific parts. This could = be modeled as - if I want to port the networking layer or other stuff to us= erland, what set of code could reside in userspace such that that layer is = portable between OSes ? For eg, there could be an API to access mbufs or sk= buffs in freebsd or linux respectively, but the processing to be done for I= P etc could remain the same. I don't know if this is worth thinking about? = Please share your thoughts. Anjali=