From owner-freebsd-net Mon Feb 7 8:30: 0 2000 Delivered-To: freebsd-net@freebsd.org Received: from mc-qout4.whowhere.com (mc-qout4.whowhere.com [209.185.123.18]) by builder.freebsd.org (Postfix) with SMTP id 56D8E3F59 for ; Mon, 7 Feb 2000 08:29:57 -0800 (PST) Received: from Unknown/Local ([?.?.?.?]) by my-deja.com; Sun Feb 6 21:17:21 2000 To: freebsd-net@FreeBSD.org Date: Sun, 06 Feb 2000 21:17:21 -0800 From: "gbnaidu " Message-ID: Mime-Version: 1.0 X-Sent-Mail: off X-Mailer: MailCity Service Subject: How to get outgoing interface... X-Sender-Ip: 164.164.56.2 Organization: My Deja Email (http://www.my-deja.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Length: 764 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I am trying to dump the routing table using the sysctl system call. I am able to get the destination address, gateway, mask all these entries. But How do I get the outgoing interface for a particular entry in the routing table? One way I could think of is to try to find the interface on my system whose subnet id is same as the subnet id of the gateway for a routing entry.This should work because the gateway should be directly connnected to my system through on of the interfaces. Is this correct? Is there any other simple way to find the outgoing interface for a routing entry? Please reply to: gbnaidu@sasi.com and to the list also. thanks --gb --== Sent via Deja.com http://www.deja.com/ ==-- Share what you know. Learn what you don't. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message