* sysdeps/gnu/netinet/tcp.h: Define everything but TCP_ macros
	only if __USE_MISC.
	* conform/data/netinet/tcp.h-data: Reserved prefix TCP_.
This commit is contained in:
Ulrich Drepper 2001-01-27 04:41:31 +00:00
parent 84d7b1ea9e
commit feb4f75926
3 changed files with 64 additions and 58 deletions

View File

@ -1,5 +1,9 @@
2001-01-26 Ulrich Drepper <drepper@redhat.com>
* sysdeps/gnu/netinet/tcp.h: Define everything but TCP_ macros
only if __USE_MISC.
* conform/data/netinet/tcp.h-data: Reserved prefix TCP_.
* sysdeps/gnu/net/if.h: Cleanup namespace. Define IF_NAMESIZE.
* inet/netinet/in.h: Make IPPROTO_ constants also macros.

View File

@ -1,3 +1,5 @@
#ifndef ISO
#ifdef XOPEN2K
macro TCP_NODELAY
allow TCP_*
#endif

View File

@ -33,9 +33,24 @@
#define _NETINET_TCP_H 1
#include <features.h>
#include <sys/types.h>
__BEGIN_DECLS
/*
* User-settable options (used with setsockopt).
*/
#define TCP_NODELAY 0x01 /* Don't delay send to coalesce packets */
#define TCP_MAXSEG 0x02 /* Set maximum segment size */
#define TCP_CORK 0x03 /* Control sending of partial frames */
#define TCP_KEEPIDLE 0x04 /* Start keeplives after this period */
#define TCP_KEEPINTVL 0x05 /* Interval between keepalives */
#define TCP_KEEPCNT 0x06 /* Number of keepalives before death */
#define TCP_SYNCNT 0x07 /* Number of SYN retransmits */
#define TCP_LINGER2 0x08 /* Life time of orphaned FIN-WAIT-2 state */
#define TCP_DEFER_ACCEPT 0x09 /* Wake up listener only when data arrive */
#define TCP_WINDOW_CLAMP 0x10 /* Bound advertised window */
#define TCP_INFO 0x11 /* Information about this connection. */
#ifdef __USE_MISC
# include <sys/types.h>
# ifdef __FAVOR_BSD
typedef u_int32_t tcp_seq;
@ -148,21 +163,6 @@ enum
# define TCP_MAX_WINSHIFT 14 /* maximum window shift */
/*
* User-settable options (used with setsockopt).
*/
#define TCP_NODELAY 0x01 /* Don't delay send to coalesce packets */
#define TCP_MAXSEG 0x02 /* Set maximum segment size */
#define TCP_CORK 0x03 /* Control sending of partial frames */
#define TCP_KEEPIDLE 0x04 /* Start keeplives after this period */
#define TCP_KEEPINTVL 0x05 /* Interval between keepalives */
#define TCP_KEEPCNT 0x06 /* Number of keepalives before death */
#define TCP_SYNCNT 0x07 /* Number of SYN retransmits */
#define TCP_LINGER2 0x08 /* Life time of orphaned FIN-WAIT-2 state */
#define TCP_DEFER_ACCEPT 0x09 /* Wake up listener only when data arrive */
#define TCP_WINDOW_CLAMP 0x10 /* Bound advertised window */
#define TCP_INFO 0x11 /* Information about this connection. */
# define SOL_TCP 6 /* TCP level */
@ -219,6 +219,6 @@ struct tcp_info
u_int32_t tcpi_reordering;
};
__END_DECLS
#endif /* Misc. */
#endif /* netinet/tcp.h */