[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.182 and 1.183.2.2

version 1.182, 2011/07/17 20:54:53 version 1.183.2.2, 2012/10/30 17:22:47
Line 128  __KERNEL_RCSID(0, "$NetBSD$");
Line 128  __KERNEL_RCSID(0, "$NetBSD$");
 #endif  #endif
 #endif  /* FAST_IPSEC */  #endif  /* FAST_IPSEC */
   
 #ifdef IPSEC  
 #include <netinet6/ipsec.h>  
 #include <netinet6/ipsec_private.h>  
 #include <netinet6/esp.h>  
 #include <netkey/key.h>  
 #endif /* IPSEC */  
   
 #ifdef COMPAT_50  #ifdef COMPAT_50
 #include <compat/sys/socket.h>  #include <compat/sys/socket.h>
 #endif  #endif
Line 633  udp4_sendup(struct mbuf *m, int off /* o
Line 626  udp4_sendup(struct mbuf *m, int off /* o
                 return;                  return;
         }          }
   
 #if defined(IPSEC) || defined(FAST_IPSEC)  #if defined(FAST_IPSEC)
         /* check AH/ESP integrity. */          /* check AH/ESP integrity. */
         if (so != NULL && ipsec4_in_reject_so(m, so)) {          if (so != NULL && ipsec4_in_reject_so(m, so)) {
                 IPSEC_STATINC(IPSEC_STAT_IN_POLVIO);                  IPSEC_STATINC(IPSEC_STAT_IN_POLVIO);
Line 683  udp6_sendup(struct mbuf *m, int off /* o
Line 676  udp6_sendup(struct mbuf *m, int off /* o
                 return;                  return;
         in6p = sotoin6pcb(so);          in6p = sotoin6pcb(so);
   
 #if defined(IPSEC) || defined(FAST_IPSEC)  #if defined(FAST_IPSEC)
         /* check AH/ESP integrity. */          /* check AH/ESP integrity. */
         if (so != NULL && ipsec6_in_reject_so(m, so)) {          if (so != NULL && ipsec6_in_reject_so(m, so)) {
                 IPSEC6_STATINC(IPSEC_STAT_IN_POLVIO);                  IPSEC6_STATINC(IPSEC_STAT_IN_POLVIO);
Line 1085  udp_ctloutput(int op, struct socket *so,
Line 1078  udp_ctloutput(int op, struct socket *so,
                                 break;                                  break;
                         }                          }
                         break;                          break;
   
                 default:                  default:
                         error = ENOPROTOOPT;                          error = ENOPROTOOPT;
                         break;                          break;
Line 1374  sysctl_net_inet_udp_stats(SYSCTLFN_ARGS)
Line 1367  sysctl_net_inet_udp_stats(SYSCTLFN_ARGS)
 static void  static void
 sysctl_net_inet_udp_setup(struct sysctllog **clog)  sysctl_net_inet_udp_setup(struct sysctllog **clog)
 {  {
   
         sysctl_createv(clog, 0, NULL, NULL,          sysctl_createv(clog, 0, NULL, NULL,
                        CTLFLAG_PERMANENT,                         CTLFLAG_PERMANENT,
                        CTLTYPE_NODE, "net", NULL,                         CTLTYPE_NODE, "net", NULL,
Line 1581  udp4_espinudp(struct mbuf **mp, int off,
Line 1573  udp4_espinudp(struct mbuf **mp, int off,
         esp4_input(n, iphdrlen);          esp4_input(n, iphdrlen);
 #endif  #endif
   
         /* We handled it, it shoudln't be handled by UDP */          /* We handled it, it shouldn't be handled by UDP */
         return 1;          return 1;
 }  }
 #endif  #endif

Legend:
Removed from v.1.182  
changed lines
  Added in v.1.183.2.2

CVSweb <webmaster@jp.NetBSD.org>