From owner-freebsd-net@FreeBSD.ORG Thu Sep 18 08:01:47 2008 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 90A15106567F for ; Thu, 18 Sep 2008 08:01:47 +0000 (UTC) (envelope-from debarshi.ray@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 1AD328FC27 for ; Thu, 18 Sep 2008 08:01:46 +0000 (UTC) (envelope-from debarshi.ray@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so145594fgb.35 for ; Thu, 18 Sep 2008 01:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pTye+AbrLhqqH1Wfq2L6VOIROJCI4Fxp9UU6plG0o8k=; b=gVcN9GuquP4tiky8GwNdVKAWzN7YAW1ELxCEEbk4Rd5FqSKYsOAlBXcrcUh1XlVKTj cEwG5ZVceOL8x3mLIOMR2tToLZ/fHtAYk0r3RzoPugnd6LBY0eMToRZETS2JrlhMpQ3i BYTjXy6a4lNDjiDCW9qDnV1rgy5StgkZkVbjU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=hAea6zQWNqTZMgWRISj7yyhuyzq76Swhr3MV86XwkAnhtX1Zv2hFz7fokC1R79BaKK fh0tUjgaM5smEY0+lgxA6fzdBMdCaeMiUQvQJ32lvr6CdR7a1J+44xBVLiun2hVRew5Y 0/F8ofYSnXwF6aZcv/IYmVX7SYVIxz54Scnsw= Received: by 10.187.212.1 with SMTP id o1mr490666faq.30.1221724905623; Thu, 18 Sep 2008 01:01:45 -0700 (PDT) Received: by 10.187.245.8 with HTTP; Thu, 18 Sep 2008 01:01:45 -0700 (PDT) Message-ID: <3170f42f0809180101w57e1d4c1m1bfcef00200e6b52@mail.gmail.com> Date: Thu, 18 Sep 2008 13:31:45 +0530 From: "Debarshi Ray" To: "FreeBSD networking and TCP/IP list" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3170f42f0809010507q6c37a9d5q19649bc261d7656d@mail.gmail.com> <48BBE7B2.4050409@FreeBSD.org> <48BCE4AA.6050807@elischer.org> <3170f42f0809020017k643180efte155a5b5701a40cf@mail.gmail.com> Cc: Robert Watson , "Bruce M. Simpson" , Julian Elischer Subject: Re: reading routing table X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: debarshi.ray@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2008 08:01:47 -0000 So I got something working for FreeBSD now: http://rishi.fedorapeople.org/gnu/inetutils-1.5.tar.gz I have been using a combination of sysctl and PF_ROUTE to retrieve the routing table, much like the approach taken by the NetBSD implementation. Support for modifying the routing table is yet to be implemented. Thanks for all your comments. By the way, would you want someone to implement 'show' support for FreeBSD's route implementation? I can give it a go now. :-) Happy hacking, Debarshi