Back to index

glibc  2.9
Classes | Defines | Variables
tcp.h File Reference
#include <sys/cdefs.h>

Go to the source code of this file.

Classes

struct  tcphdr

Defines

#define TH_FIN   0x01
#define TH_SYN   0x02
#define TH_RST   0x04
#define TH_PUSH   0x08
#define TH_ACK   0x10
#define TH_URG   0x20
#define TCPOPT_EOL   0
#define TCPOPT_NOP   1
#define TCPOPT_MAXSEG   2
#define TCPOLEN_MAXSEG   4
#define TCPOPT_WINDOW   3
#define TCPOLEN_WINDOW   3
#define TCPOPT_SACK_PERMITTED   4 /* Experimental */
#define TCPOLEN_SACK_PERMITTED   2
#define TCPOPT_SACK   5 /* Experimental */
#define TCPOPT_TIMESTAMP   8
#define TCPOLEN_TIMESTAMP   10
#define TCPOLEN_TSTAMP_APPA   (TCPOLEN_TIMESTAMP+2) /* appendix A */
#define TCPOPT_TSTAMP_HDR   (TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP)
#define TCP_MSS   512
#define TCP_MAXWIN   65535 /* largest value for (unscaled) window */
#define TCP_MAX_WINSHIFT   14 /* maximum window shift */
#define TCP_NODELAY   0x01 /* don't delay send to coalesce packets */
#define TCP_MAXSEG   0x02 /* set maximum segment size */
#define SOL_TCP   6 /* TCP level */

Variables

__BEGIN_DECLS typedef unsigned int tcp_seq

Class Documentation

struct tcphdr

Definition at line 45 of file tcp.h.

Class Members
tcp_seq th_ack
u_short th_dport
u_char th_flags
u_char th_off:4
tcp_seq th_seq
u_short th_sport
u_short th_sum
u_short th_urp
u_short th_win
u_char th_x2:4

Define Documentation

#define SOL_TCP   6 /* TCP level */

Definition at line 104 of file tcp.h.

#define TCP_MAX_WINSHIFT   14 /* maximum window shift */

Definition at line 96 of file tcp.h.

#define TCP_MAXSEG   0x02 /* set maximum segment size */

Definition at line 102 of file tcp.h.

#define TCP_MAXWIN   65535 /* largest value for (unscaled) window */

Definition at line 94 of file tcp.h.

#define TCP_MSS   512

Definition at line 92 of file tcp.h.

#define TCP_NODELAY   0x01 /* don't delay send to coalesce packets */

Definition at line 101 of file tcp.h.

#define TCPOLEN_MAXSEG   4

Definition at line 73 of file tcp.h.

#define TCPOLEN_SACK_PERMITTED   2

Definition at line 77 of file tcp.h.

#define TCPOLEN_TIMESTAMP   10

Definition at line 80 of file tcp.h.

#define TCPOLEN_TSTAMP_APPA   (TCPOLEN_TIMESTAMP+2) /* appendix A */

Definition at line 81 of file tcp.h.

#define TCPOLEN_WINDOW   3

Definition at line 75 of file tcp.h.

#define TCPOPT_EOL   0

Definition at line 70 of file tcp.h.

#define TCPOPT_MAXSEG   2

Definition at line 72 of file tcp.h.

#define TCPOPT_NOP   1

Definition at line 71 of file tcp.h.

#define TCPOPT_SACK   5 /* Experimental */

Definition at line 78 of file tcp.h.

#define TCPOPT_SACK_PERMITTED   4 /* Experimental */

Definition at line 76 of file tcp.h.

#define TCPOPT_TIMESTAMP   8

Definition at line 79 of file tcp.h.

Definition at line 83 of file tcp.h.

#define TCPOPT_WINDOW   3

Definition at line 74 of file tcp.h.

#define TH_ACK   0x10

Definition at line 63 of file tcp.h.

#define TH_FIN   0x01

Definition at line 59 of file tcp.h.

#define TH_PUSH   0x08

Definition at line 62 of file tcp.h.

#define TH_RST   0x04

Definition at line 61 of file tcp.h.

#define TH_SYN   0x02

Definition at line 60 of file tcp.h.

#define TH_URG   0x20

Definition at line 64 of file tcp.h.


Variable Documentation

__BEGIN_DECLS typedef unsigned int tcp_seq

Definition at line 40 of file tcp.h.