From owner-freebsd-net@FreeBSD.ORG Thu Sep 23 07:37:55 2010 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 80C88106564A for ; Thu, 23 Sep 2010 07:37:55 +0000 (UTC) (envelope-from sushanth_rai@yahoo.com) Received: from web180008.mail.gq1.yahoo.com (web180008.mail.gq1.yahoo.com [67.195.8.72]) by mx1.freebsd.org (Postfix) with SMTP id 3B44C8FC12 for ; Thu, 23 Sep 2010 07:37:55 +0000 (UTC) Received: (qmail 44696 invoked by uid 60001); 23 Sep 2010 07:11:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1285225869; bh=uM+gmUBa7m24R0O6Eg2ultc8cHQo1HJFPoyvEuraxIA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=ys/7EUX8RtIFvKgyfzdfl3AJlgq0oZTgmAGKTuqlfeMgm3y64Yf1pGiyakU0F8/Cva9XtJZkj0gNHMaC/n+YPipOFAfHwhMLuzLzM3vbTlGixmaeVsxI8SVPVTyQcli06B0uF6FjW2BiqPv0MrQjP1ejknoksJad5mKS2LapriE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=LTCeCh0SfvaaFghpFRhiYVc88C70HOQ+yqeBPa0TdZ17QksanaENPZPV8zwV7IN/Uo08ZVqUVo/LQI8SaiGBbK2137vQfyA07mVRqj2fwqKbiIOgsdS1PbIiSaI27RWWGe5k6zJNzq/KdxtECvE20nuRNbqQ89qkd0vHGTqcSsU=; Message-ID: <916265.44631.qm@web180008.mail.gq1.yahoo.com> X-YMail-OSG: z3_BKy8VM1n6Pqbg9BE_dBje30FD9VjRjiAm3A4JGONM0Bm BOYIHV201fL_igcEKooYAs5uc2iyIgQ1XGIvI7XscwB3KPkXyaPb_zbd6p2q bQwjjW0nQjeTqmGjvJB.VcrlxIu4.4JdE1txnfGxa_fjqDp.ZROmwrKzZbqN c2F3dPV1VDCt7mVWUQ1K7oDzeI8lMaPo2hPsoKz6DjCFWv5KPFp9LFH7W93l b1nbEJUhspPanBCinJcTaRhzbcPnOYZ34mCNTmBkPMK_IgfmRl5DS_MJMVj3 wzW3Zu3IpAnJmDx32zCTo1UlgE7sBRDEBuUoYrDXcCc8I6JAoCdlUjw-- Received: from [75.62.238.247] by web180008.mail.gq1.yahoo.com via HTTP; Thu, 23 Sep 2010 00:11:09 PDT X-Mailer: YahooMailClassic/11.4.9 YahooMailWebService/0.8.105.279950 Date: Thu, 23 Sep 2010 00:11:09 -0700 (PDT) From: Sushanth Rai To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Changing link status in bge driver 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: Thu, 23 Sep 2010 07:37:55 -0000 Hello, I'm using BCM5715C based NIC card on a FreeBSD 7.2 system. I would like to simulate condition where the PHY layer is powered-off i.e, the link status should show as "no carrier". When I do "ifconfig down", it just turns-off the driver and the link status is still active. Is there is anything I can do in the bge driver or anywhere else in the software stack to simulate this condition without physically disconnecting the cable ? Thanks, Sushanth