summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp.h
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1996-10-25 17:57:53 +0000
committerfenner <fenner@FreeBSD.org>1996-10-25 17:57:53 +0000
commitaa424264765815c0b549bb0ef4fb82799a34c350 (patch)
tree3befa5b07bb47bd5b8369c3bd655d60f74ea009c /sys/netinet/udp.h
parentccd3ba3727691f91198db0cc85afabfd9e88a1ea (diff)
downloadFreeBSD-src-aa424264765815c0b549bb0ef4fb82799a34c350.zip
FreeBSD-src-aa424264765815c0b549bb0ef4fb82799a34c350.tar.gz
Don't allow reassembly to create packets bigger than IP_MAXPACKET, and count
attempts to do so. Don't allow users to source packets bigger than IP_MAXPACKET. Make UDP length and ipovly's protocol length unsigned short. Reviewed by: wollman Submitted by: (partly by) kml@nas.nasa.gov (Kevin Lahey)
Diffstat (limited to 'sys/netinet/udp.h')
-rw-r--r--sys/netinet/udp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp.h b/sys/netinet/udp.h
index d47ea91..3aeb522 100644
--- a/sys/netinet/udp.h
+++ b/sys/netinet/udp.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)udp.h 8.1 (Berkeley) 6/10/93
- * $Id: udp.h,v 1.2 1994/08/02 07:49:22 davidg Exp $
+ * $Id: udp.h,v 1.3 1994/08/21 05:27:41 paul Exp $
*/
#ifndef _NETINET_UDP_H_
@@ -44,7 +44,7 @@
struct udphdr {
u_short uh_sport; /* source port */
u_short uh_dport; /* destination port */
- short uh_ulen; /* udp length */
+ u_short uh_ulen; /* udp length */
u_short uh_sum; /* udp checksum */
};
OpenPOWER on IntegriCloud