summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-05-11 11:00:48 +0000
committerrwatson <rwatson@FreeBSD.org>2007-05-11 11:00:48 +0000
commitcf57d2e44c427c03aaec73d3ed1cb8b8c182bce9 (patch)
tree88a409b1f94c926050b92a4830bc38f27ebcfae8
parent777066ed3b905b34d41b34a8002cc42b3814e577 (diff)
downloadFreeBSD-src-cf57d2e44c427c03aaec73d3ed1cb8b8c182bce9.zip
FreeBSD-src-cf57d2e44c427c03aaec73d3ed1cb8b8c182bce9.tar.gz
White space and style cleanup.
-rw-r--r--sys/netinet/ip.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h
index 63aa4fd..3c4903a 100644
--- a/sys/netinet/ip.h
+++ b/sys/netinet/ip.h
@@ -1,6 +1,7 @@
/*-
* Copyright (c) 1982, 1986, 1993
- * The Regents of the University of California. All rights reserved.
+ * The Regents of the University of California.
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -31,12 +32,13 @@
*/
#ifndef _NETINET_IP_H_
-#define _NETINET_IP_H_
+#define _NETINET_IP_H_
#include <sys/cdefs.h>
/*
* Definitions for internet protocol version 4.
+ *
* Per RFC 791, September 1981.
*/
#define IPVERSION 4
@@ -74,7 +76,7 @@ CTASSERT(sizeof (struct ip) == 20);
#define IP_MAXPACKET 65535 /* maximum packet size */
/*
- * Definitions for IP type of service (ip_tos)
+ * Definitions for IP type of service (ip_tos).
*/
#define IPTOS_LOWDELAY 0x10
#define IPTOS_THROUGHPUT 0x08
@@ -87,7 +89,7 @@ CTASSERT(sizeof (struct ip) == 20);
#endif
/*
- * Definitions for IP precedence (also in ip_tos) (hopefully unused)
+ * Definitions for IP precedence (also in ip_tos) (hopefully unused).
*/
#define IPTOS_PREC_NETCONTROL 0xe0
#define IPTOS_PREC_INTERNETCONTROL 0xc0
@@ -99,8 +101,8 @@ CTASSERT(sizeof (struct ip) == 20);
#define IPTOS_PREC_ROUTINE 0x00
/*
- * ECN (Explicit Congestion Notification) codepoints in RFC3168
- * mapped to the lower 2 bits of the TOS field.
+ * ECN (Explicit Congestion Notification) codepoints in RFC3168 mapped to the
+ * lower 2 bits of the TOS field.
*/
#define IPTOS_ECN_NOTECT 0x00 /* not-ECT */
#define IPTOS_ECN_ECT1 0x01 /* ECN-capable transport (1) */
@@ -138,7 +140,7 @@ CTASSERT(sizeof (struct ip) == 20);
*/
#define IPOPT_OPTVAL 0 /* option ID */
#define IPOPT_OLEN 1 /* option length */
-#define IPOPT_OFFSET 2 /* offset within option */
+#define IPOPT_OFFSET 2 /* offset within option */
#define IPOPT_MINOFF 4 /* min value of above */
/*
@@ -165,12 +167,12 @@ struct ip_timestamp {
} ipt_timestamp;
};
-/* flag bits for ipt_flg */
+/* Flag bits for ipt_flg. */
#define IPOPT_TS_TSONLY 0 /* timestamps only */
#define IPOPT_TS_TSANDADDR 1 /* timestamps and addresses */
#define IPOPT_TS_PRESPEC 3 /* specified modules only */
-/* bits for security (not byte swapped) */
+/* Bits for security (not byte swapped). */
#define IPOPT_SECUR_UNCLASS 0x0000
#define IPOPT_SECUR_CONFID 0xf135
#define IPOPT_SECUR_EFTO 0x789a
@@ -186,7 +188,6 @@ struct ip_timestamp {
#define IPDEFTTL 64 /* default ttl, from RFC 1340 */
#define IPFRAGTTL 60 /* time to live for frags, slowhz */
#define IPTTLDEC 1 /* subtracted when forwarding */
-
#define IP_MSS 576 /* default maximum segment size */
/*
OpenPOWER on IntegriCloud