Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2004 20:43:44 -0700
From:      Avleen Vig <lists-freebsd@silverwraith.com>
To:        Dennis George <easyeinfo@yahoo.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Finding MTU
Message-ID:  <20040830034344.GG54961@silverwraith.com>
In-Reply-To: <20040830025527.88596.qmail@web53908.mail.yahoo.com>
References:  <20040830025527.88596.qmail@web53908.mail.yahoo.com>

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



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