From owner-freebsd-net@FreeBSD.ORG Mon Sep 1 13:19:04 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 894C91065681 for ; Mon, 1 Sep 2008 13:19:04 +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 1DDD48FC1B for ; Mon, 1 Sep 2008 13:19:03 +0000 (UTC) (envelope-from debarshi.ray@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1236652fgb.35 for ; Mon, 01 Sep 2008 06:19:02 -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=p7btum86jM93eeF+EOXNQDk1nHmZfZoGCuYxarzm8rk=; b=PB/6k6PrJL53A70AdWxdmFkiM6FolT9duOyhKk+3mscyowDDsthiq3tsV8rsRg2uIE XqHWw5UxO77uIiU++8nzvW419buD7+De6X3MYpU05P5gPmZFH2gSahnWzoWwdDA8JI6Z +thl63WLBhgyZJI1SD+dpB5XGVIFzrIeoYeNI= 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=IYVyMgyWqwyDoBxEPgWTnfVGmTxqCz0ZVXiNI09aonvl60uli0wgzlqBIb7Iv1+dD0 QggdsyUfaT2/nLtiEwnck8lvCZAjYDVPJ8/yo5cpWZXqqkMekJQgqCabVUdJ4HSoj3sY Ql11xCrR5NT5pA8BqTvs/ae4mBG/VgdZqMlaA= Received: by 10.187.174.16 with SMTP id b16mr1933028fap.104.1220275142836; Mon, 01 Sep 2008 06:19:02 -0700 (PDT) Received: by 10.187.245.8 with HTTP; Mon, 1 Sep 2008 06:19:02 -0700 (PDT) Message-ID: <3170f42f0809010619i4d95318x7496e45a442c9654@mail.gmail.com> Date: Mon, 1 Sep 2008 18:49:02 +0530 From: "Debarshi Ray" To: "Bruce M. Simpson" In-Reply-To: <48BBE7B2.4050409@FreeBSD.org> 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> Cc: FreeBSD networking and TCP/IP list 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: Mon, 01 Sep 2008 13:19:04 -0000 > You want 'netstat -rn' to dump them, this is a very common command which > should be present in a number of online resources on using and administering > FreeBSD so I am somewhat surprised that you didn't find it. I know about netstat. I did mention having gone through its implementation. :-) What I am asking about is related to the implementation of the 'netstat -rn' functionality, which on some non-FreeBSD systems is also provided by 'route [show] -n'. > P.S. Look in the sysctl tree if you need to snapshot the kernel IP > forwarding tables. You can use kmem, but it is generally frowned upon unless > you're working from core dumps -- kernels can be built without kmem support, > or kmem locked down, etc. Ok, I will have a look. Thanks. Happy hacking, Debarshi