ipsec_output.c (105197) | ipsec_output.c (108466) |
---|---|
1/* $FreeBSD: head/sys/netipsec/ipsec_output.c 105197 2002-10-16 02:10:08Z sam $ */ | 1/* $FreeBSD: head/sys/netipsec/ipsec_output.c 108466 2002-12-30 20:22:40Z sam $ */ |
2/* $KAME: ipsec.c,v 1.103 2001/05/24 07:14:18 sakane Exp $ */ 3 4/* 5 * IPsec output processing. 6 */ 7#include "opt_inet.h" 8#include "opt_inet6.h" 9#include "opt_ipsec.h" --- 459 unchanged lines hidden (view full) --- 469 ip6 = mtod(m, struct ip6_hdr *); 470 hlen = sizeof(struct ip6_hdr); 471 if (m->m_len > hlen) { 472 MGETHDR(mh, M_DONTWAIT, MT_HEADER); 473 if (!mh) { 474 m_freem(m); 475 return NULL; 476 } | 2/* $KAME: ipsec.c,v 1.103 2001/05/24 07:14:18 sakane Exp $ */ 3 4/* 5 * IPsec output processing. 6 */ 7#include "opt_inet.h" 8#include "opt_inet6.h" 9#include "opt_ipsec.h" --- 459 unchanged lines hidden (view full) --- 469 ip6 = mtod(m, struct ip6_hdr *); 470 hlen = sizeof(struct ip6_hdr); 471 if (m->m_len > hlen) { 472 MGETHDR(mh, M_DONTWAIT, MT_HEADER); 473 if (!mh) { 474 m_freem(m); 475 return NULL; 476 } |
477 M_COPY_PKTHDR(mh, m); | 477 M_MOVE_PKTHDR(mh, m); |
478 MH_ALIGN(mh, hlen); 479 m->m_len -= hlen; 480 m->m_data += hlen; 481 mh->m_next = m; 482 m = mh; 483 m->m_len = hlen; 484 bcopy((caddr_t)ip6, mtod(m, caddr_t), hlen); 485 } else if (m->m_len < hlen) { --- 252 unchanged lines hidden --- | 478 MH_ALIGN(mh, hlen); 479 m->m_len -= hlen; 480 m->m_data += hlen; 481 mh->m_next = m; 482 m = mh; 483 m->m_len = hlen; 484 bcopy((caddr_t)ip6, mtod(m, caddr_t), hlen); 485 } else if (m->m_len < hlen) { --- 252 unchanged lines hidden --- |