Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -p -r1.7 -r1.8 --- src/sys/netinet/udp_usrreq.c 1994/01/08 23:17:18 1.7 +++ src/sys/netinet/udp_usrreq.c 1994/01/08 23:19:48 1.8 @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)udp_usrreq.c 7.20 (Berkeley) 4/20/91 - * $Id: udp_usrreq.c,v 1.7 1994/01/08 23:17:18 mycroft Exp $ + * $Id: udp_usrreq.c,v 1.8 1994/01/08 23:19:48 mycroft Exp $ */ #include @@ -54,6 +54,18 @@ #include #include +/* + * 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; static void udp_detach __P((struct inpcb *)); @@ -61,10 +73,6 @@ static void udp_notify __P((struct inpcb static struct mbuf * udp_saveopt __P((caddr_t, int, int)); -/* - * UDP protocol implementation. - * Per RFC 768, August, 1980. - */ void udp_init() { @@ -72,15 +80,6 @@ udp_init() 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 udp_input(m, iphlen) register struct mbuf *m;