Re: m_copypacket in if_bridge

2005-12-14 Thread Sten Spans
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 align

m_copypacket in if_bridge

2005-12-13 Thread Andrew Thompson
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. C