Errors using span interface on if_bridge(4)

hiren panchasara hiren.panchasara at gmail.com
Sat Feb 1 01:24:00 UTC 2014


On Fri, Jan 31, 2014 at 3:45 PM, hiren panchasara
<hiren.panchasara at gmail.com> wrote:
<skip>
> Looking at the code: if_bridge.c has bridge_span() which does
> m_copypacket() to span interface.
>
> 2549                 mc = m_copypacket(m, M_NOWAIT);
> 2550                 if (mc == NULL) {
> 2551                         sc->sc_ifp->if_oerrors++;
> 2552                         continue;
> 2553                 }
> 2554
> 2555                 bridge_enqueue(sc, dst_if, mc);
>
> Now, I am not sure if its failing at m_copypacket() or after that in
> bridge_enqueue(). Not sure how do I look at if_oerrors count.

-bash-4.2$ netstat -I ix3
Name    Mtu Network       Address              Ipkts Ierrs Idrop
Opkts Oerrs  Coll
ix3    1500 <Link#8>      90:e2:ba:30:73:41 9869468123     0 439521
28167217     0     0
ix3       - fe80::92e2:ba fe80::92e2:baff:f        0     -     -
 2     -     -
ix3       - 192.168.0.0   192.168.0.3              0     -     -
 0     -     -

(sorry if this doesn't format/line-wrap correctly).

Basically Oerrs is 0 here. So I _think_ its failing in/after bridge_enqueue()??

cheers,
Hiren


More information about the freebsd-net mailing list