* commit '7a0e89b61b8779ee800e7414736deb973cd0ea1b': Add TCPOPT_* constants.
This commit is contained in:
commit
8a6c497fb7
@ -25,10 +25,10 @@
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _NETINET_TCP_H
|
||||
#define _NETINET_TCP_H
|
||||
|
||||
#include <endian.h> /* Include *before* linux/tcp.h */
|
||||
#include <linux/tcp.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
@ -47,6 +47,21 @@ enum {
|
||||
TCP_CLOSING
|
||||
};
|
||||
|
||||
#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
|
||||
#define TCPOLEN_SACK_PERMITTED 2
|
||||
#define TCPOPT_SACK 5
|
||||
#define TCPOPT_TIMESTAMP 8
|
||||
#define TCPOLEN_TIMESTAMP 10
|
||||
#define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2)
|
||||
|
||||
#define TCPOPT_TSTAMP_HDR (TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP)
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _NETINET_TCP_H */
|
||||
|
Loading…
Reference in New Issue
Block a user