Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2004 09:09:49 +0200
From:      Iasen Kostov <tbyte@OTEL.net>
To:        freebsd-net@freebsd.org
Subject:   bridge and maximum MAC entries
Message-ID:  <41A2E23D.304@OTEL.net>

next in thread | raw e-mail | index | archive | help
    Hi,
if I understand next code correctly maximum number of MACs is bound to 
maximum number of ports ?!?. Why is that ?
code from net/bridge.c:
    c[n_clusters].my_macs = (struct bdg_addr *)
            malloc(BDG_MAX_PORTS * sizeof(struct bdg_addr),
                M_IFADDR, M_NOWAIT | M_ZERO);

The best will be to allocate MAC entries dynamically. But there should 
be at least another definition for
maximum MACs for port something like BDG_MAX_MACS ... which could be set 
at compile time because the current
situation doesn't make sense at least for me or possibly I misunderstand 
something.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41A2E23D.304>