From: Patrick McHardy <kaber@trash.net>
To: David Howells <dhowells@redhat.com>
Cc: netdev@vger.kernel.org
Subject: Re: How to find I/F to destination
Date: Fri, 04 May 2007 15:00:01 +0200 [thread overview]
Message-ID: <463B2E51.90808@trash.net> (raw)
In-Reply-To: <5484.1178282928@redhat.com>
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.
prev parent reply other threads:[~2007-05-04 13:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=463B2E51.90808@trash.net \
--to=kaber@trash.net \
--cc=dhowells@redhat.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.