summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-10-23 18:35:50 +0000
committerwollman <wollman@FreeBSD.org>1996-10-23 18:35:50 +0000
commit4efe54c82944db41f906033ed7dd3f733cd641db (patch)
treed8154bf384f8ed42299e582657efb8f21f0e8b75 /sys/netinet/ip.h
parent6744ae81292c9b555a5a5ce7e3f7e07d1d7aca6e (diff)
downloadFreeBSD-src-4efe54c82944db41f906033ed7dd3f733cd641db.zip
FreeBSD-src-4efe54c82944db41f906033ed7dd3f733cd641db.tar.gz
Give ip_len and ip_off more natural, unsigned types.
Diffstat (limited to 'sys/netinet/ip.h')
-rw-r--r--sys/netinet/ip.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h
index 7b89504..d0905ae 100644
--- a/sys/netinet/ip.h
+++ b/sys/netinet/ip.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip.h 8.2 (Berkeley) 6/1/94
- * $Id: ip.h,v 1.8 1996/03/14 16:59:20 fenner Exp $
+ * $Id: ip.h,v 1.9 1996/04/18 15:42:50 wollman Exp $
*/
#ifndef _NETINET_IP_H_
@@ -64,9 +64,9 @@ struct ip {
#endif
#endif /* not _IP_VHL */
u_char ip_tos; /* type of service */
- short ip_len; /* total length */
+ u_short ip_len; /* total length */
u_short ip_id; /* identification */
- short ip_off; /* fragment offset field */
+ u_short ip_off; /* fragment offset field */
#define IP_DF 0x4000 /* dont fragment flag */
#define IP_MF 0x2000 /* more fragments flag */
#define IP_OFFMASK 0x1fff /* mask for fragmenting bits */
OpenPOWER on IntegriCloud