summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-10-07 20:20:58 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-10-07 20:20:58 +0000
commite09022f3b7601b166840c9241d1c4bf97d7ce6d6 (patch)
treea180ae3b52710ceb12f4112a1e3f3bd424fb2282 /sys
parentc9264fbecebb3c18424f70580058a50d1832cdd6 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/udp_usrreq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 3ed0a02cf9fe..d5abe2633bc3 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1982, 1986, 1988, 1990, 1993
+ * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -30,8 +30,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)udp_usrreq.c 8.4 (Berkeley) 1/21/94
- * $Id: udp_usrreq.c,v 1.12 1995/05/30 08:10:02 rgrimes Exp $
+ * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
+ * $Id: udp_usrreq.c,v 1.14 1995/09/22 19:56:26 wollman Exp $
*/
#include <sys/param.h>
@@ -153,7 +153,7 @@ udp_input(m, iphlen)
/*
* Checksum extended UDP header and data.
*/
- if (udpcksum && uh->uh_sum) {
+ if (uh->uh_sum) {
((struct ipovly *)ip)->ih_next = 0;
((struct ipovly *)ip)->ih_prev = 0;
((struct ipovly *)ip)->ih_x1 = 0;
@@ -491,7 +491,7 @@ udp_usrreq(so, req, m, addr, control)
int s;
if (req == PRU_CONTROL)
- return (in_control(so, (int)m, (caddr_t)addr,
+ return (in_control(so, (u_long)m, (caddr_t)addr,
(struct ifnet *)control));
if (inp == NULL && req != PRU_ATTACH) {
error = EINVAL;