From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 8 22:16:54 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87873106566B for ; Fri, 8 Apr 2011 22:16:54 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id DF10D8FC0A for ; Fri, 8 Apr 2011 22:16:53 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id p38MGo3m030567 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 8 Apr 2011 23:16:50 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p38MGo3m030567 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1302301010; bh=JpsyhXx1Lm8PwWAQXCICnSC5cukCfl4Um6J5BhCE0ow=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4D9F894C.1030700@infracaninophile.co.uk>|Date:=20F ri,=2008=20Apr=202011=2023:16:44=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20r v:1.9.2.15)=20Gecko/20110303=20Thunderbird/3.1.9|MIME-Version:=201 .0|To:=20freebsd-hackers@freebsd.org|Subject:=20Re:=20ifconfig=20o utput:=20ipv4=20netmask=20format|References:=20<4D9EFAC6.4020906@l azybytes.org>=09<7EA5889E-77EF-4BAE-9655-C33692A75602@bsdimp.com>= 09<4D9F2C88.4010205@lazybytes.org>=20|In-Reply-To:=20|X-Enigmail-Version:=201.1.1|OpenPGP:=20i d=3D60AE908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sh a1=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20bo undary=3D"------------enigD925B34CA594A9E6ABB5A5FA"; b=vuB/n75THUU/VeHk/YTO2K6kMQYRxO1UjcHYCF67JsV+2dHqIDF8+SoLAScNro5t6 5F12R70OoMlRRDT3GUFRXry6vnOKOlftIkunD7qGHqJbnTHi+36qhXsRrPVbrv21YQ DGxAEnZDVTZSwW89xcIhoTrKrxJijIOYAHbe4dJ4= Message-ID: <4D9F894C.1030700@infracaninophile.co.uk> Date: Fri, 08 Apr 2011 23:16:44 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4D9EFAC6.4020906@lazybytes.org> <7EA5889E-77EF-4BAE-9655-C33692A75602@bsdimp.com> <4D9F2C88.4010205@lazybytes.org> In-Reply-To: X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD925B34CA594A9E6ABB5A5FA" X-Virus-Scanned: clamav-milter 0.97 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Subject: Re: ifconfig output: ipv4 netmask format X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2011 22:16:54 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD925B34CA594A9E6ABB5A5FA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 08/04/2011 16:53, Garrett Cooper wrote: > One thing I've been curious about for a while that I haven't had an > opportunity to look into is: what does IPV6 look like? I understand > that the /netmask bit is added to the end of addresses, but what does > the netmask actually look like? Like this: lucid-nonsense:~:% ifconfig re0 inet6 re0: flags=3D8843 metric 0 mtu 15= 00 options=3D389b inet6 fe80::e2cb:4eff:fe26:6481%re0 prefixlen 64 scopeid 0x1 inet6 2001:8b0:151:1:e2cb:4eff:fe26:6481 prefixlen 64 inet6 2001:8b0:151:1:: prefixlen 64 anycast inet6 2001:8b0:151:1:3950:9ee6:9c6b:8a8b prefixlen 64 inet6 2001:8b0:151:1:3fd3:cd67:fafa:3d78 prefixlen 64 inet6 2001:8b0:151:1:78ea:429a:bbd9:f62f prefixlen 64 inet6 2001:8b0:151:1:d2f:23d1:314c:5e2e prefixlen 64 inet6 2001:8b0:151:1:57f9:9484:e8b0:12d1 prefixlen 128 IPv6 doesn't deal in netmasks per-se: just in the length of the network prefix. (64 is typical. 48 also fairly common.) Cheers --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigD925B34CA594A9E6ABB5A5FA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2fiVIACgkQ8Mjk52CukIxKtQCfS1tuNEb9hyo6VYTmPrEPvomJ iMoAni65SzTagY/miUiNKwTQGgVPbfN8 =w6Fh -----END PGP SIGNATURE----- --------------enigD925B34CA594A9E6ABB5A5FA--