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

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

Diff for /src/sys/netinet/udp_usrreq.c between version 1.75 and 1.76

version 1.75, 2001/01/24 09:04:16 version 1.76, 2001/05/08 10:15:14
Line 110 
Line 110 
 #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 332  udp6_input(mp, offp, proto)
Line 337  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

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

CVSweb <webmaster@jp.NetBSD.org>