FreeBSD Bugzilla – Attachment 63158 Details for
Bug 94273
[ipsec] [patch] IPIP decapsulation problem in FAST_IPSEC stack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 746 bytes, created by
VANHULLEBUS Yvan
on 2006-03-09 14:40:13 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
VANHULLEBUS Yvan
Created:
2006-03-09 14:40:13 UTC
Size:
746 bytes
patch
obsolete
>--- netipsec/ipsec_input.c.orig Thu Mar 9 15:00:26 2006 >+++ netipsec/ipsec_input.c Thu Mar 9 15:01:15 2006 >@@ -323,8 +323,6 @@ ipsec4_common_input_cb(struct mbuf *m, s > > /* IP-in-IP encapsulation */ > if (prot == IPPROTO_IPIP) { >- struct ip ipn; >- > if (m->m_pkthdr.len - skip < sizeof(struct ip)) { > IPSEC_ISTAT(sproto, espstat.esps_hdrops, > ahstat.ahs_hdrops, >@@ -332,9 +330,8 @@ ipsec4_common_input_cb(struct mbuf *m, s > error = EINVAL; > goto bad; > } >- /* ipn will now contain the inner IPv4 header */ >- m_copydata(m, ip->ip_hl << 2, sizeof(struct ip), >- (caddr_t) &ipn); >+ /* remove the outer IPv4 header */ >+ m_striphdr(m, 0, ip->ip_hl << 2); > > #ifdef notyet > /* XXX PROXY address isn't recorded in SAH */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 94273
: 63158