From owner-freebsd-net@FreeBSD.ORG Sat May 22 12:35:13 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 D05651065672 for ; Sat, 22 May 2010 12:35:13 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.33]) by mx1.freebsd.org (Postfix) with SMTP id 18F828FC22 for ; Sat, 22 May 2010 12:35:12 +0000 (UTC) Received: (qmail 37351 invoked from network); 22 May 2010 12:35:11 -0000 Received: from bizet.nethelp.no (HELO localhost) (195.1.209.33) by bizet.nethelp.no with SMTP; 22 May 2010 12:35:11 -0000 Date: Sat, 22 May 2010 14:35:11 +0200 (CEST) Message-Id: <20100522.143511.74745433.sthaug@nethelp.no> To: anjali@juniper.net From: sthaug@nethelp.no In-Reply-To: <50B3A5560BA4D74CADEC55A48B4641B23D5119D0BA@EMBX01-HQ.jnpr.net> References: <50B3A5560BA4D74CADEC55A48B4641B23D5119D0BA@EMBX01-HQ.jnpr.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: 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:35:13 -0000 > I am not sure the right forum to ask this question - is there any effort done to find portable code between different OSes, particularly freebsd and linux? > Specifically, the networking layer could be portable between the 2 and there 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 userland, 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 skbuffs in freebsd or linux respectively, but the processing to be done for IP etc could remain the same. I don't know if this is worth thinking about? Please share your thoughts. Are you sure the Linux crowd is interested in this? As far as I know the BSD networking code has been *available* to the Linux crowd basically from day 1 - but they chose to write their own... Steinar Haug, Nethelp consulting, sthaug@nethelp.no