ip_mroute.c (106968) | ip_mroute.c (109623) |
---|---|
1/* 2 * IP multicast forwarding procedures 3 * 4 * Written by David Waitzman, BBN Labs, August 1988. 5 * Modified by Steve Deering, Stanford, February 1989. 6 * Modified by Mark J. Steiglitz, Stanford, May, 1991 7 * Modified by Van Jacobson, LBL, January 1993 8 * Modified by Ajit Thyagarajan, PARC, August 1993 9 * Modified by Bill Fenner, PARC, April 1995 10 * 11 * MROUTING Revision: 3.5 | 1/* 2 * IP multicast forwarding procedures 3 * 4 * Written by David Waitzman, BBN Labs, August 1988. 5 * Modified by Steve Deering, Stanford, February 1989. 6 * Modified by Mark J. Steiglitz, Stanford, May, 1991 7 * Modified by Van Jacobson, LBL, January 1993 8 * Modified by Ajit Thyagarajan, PARC, August 1993 9 * Modified by Bill Fenner, PARC, April 1995 10 * 11 * MROUTING Revision: 3.5 |
12 * $FreeBSD: head/sys/netinet/ip_mroute.c 106968 2002-11-15 22:53:53Z luigi $ | 12 * $FreeBSD: head/sys/netinet/ip_mroute.c 109623 2003-01-21 08:56:16Z alfred $ |
13 */ 14 15#include "opt_mac.h" 16#include "opt_mrouting.h" 17#include "opt_random_ip_id.h" 18 19#include <sys/param.h> 20#include <sys/kernel.h> --- 1377 unchanged lines hidden (view full) --- 1398 m->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA; 1399 } 1400 1401 /* 1402 * copy the old packet & pullup its IP header into the 1403 * new mbuf so we can modify it. Try to fill the new 1404 * mbuf since if we don't the ethernet driver will. 1405 */ | 13 */ 14 15#include "opt_mac.h" 16#include "opt_mrouting.h" 17#include "opt_random_ip_id.h" 18 19#include <sys/param.h> 20#include <sys/kernel.h> --- 1377 unchanged lines hidden (view full) --- 1398 m->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA; 1399 } 1400 1401 /* 1402 * copy the old packet & pullup its IP header into the 1403 * new mbuf so we can modify it. Try to fill the new 1404 * mbuf since if we don't the ethernet driver will. 1405 */ |
1406 MGETHDR(mb_copy, M_DONTWAIT, MT_HEADER); | 1406 MGETHDR(mb_copy, M_NOWAIT, MT_HEADER); |
1407 if (mb_copy == NULL) 1408 return; 1409#ifdef MAC 1410 mac_create_mbuf_multicast_encap(m, vifp->v_ifp, mb_copy); 1411#endif 1412 mb_copy->m_data += max_linkhdr; 1413 mb_copy->m_len = sizeof(multicast_encap_iphdr); 1414 --- 506 unchanged lines hidden --- | 1407 if (mb_copy == NULL) 1408 return; 1409#ifdef MAC 1410 mac_create_mbuf_multicast_encap(m, vifp->v_ifp, mb_copy); 1411#endif 1412 mb_copy->m_data += max_linkhdr; 1413 mb_copy->m_len = sizeof(multicast_encap_iphdr); 1414 --- 506 unchanged lines hidden --- |