Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_forward.c
Show All 32 Lines | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include "opt_inet.h" | #include "opt_inet.h" | ||||
#include "opt_inet6.h" | #include "opt_inet6.h" | ||||
#include "opt_ipsec.h" | #include "opt_ipsec.h" | ||||
#include "opt_ipstealth.h" | #include "opt_ipstealth.h" | ||||
#include "opt_sctp.h" | #include "opt_sctp.h" | ||||
tuexen: Can you get this committed, since it doesn't seem to be related to this change, but it more a… | |||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/mbuf.h> | #include <sys/mbuf.h> | ||||
#include <sys/domain.h> | #include <sys/domain.h> | ||||
#include <sys/protosw.h> | #include <sys/protosw.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
▲ Show 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | #endif | ||||
if (m->m_flags & M_FASTFWD_OURS) { | if (m->m_flags & M_FASTFWD_OURS) { | ||||
if (m->m_pkthdr.rcvif == NULL) | if (m->m_pkthdr.rcvif == NULL) | ||||
m->m_pkthdr.rcvif = V_loif; | m->m_pkthdr.rcvif = V_loif; | ||||
if (m->m_pkthdr.csum_flags & CSUM_DELAY_DATA_IPV6) { | if (m->m_pkthdr.csum_flags & CSUM_DELAY_DATA_IPV6) { | ||||
m->m_pkthdr.csum_flags |= | m->m_pkthdr.csum_flags |= | ||||
CSUM_DATA_VALID_IPV6 | CSUM_PSEUDO_HDR; | CSUM_DATA_VALID_IPV6 | CSUM_PSEUDO_HDR; | ||||
m->m_pkthdr.csum_data = 0xffff; | m->m_pkthdr.csum_data = 0xffff; | ||||
} | } | ||||
#ifdef SCTP | #if defined(SCTP) || defined(SCTP_SUPPORT) | ||||
if (m->m_pkthdr.csum_flags & CSUM_SCTP_IPV6) | if (m->m_pkthdr.csum_flags & CSUM_SCTP_IPV6) | ||||
m->m_pkthdr.csum_flags |= CSUM_SCTP_VALID; | m->m_pkthdr.csum_flags |= CSUM_SCTP_VALID; | ||||
#endif | #endif | ||||
error = netisr_queue(NETISR_IPV6, m); | error = netisr_queue(NETISR_IPV6, m); | ||||
goto out; | goto out; | ||||
} | } | ||||
/* Or forward to some other address? */ | /* Or forward to some other address? */ | ||||
if ((m->m_flags & M_IP6_NEXTHOP) && | if ((m->m_flags & M_IP6_NEXTHOP) && | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
Can you get this committed, since it doesn't seem to be related to this change, but it more a general fix.