-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdefs_linux.go
49 lines (37 loc) · 1.27 KB
/
defs_linux.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright 2016 Mikio Hara. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build ignore
package tcpinfo
/*
#include <linux/inet_diag.h>
#include <linux/sockios.h>
#include <linux/tcp.h>
*/
import "C"
const (
sysTCP_INFO = C.TCP_INFO
sysTCP_CONGESTION = C.TCP_CONGESTION
sysTCP_CC_INFO = C.TCP_CC_INFO
sysTCPI_OPT_TIMESTAMPS = C.TCPI_OPT_TIMESTAMPS
sysTCPI_OPT_SACK = C.TCPI_OPT_SACK
sysTCPI_OPT_WSCALE = C.TCPI_OPT_WSCALE
sysTCPI_OPT_ECN = C.TCPI_OPT_ECN
sysTCPI_OPT_ECN_SEEN = C.TCPI_OPT_ECN_SEEN
sysTCPI_OPT_SYN_DATA = C.TCPI_OPT_SYN_DATA
CAOpen CAState = C.TCP_CA_Open
CADisorder CAState = C.TCP_CA_Disorder
CACWR CAState = C.TCP_CA_CWR
CARecovery CAState = C.TCP_CA_Recovery
CALoss CAState = C.TCP_CA_Loss
sizeofTCPInfo = C.sizeof_struct_tcp_info
sizeofTCPCCInfo = C.sizeof_union_tcp_cc_info
sizeofTCPVegasInfo = C.sizeof_struct_tcpvegas_info
sizeofTCPDCTCPInfo = C.sizeof_struct_tcp_dctcp_info
sizeofTCPBBRInfo = C.sizeof_struct_tcp_bbr_info
)
type tcpInfo C.struct_tcp_info
type tcpCCInfo C.union_tcp_cc_info
type tcpVegasInfo C.struct_tcpvegas_info
type tcpDCTCPInfo C.struct_tcp_dctcp_info
type tcpBBRInfo C.struct_tcp_bbr_info