[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.7 and 1.8

version 1.7, 1994/01/08 23:17:18 version 1.8, 1994/01/08 23:19:48
Line 54 
Line 54 
 #include <netinet/udp.h>  #include <netinet/udp.h>
 #include <netinet/udp_var.h>  #include <netinet/udp_var.h>
   
   /*
    * UDP protocol implementation.
    * Per RFC 768, August, 1980.
    */
   #ifndef COMPAT_42
   int     udpcksum = 1;
   #else
   int     udpcksum = 0;           /* XXX */
   #endif
   int     udp_ttl = UDP_TTL;
   
   struct  sockaddr_in udp_in = { sizeof(udp_in), AF_INET };
 struct  inpcb *udp_last_inpcb = &udb;  struct  inpcb *udp_last_inpcb = &udb;
   
 static void     udp_detach __P((struct inpcb *));  static void     udp_detach __P((struct inpcb *));
Line 61  static void udp_notify __P((struct inpcb
Line 73  static void udp_notify __P((struct inpcb
 static struct mbuf *  static struct mbuf *
                 udp_saveopt __P((caddr_t, int, int));                  udp_saveopt __P((caddr_t, int, int));
   
 /*  
  * UDP protocol implementation.  
  * Per RFC 768, August, 1980.  
  */  
 void  void
 udp_init()  udp_init()
 {  {
Line 72  udp_init()
Line 80  udp_init()
         udb.inp_next = udb.inp_prev = &udb;          udb.inp_next = udb.inp_prev = &udb;
 }  }
   
 #ifndef COMPAT_42  
 int     udpcksum = 1;  
 #else  
 int     udpcksum = 0;           /* XXX */  
 #endif  
 int     udp_ttl = UDP_TTL;  
   
 struct  sockaddr_in udp_in = { sizeof(udp_in), AF_INET };  
   
 void  void
 udp_input(m, iphlen)  udp_input(m, iphlen)
         register struct mbuf *m;          register struct mbuf *m;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

CVSweb <webmaster@jp.NetBSD.org>