netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to find I/F to destination
@ 2007-05-04 12:48 David Howells
  2007-05-04 12:54 ` Evgeniy Polyakov
  2007-05-04 13:00 ` Patrick McHardy
  0 siblings, 2 replies; 18+ messages in thread
From: David Howells @ 2007-05-04 12:48 UTC (permalink / raw)
  To: netdev; +Cc: Patrick McHardy


Hi,

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?

Doing this will permit AF_RXRPC to obtain a better initial guess as to the
maximum size of the packets that can be sent that way.

I could use the code Patrick gave me to allow AFS to iterate through all the
interfaces and then pick the smallest MTU, but that seems wrong somehow -
though it probably will result in the correct answer 99% of the time.

David

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-05-05  9:15 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-04 12:48 How to find I/F to destination David Howells
2007-05-04 12:54 ` Evgeniy Polyakov
2007-05-04 13:04   ` David Howells
2007-05-04 13:06     ` David Howells
2007-05-04 13:08   ` David Howells
2007-05-04 13:16     ` Evgeniy Polyakov
2007-05-04 13:24       ` David Howells
2007-05-04 13:29         ` Evgeniy Polyakov
2007-05-04 13:33           ` David Howells
2007-05-04 13:43             ` Patrick McHardy
2007-05-04 13:55               ` David Howells
2007-05-04 13:59                 ` Patrick McHardy
2007-05-05  9:13                   ` Evgeniy Polyakov
2007-05-05  9:15             ` Evgeniy Polyakov
2007-05-04 13:20     ` Evgeniy Polyakov
2007-05-04 13:23   ` David Howells
2007-05-04 13:25     ` Evgeniy Polyakov
2007-05-04 13:00 ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).