Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet6/ip6_forward.c
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | ip6_forward(struct mbuf *m, int srcrt) | ||||
int error, type = 0, code = 0; | int error, type = 0, code = 0; | ||||
struct mbuf *mcopy = NULL; | struct mbuf *mcopy = NULL; | ||||
struct ifnet *origifp; /* maybe unnecessary */ | struct ifnet *origifp; /* maybe unnecessary */ | ||||
u_int32_t inzone, outzone; | u_int32_t inzone, outzone; | ||||
struct in6_addr src_in6, dst_in6, odst; | struct in6_addr src_in6, dst_in6, odst; | ||||
#ifdef IPSEC | #ifdef IPSEC | ||||
struct secpolicy *sp = NULL; | struct secpolicy *sp = NULL; | ||||
#endif | #endif | ||||
#ifdef SCTP | |||||
int sw_csum; | |||||
#endif | |||||
struct m_tag *fwd_tag; | struct m_tag *fwd_tag; | ||||
char ip6bufs[INET6_ADDRSTRLEN], ip6bufd[INET6_ADDRSTRLEN]; | char ip6bufs[INET6_ADDRSTRLEN], ip6bufd[INET6_ADDRSTRLEN]; | ||||
/* | /* | ||||
* Do not forward packets to multicast destination (should be handled | * Do not forward packets to multicast destination (should be handled | ||||
* by ip6_mforward(). | * by ip6_mforward(). | ||||
* Do not forward packets with unspecified source. It was discussed | * Do not forward packets with unspecified source. It was discussed | ||||
* in July 2000, on the ipngwg mailing list. | * in July 2000, on the ipngwg mailing list. | ||||
▲ Show 20 Lines • Show All 513 Lines • Show Last 20 Lines |