From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 03:43:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 414EE16A4CE for ; Mon, 30 Aug 2004 03:43:45 +0000 (GMT) Received: from keylime.silverwraith.com (keylime.silverwraith.com [69.55.228.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B03643D1D for ; Mon, 30 Aug 2004 03:43:45 +0000 (GMT) (envelope-from lists-freebsd@silverwraith.com) Received: from keylime.silverwraith.com ([69.55.228.10]) by keylime.silverwraith.com with esmtp (Exim 4.41 (FreeBSD)) id 1C1d56-000JAc-FY; Sun, 29 Aug 2004 20:43:44 -0700 Received: (from avleen@localhost)i7U3hiRl073693; Sun, 29 Aug 2004 20:43:44 -0700 (PDT) (envelope-from lists-freebsd@silverwraith.com) X-Authentication-Warning: keylime.silverwraith.com: avleen set sender to lists-freebsd@silverwraith.com using -f Date: Sun, 29 Aug 2004 20:43:44 -0700 From: Avleen Vig To: Dennis George Message-ID: <20040830034344.GG54961@silverwraith.com> References: <20040830025527.88596.qmail@web53908.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040830025527.88596.qmail@web53908.mail.yahoo.com> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Finding MTU X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 03:43:45 -0000 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.