[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <463B2E51.90808@trash.net>
Date: Fri, 04 May 2007 15:00:01 +0200
From: Patrick McHardy <kaber@...sh.net>
To: David Howells <dhowells@...hat.com>
CC: netdev@...r.kernel.org
Subject: Re: How to find I/F to destination
David Howells wrote:
> I would like to determine through which interface packets sent to a particular
> UDP destination will go through, and so determine the MTU size for that
> interface. Can anyone suggest a good way of doing this from within the
> kernel?
Do a route lookup (ip_route_output_key), then either use dst_mtu to get
the PMTU value or dst->dev in case you really want the device's MTU.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists