Module Name: src Committed By: christos Date: Sat Jan 7 20:20:13 UTC 2012
Modified Files: src/sys/netinet: udp.h Log Message: u_intN -> uintN make standalone To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/netinet/udp.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netinet/udp.h diff -u src/sys/netinet/udp.h:1.14 src/sys/netinet/udp.h:1.15 --- src/sys/netinet/udp.h:1.14 Sat Sep 24 13:18:17 2011 +++ src/sys/netinet/udp.h Sat Jan 7 15:20:12 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: udp.h,v 1.14 2011/09/24 17:18:17 christos Exp $ */ +/* $NetBSD: udp.h,v 1.15 2012/01/07 20:20:12 christos Exp $ */ /* * Copyright (c) 1982, 1986, 1993 @@ -34,15 +34,16 @@ #ifndef _NETINET_UDP_H_ #define _NETINET_UDP_H_ +#include <sys/types.h> /* * Udp protocol header. * Per RFC 768, September, 1981. */ struct udphdr { - u_int16_t uh_sport; /* source port */ - u_int16_t uh_dport; /* destination port */ - u_int16_t uh_ulen; /* udp length */ - u_int16_t uh_sum; /* udp checksum */ + uint16_t uh_sport; /* source port */ + uint16_t uh_dport; /* destination port */ + uint16_t uh_ulen; /* udp length */ + uint16_t uh_sum; /* udp checksum */ } __packed; /* socket options for UDP */