[BACK]Return to udp6_usrreq.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / netinet6

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/netinet6/udp6_usrreq.c between version 1.30.2.3 and 1.30.2.4

version 1.30.2.3, 2001/04/06 00:29:38 version 1.30.2.4, 2001/05/09 19:38:47
Line 103 
Line 103 
 #endif /*IPSEC*/  #endif /*IPSEC*/
   
 #include "faith.h"  #include "faith.h"
   #if defined(NFAITH) && NFAITH > 0
   #include <net/if_faith.h>
   #endif
   
 /*  /*
  * UDP protocol inplementation.   * UDP protocol inplementation.
Line 161  udp6_input(mp, offp, proto)
Line 164  udp6_input(mp, offp, proto)
         u_int32_t plen, ulen;          u_int32_t plen, ulen;
         struct sockaddr_in6 udp_in6;          struct sockaddr_in6 udp_in6;
   
           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++;
   
         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

Legend:
Removed from v.1.30.2.3  
changed lines
  Added in v.1.30.2.4

CVSweb <webmaster@jp.NetBSD.org>