[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.71 and 1.72

version 1.71, 2000/08/30 15:04:45 version 1.72, 2000/10/17 03:06:44
Line 131  int udpcksum = 1;
Line 131  int udpcksum = 1;
 int     udpcksum = 0;           /* XXX */  int     udpcksum = 0;           /* XXX */
 #endif  #endif
   
   #ifdef INET
 static void udp4_sendup __P((struct mbuf *, int, struct sockaddr *,  static void udp4_sendup __P((struct mbuf *, int, struct sockaddr *,
         struct socket *));          struct socket *));
 static int udp4_realinput __P((struct sockaddr_in *, struct sockaddr_in *,  static int udp4_realinput __P((struct sockaddr_in *, struct sockaddr_in *,
         struct mbuf *, int));          struct mbuf *, int));
   #endif
 #ifdef INET6  #ifdef INET6
 static void udp6_sendup __P((struct mbuf *, int, struct sockaddr *,  static void udp6_sendup __P((struct mbuf *, int, struct sockaddr *,
         struct socket *));          struct socket *));
Line 143  static int in6_mcmatch __P((struct in6pc
Line 145  static int in6_mcmatch __P((struct in6pc
 static int udp6_realinput __P((int, struct sockaddr_in6 *,  static int udp6_realinput __P((int, struct sockaddr_in6 *,
         struct sockaddr_in6 *, struct mbuf *, int));          struct sockaddr_in6 *, struct mbuf *, int));
 #endif  #endif
   #ifdef INET
 static  void udp_notify __P((struct inpcb *, int));  static  void udp_notify __P((struct inpcb *, int));
   #endif
   
 #ifndef UDBHASHSIZE  #ifndef UDBHASHSIZE
 #define UDBHASHSIZE     128  #define UDBHASHSIZE     128
Line 154  void
Line 158  void
 udp_init()  udp_init()
 {  {
   
   #ifdef INET
         in_pcbinit(&udbtable, udbhashsize, udbhashsize);          in_pcbinit(&udbtable, udbhashsize, udbhashsize);
   #endif
 }  }
   
 #ifndef UDP6  #ifndef UDP6
   #ifdef INET
 void  void
 #if __STDC__  #if __STDC__
 udp_input(struct mbuf *m, ...)  udp_input(struct mbuf *m, ...)
Line 310  bad:
Line 317  bad:
         if (m)          if (m)
                 m_freem(m);                  m_freem(m);
 }  }
   #endif
   
 #ifdef INET6  #ifdef INET6
 int  int
Line 420  bad:
Line 428  bad:
 }  }
 #endif  #endif
   
   #ifdef INET
 static void  static void
 udp4_sendup(m, off, src, so)  udp4_sendup(m, off, src, so)
         struct mbuf *m;          struct mbuf *m;
Line 474  udp4_sendup(m, off, src, so)
Line 483  udp4_sendup(m, off, src, so)
                         sorwakeup(so);                          sorwakeup(so);
         }          }
 }  }
   #endif
   
 #ifdef INET6  #ifdef INET6
 static void  static void
Line 520  udp6_sendup(m, off, src, so)
Line 530  udp6_sendup(m, off, src, so)
 }  }
 #endif  #endif
   
   #ifdef INET
 static int  static int
 udp4_realinput(src, dst, m, off)  udp4_realinput(src, dst, m, off)
         struct sockaddr_in *src;          struct sockaddr_in *src;
Line 656  udp4_realinput(src, dst, m, off)
Line 667  udp4_realinput(src, dst, m, off)
 bad:  bad:
         return rcvcnt;          return rcvcnt;
 }  }
   #endif
   
 #ifdef INET6  #ifdef INET6
 static int  static int
Line 1127  bad:
Line 1139  bad:
 }  }
 #endif /*UDP6*/  #endif /*UDP6*/
   
   #ifdef INET
 /*  /*
  * Notify a udp user of an asynchronous error;   * Notify a udp user of an asynchronous error;
  * just wake up so that he can collect error status.   * just wake up so that he can collect error status.
Line 1462  udp_sysctl(name, namelen, oldp, oldlenp,
Line 1475  udp_sysctl(name, namelen, oldp, oldlenp,
         }          }
         /* NOTREACHED */          /* NOTREACHED */
 }  }
   #endif

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

CVSweb <webmaster@jp.NetBSD.org>