Finding MTU
Avleen Vig
lists-freebsd at silverwraith.com
Sun Aug 29 20:43:45 PDT 2004
On Sun, Aug 29, 2004 at 07:55:27PM -0700, Dennis George wrote:
> Hi all,
>
> Can anybody tell me how to find the MTU (Maximum Transmitting Unit) in
> freeBSD programatically...
Define programatically?
With syscalls, or in a way that is easily repeatable?
If you just mean the latter, this will do it:
ifconfig -a | awk '/mtu/ { print $1, $NF }'
Otherwise, try man networking and look for the word 'mtu', that might
be a good start.
More information about the freebsd-hackers
mailing list