Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Mar 2012 21:46:26 -0800
From:      Julian Elischer <julian@freebsd.org>
To:        hiren panchasara <hiren.panchasara@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Fwd: bridge interface type
Message-ID:  <4F545332.7060305@freebsd.org>
In-Reply-To: <CALCpEUEgFO_b8r4sA==a1MM4LEvQN5d%2BGxZ7yS-z665yw1q_ag@mail.gmail.com>
References:  <CALCpEUGQ-3tci4EXrTA8yroydWxPoUpnH4sxtQn0uti9cP=P1Q@mail.gmail.com> <CALCpEUEgFO_b8r4sA==a1MM4LEvQN5d%2BGxZ7yS-z665yw1q_ag@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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<hiren.panchasara@gmail.com>
> 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<BROADCAST,SIMPLEX,MULTICAST>  metric 0 mtu 1500
>      ether 02:32:c8:92:b6:01
>      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>      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"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F545332.7060305>