| version 1.66.4.4, 2001/04/06 00:26:54 |
version 1.66.4.5, 2001/05/09 19:37:41 |
|
|
| #endif |
#endif |
| #endif |
#endif |
| |
|
| |
#include "faith.h" |
| |
#if defined(NFAITH) && NFAITH > 0 |
| |
#include <net/if_faith.h> |
| |
#endif |
| |
|
| #include <machine/stdarg.h> |
#include <machine/stdarg.h> |
| |
|
| #ifdef IPSEC |
#ifdef IPSEC |
| Line 325 udp6_input(mp, offp, proto) |
|
| Line 330 udp6_input(mp, offp, proto) |
|
| struct udphdr *uh; |
struct udphdr *uh; |
| u_int32_t plen, ulen; |
u_int32_t plen, ulen; |
| |
|
| |
#ifndef PULLDOWN_TEST |
| |
IP6_EXTHDR_CHECK(m, off, sizeof(struct udphdr), IPPROTO_DONE); |
| |
#endif |
| |
ip6 = mtod(m, struct ip6_hdr *); |
| |
|
| #if defined(NFAITH) && 0 < NFAITH |
#if defined(NFAITH) && 0 < NFAITH |
| if (m->m_pkthdr.rcvif) { |
if (faithprefix(&ip6->ip6_dst)) { |
| if (m->m_pkthdr.rcvif->if_type == IFT_FAITH) { |
/* send icmp6 host unreach? */ |
| /* send icmp6 host unreach? */ |
m_freem(m); |
| m_freem(m); |
return IPPROTO_DONE; |
| return IPPROTO_DONE; |
|
| } |
|
| } |
} |
| #endif |
#endif |
| |
|
| udp6stat.udp6s_ipackets++; |
udp6stat.udp6s_ipackets++; |
| |
|
| #ifndef PULLDOWN_TEST |
|
| IP6_EXTHDR_CHECK(m, off, sizeof(struct udphdr), IPPROTO_DONE); |
|
| #endif |
|
| |
|
| ip6 = mtod(m, struct ip6_hdr *); |
|
| /* check for jumbogram is done in ip6_input. we can trust pkthdr.len */ |
/* check for jumbogram is done in ip6_input. we can trust pkthdr.len */ |
| plen = m->m_pkthdr.len - off; |
plen = m->m_pkthdr.len - off; |
| #ifndef PULLDOWN_TEST |
#ifndef PULLDOWN_TEST |