Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Feb 2000 21:17:21 -0800
From:      "gbnaidu  " <gbnaidu@my-Deja.com>
To:        freebsd-net@FreeBSD.org
Subject:   How to get outgoing interface...
Message-ID:  <HADOPCCEKCILKBAA@my-deja.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?HADOPCCEKCILKBAA>