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 rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.138.2.2 retrieving revision 1.154 diff -u -p -r1.138.2.2 -r1.154 --- src/sys/netinet/udp_usrreq.c 2006/12/30 20:50:34 1.138.2.2 +++ src/sys/netinet/udp_usrreq.c 2006/11/10 13:01:55 1.154 @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.138.2.2 2006/12/30 20:50:34 yamt Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.154 2006/11/10 13:01:55 yamt Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.138.2.2 2006/12/30 20:50:34 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.154 2006/11/10 13:01:55 yamt Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -139,7 +139,11 @@ __KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c * UDP protocol implementation. * Per RFC 768, August, 1980. */ +#ifndef COMPAT_42 int udpcksum = 1; +#else +int udpcksum = 0; /* XXX */ +#endif int udp_do_loopback_cksum = 0; struct inpcbtable udbtable; @@ -1068,9 +1072,6 @@ udp_ctloutput(int op, struct socket *so, error = ENOPROTOOPT; break; } - if (m != NULL) { - m_free(m); - } break; default: