From owner-freebsd-net@FreeBSD.ORG Mon Dec 12 23:56:24 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28E281065672 for ; Mon, 12 Dec 2011 23:56:24 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id E7F6E8FC0A for ; Mon, 12 Dec 2011 23:56:23 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id EB42D55ED4 for ; Tue, 13 Dec 2011 00:56:22 +0100 (CET) From: Stefan Bethke Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 13 Dec 2011 00:56:22 +0100 Message-Id: <600A8C6C-DAB4-4E22-A034-38224017166B@lassitu.de> To: FreeBSD Net Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Subject: "ifconfig media off"? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 23:56:24 -0000 I'm currently writing a driver to configure an ethernet switch chip (see = TL-WR1043ND on -embedded). I noticed that there doesn't seem to be a way to power down a phy right = now through the ifconfig media command. Would there be objections to extend the media subtype definitions to = include an "off", "poweroff" or "down" media subtype, and add code to = the relevant phy drivers to power down the phy for this media subtype? The difference between media subtype "none" and this new one would be = that there will be no link, even if there is a physical connection. = With media subtype "none", a 10 MBit/s half-duplex connection is = established, potentially confusing the remote end about the availability = of this link. On the local side, the link is down, so no packets are = exchanged. Stefan --=20 Stefan Bethke Fon +49 151 14070811