1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Allocate a header mbuf for the start of the encapsulated packet.

The rest of the code was treating it as a header mbuf, but it was
allocated as a normal mbuf.

This fixes the panic: ip_output no HDR when you have a multicast
tunnel configured.
This commit is contained in:
Bill Fenner 1996-11-23 19:07:02 +00:00
parent e77f3b436d
commit 2f1a0ba831
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19940

View File

@ -9,7 +9,7 @@
* Modified by Bill Fenner, PARC, April 1995
*
* MROUTING Revision: 3.5
* $Id: ip_mroute.c,v 1.33 1996/07/12 04:11:48 bde Exp $
* $Id: ip_mroute.c,v 1.34 1996/07/12 17:22:32 fenner Exp $
*/
#include "opt_mrouting.h"
@ -1575,10 +1575,10 @@ encap_send(ip, vifp, m)
* new mbuf so we can modify it. Try to fill the new
* mbuf since if we don't the ethernet driver will.
*/
MGET(mb_copy, M_DONTWAIT, MT_DATA);
MGETHDR(mb_copy, M_DONTWAIT, MT_HEADER);
if (mb_copy == NULL)
return;
mb_copy->m_data += 16;
mb_copy->m_data += max_linkhdr;
mb_copy->m_len = sizeof(multicast_encap_iphdr);
if ((mb_copy->m_next = m_copy(m, 0, M_COPYALL)) == NULL) {