[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.80.2.2 and 1.85.2.1

version 1.80.2.2, 2002/01/10 20:03:04 version 1.85.2.1, 2001/11/12 21:19:29
Line 64 
Line 64 
  *      @(#)udp_usrreq.c        8.6 (Berkeley) 5/23/95   *      @(#)udp_usrreq.c        8.6 (Berkeley) 5/23/95
  */   */
   
 #include <sys/cdefs.h>  
 __KERNEL_RCSID(0, "$NetBSD$");  
   
 #include "opt_inet.h"  #include "opt_inet.h"
 #include "opt_ipsec.h"  #include "opt_ipsec.h"
 #include "opt_inet_csum.h"  #include "opt_inet_csum.h"
Line 630  udp4_realinput(src, dst, m, off)
Line 627  udp4_realinput(src, dst, m, off)
                  */                   */
   
                 /*                  /*
                  * KAME note: traditionally we dropped udpiphdr from mbuf here.                   * KAME note: usually we drop udpiphdr from mbuf here.
                  * we need udpiphdr for IPsec processing so we do that later.                   * we need udpiphdr for IPsec processing so we do that later.
                  */                   */
                 /*                  /*
Line 736  udp6_realinput(af, src, dst, m, off)
Line 733  udp6_realinput(af, src, dst, m, off)
                  */                   */
   
                 /*                  /*
                  * KAME note: traditionally we dropped udpiphdr from mbuf here.                   * KAME note: usually we drop udpiphdr from mbuf here.
                  * we need udpiphdr for IPsec processing so we do that later.                   * we need udpiphdr for IPsec processing so we do that later.
                  */                   */
                 /*                  /*
Line 749  udp6_realinput(af, src, dst, m, off)
Line 746  udp6_realinput(af, src, dst, m, off)
                         if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr)) {                          if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr)) {
                                 if (!IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &dst6))                                  if (!IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &dst6))
                                         continue;                                          continue;
                         } else {                          }
                           else {
                                 if (IN6_IS_ADDR_V4MAPPED(&dst6) &&                                  if (IN6_IS_ADDR_V4MAPPED(&dst6) &&
                                     (in6p->in6p_flags & IN6P_IPV6_V6ONLY))                                      (in6p->in6p_flags & IN6P_IPV6_V6ONLY))
                                         continue;                                          continue;
Line 758  udp6_realinput(af, src, dst, m, off)
Line 756  udp6_realinput(af, src, dst, m, off)
                                 if (!IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr,                                  if (!IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr,
                                     &src6) || in6p->in6p_fport != sport)                                      &src6) || in6p->in6p_fport != sport)
                                         continue;                                          continue;
                         } else {                          }
                           else {
                                 if (IN6_IS_ADDR_V4MAPPED(&src6) &&                                  if (IN6_IS_ADDR_V4MAPPED(&src6) &&
                                     (in6p->in6p_flags & IN6P_IPV6_V6ONLY))                                      (in6p->in6p_flags & IN6P_IPV6_V6ONLY))
                                         continue;                                          continue;

Legend:
Removed from v.1.80.2.2  
changed lines
  Added in v.1.85.2.1

CVSweb <webmaster@jp.NetBSD.org>