summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-10-02 04:19:47 +0000
committermike <mike@FreeBSD.org>2002-10-02 04:19:47 +0000
commit33ad219137f3f952358ab0a302bc8202c130041a (patch)
treef6e8e666cffbf810cb9aa64dcb12e311dca4acc9 /sys/netinet/tcp.h
parent2109c7c42322b8780581ecf1b7eb2316500b2122 (diff)
downloadFreeBSD-src-33ad219137f3f952358ab0a302bc8202c130041a.zip
FreeBSD-src-33ad219137f3f952358ab0a302bc8202c130041a.tar.gz
Use visibility conditionals. Only TCP_NODELAY ends up being defined
in the standards case.
Diffstat (limited to 'sys/netinet/tcp.h')
-rw-r--r--sys/netinet/tcp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h
index fee449f..24ec77c 100644
--- a/sys/netinet/tcp.h
+++ b/sys/netinet/tcp.h
@@ -37,6 +37,8 @@
#ifndef _NETINET_TCP_H_
#define _NETINET_TCP_H_
+#if __BSD_VISIBLE
+
typedef u_int32_t tcp_seq;
typedef u_int32_t tcp_cc; /* connection count per rfc1644 */
@@ -125,13 +127,16 @@ struct tcphdr {
#define TCP_MAXHLEN (0xf<<2) /* max length of header in bytes */
#define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
/* max space left for options */
+#endif /* __BSD_VISIBLE */
/*
* User-settable options (used with setsockopt).
*/
#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */
+#if __BSD_VISIBLE
#define TCP_MAXSEG 0x02 /* set maximum segment size */
#define TCP_NOPUSH 0x04 /* don't push last block of write */
#define TCP_NOOPT 0x08 /* don't use TCP options */
-
#endif
+
+#endif /* !_NETINET_TCP_H_ */
OpenPOWER on IntegriCloud