[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.148 and 1.148.6.1

version 1.148, 2006/07/23 22:06:13 version 1.148.6.1, 2006/10/22 06:07:29
Line 177  static void udp_notify (struct inpcb *, 
Line 177  static void udp_notify (struct inpcb *, 
 int     udbhashsize = UDBHASHSIZE;  int     udbhashsize = UDBHASHSIZE;
   
 #ifdef MBUFTRACE  #ifdef MBUFTRACE
 struct mowner udp_mowner = { "udp" };  struct mowner udp_mowner = MOWNER_INIT("udp", "");
 struct mowner udp_rx_mowner = { "udp", "rx" };  struct mowner udp_rx_mowner = MOWNER_INIT("udp", "rx");
 struct mowner udp_tx_mowner = { "udp", "tx" };  struct mowner udp_tx_mowner = MOWNER_INIT("udp", "tx");
 #endif  #endif
   
 #ifdef UDP_CSUM_COUNTERS  #ifdef UDP_CSUM_COUNTERS
Line 511  bad:
Line 511  bad:
 }  }
   
 int  int
 udp6_input(struct mbuf **mp, int *offp, int proto)  udp6_input(struct mbuf **mp, int *offp, int proto __unused)
 {  {
         struct mbuf *m = *mp;          struct mbuf *m = *mp;
         int off = *offp;          int off = *offp;
Line 1186  udp_usrreq(struct socket *so, int req, s
Line 1186  udp_usrreq(struct socket *so, int req, s
                 return (in_control(so, (long)m, (caddr_t)nam,                  return (in_control(so, (long)m, (caddr_t)nam,
                     (struct ifnet *)control, l));                      (struct ifnet *)control, l));
   
           s = splsoftnet();
   
         if (req == PRU_PURGEIF) {          if (req == PRU_PURGEIF) {
                 in_pcbpurgeif0(&udbtable, (struct ifnet *)control);                  in_pcbpurgeif0(&udbtable, (struct ifnet *)control);
                 in_purgeif((struct ifnet *)control);                  in_purgeif((struct ifnet *)control);
                 in_pcbpurgeif(&udbtable, (struct ifnet *)control);                  in_pcbpurgeif(&udbtable, (struct ifnet *)control);
                   splx(s);
                 return (0);                  return (0);
         }          }
   
         s = splsoftnet();  
         inp = sotoinpcb(so);          inp = sotoinpcb(so);
 #ifdef DIAGNOSTIC  #ifdef DIAGNOSTIC
         if (req != PRU_SEND && req != PRU_SENDOOB && control)          if (req != PRU_SEND && req != PRU_SENDOOB && control)
Line 1419  SYSCTL_SETUP(sysctl_net_inet_udp_setup, 
Line 1421  SYSCTL_SETUP(sysctl_net_inet_udp_setup, 
  * -1 if an error occurent and m was freed   * -1 if an error occurent and m was freed
  */   */
 static int  static int
 udp4_espinudp(mp, off, src, so)  udp4_espinudp(struct mbuf **mp, int off, struct sockaddr *src __unused,
         struct mbuf **mp;      struct socket *so)
         int off;  
         struct sockaddr *src;  
         struct socket *so;  
 {  {
         size_t len;          size_t len;
         caddr_t data;          caddr_t data;

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.148.6.1

CVSweb <webmaster@jp.NetBSD.org>