m_copypacket in if_bridge

Sten Spans sten at blinkenlights.nl
Wed Dec 14 00:39:04 PST 2005


On Wed, 14 Dec 2005, Andrew Thompson wrote:

> Hi,
>
>
> I have realised that if_bridge uses m_copypacket() in an unsafe way.
> The copied multicast packet is sent back into ether_input for local
> processing so that ipv6 works but m_copypacket() returns a readonly
> mbuf. The layer3 header needs to be aligned so I have changed this to
> m_dup+m_copyup.
>
> Can I get a review to ensure this is the correct fix

This certainly looks like a reasonable fix.
Thanks for making life better for sparc and alpha :)

-- 
Sten Spans

"There is a crack in everything, that's how the light gets in."
Leonard Cohen - Anthem


More information about the freebsd-net mailing list