I like to mention that after update to FreeBSD 12.1 Stable r360998 the
correct patch is:
--- if_bridge.c.1st 2020-02-05 01:47:03.0 +0100
+++ if_bridge.c 2020-05-18 17:41:11.0 +0200
@@ -2406,6 +2406,10 @@
(*bifp->if_input)(bifp, mc2);
}
+
> On 28 Dec 2019, at 12:52, Andreas Longwitz wrote:
>
> In the meantime I have understand I was wrong about the code snippet
>
>> mc2 = m_dup(m, M_NOWAIT);
>> if (mc2 != NULL) {
>> /* Keep the layer3 header aligned */
>> int i = min(mc2->m_pkthdr.len, max_protohdr);
>> mc2
In the meantime I have understand I was wrong about the code snippet
>mc2 = m_dup(m, M_NOWAIT);
>if (mc2 != NULL) {
> /* Keep the layer3 header aligned */
> int i = min(mc2->m_pkthdr.len, max_protohdr);
> mc2 = m_copyup(mc2, i, ETHER_ALIGN);
>}
>if (mc2 != NULL) {