From owner-freebsd-net@FreeBSD.ORG Sun Mar 4 21:58:34 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D79E2106566C for ; Sun, 4 Mar 2012 21:58:34 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5516A8FC17 for ; Sun, 4 Mar 2012 21:58:34 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so3602658bkc.13 for ; Sun, 04 Mar 2012 13:58:33 -0800 (PST) Received-SPF: pass (google.com: domain of hiren.panchasara@gmail.com designates 10.204.150.88 as permitted sender) client-ip=10.204.150.88; Authentication-Results: mr.google.com; spf=pass (google.com: domain of hiren.panchasara@gmail.com designates 10.204.150.88 as permitted sender) smtp.mail=hiren.panchasara@gmail.com; dkim=pass header.i=hiren.panchasara@gmail.com Received: from mr.google.com ([10.204.150.88]) by 10.204.150.88 with SMTP id x24mr9494588bkv.82.1330898313454 (num_hops = 1); Sun, 04 Mar 2012 13:58:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1/0+6SVoJmMvTOiVoGItKuDSJDuA020sMAd4MQc7Mwk=; b=QLY5EWnbajaHb+GjTvCRlzqNIZYKBBOOPZgAGughCRXJB0slLZxXLEEKHsYbpdM1/p Fi343QjZ2opNF697Bw6C8WOpeGjLDizHrU5wOJuOPvf7d1XcfI5yrlWxhbEXF5iTKCLw yswJo//z9Mkgc3cQGyT9i9u3lNxzLX/NNNWBXAzQ8qabjdexwl2zB0+U+xhWw4VsVteu 4qKZFh9n7l9CiqPoJv7bJ3ipnbA5yzQFCxtF9R1KPcQZ4JsdQkeBYG7sjm8Sy0ugDg0o dTbDYGme2EEJ0smMDTQm7YImNp5hlVX0/3L8Co9gFn2Z5jLfI34u5p8TZAbtEe9jaxSG ORRA== MIME-Version: 1.0 Received: by 10.204.150.88 with SMTP id x24mr7562198bkv.82.1330896984523; Sun, 04 Mar 2012 13:36:24 -0800 (PST) Received: by 10.204.230.5 with HTTP; Sun, 4 Mar 2012 13:36:24 -0800 (PST) In-Reply-To: References: Date: Sun, 4 Mar 2012 13:36:24 -0800 Message-ID: From: hiren panchasara To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Sun, 04 Mar 2012 21:58:34 -0000 Is this the correct mailer for such questions? ---------- 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