From owner-freebsd-net@FreeBSD.ORG Mon Mar 5 05:46:18 2012 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 70F25106566B for ; Mon, 5 Mar 2012 05:46:18 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 3FCA28FC14 for ; Mon, 5 Mar 2012 05:46:18 +0000 (UTC) Received: from julian-mac.elischer.org (c-67-180-24-15.hsd1.ca.comcast.net [67.180.24.15]) (authenticated bits=0) by vps1.elischer.org (8.14.5/8.14.5) with ESMTP id q255kFaC035112 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 4 Mar 2012 21:46:17 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <4F545332.7060305@freebsd.org> Date: Sun, 04 Mar 2012 21:46:26 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 MIME-Version: 1.0 To: hiren panchasara References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Fwd: bridge interface type 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, 05 Mar 2012 05:46:18 -0000 On 3/4/12 1:36 PM, hiren panchasara wrote: > Is this the correct mailer for such questions? probably net@freebsd.org would be better. I do not understand why a bridge needs an interface type at all it seems a very odd way to implement it to me.. see how ng_bridge is done.. that makes a lot more sense to me. > ---------- Forwarded message ---------- > From: hiren panchasara > Date: Sat, Mar 3, 2012 at 12:47 AM > Subject: bridge interface type > To: freebsd-hackers@freebsd.org > > > > I created bridge1 this way: > > $ sudo ifconfig bridge create > Password: > bridge1 > > $ ifconfig bridge1 > bridge1: flags=8802 metric 0 mtu 1500 > ether 02:32:c8:92:b6:01 > nd6 options=29 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 > root id 00:00:00:00:00:00 priority 0 ifcost 0 port 0 > > but when I try to look at the interface via "struct sockaddr_dl", > sdl = (struct sockaddr_dl *) ifa->ifa_addr; > > sdl->sdl_type is "IFT_ETHER" for that interface. > > Shouldn't it be "IFT_BRIDGE"? What am I missing here? > > Thanks in advance, > Hiren > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >