-
Notifications
You must be signed in to change notification settings - Fork 7
/
zsys_darwin.go
45 lines (39 loc) · 1.05 KB
/
zsys_darwin.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
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs defs_darwin.go
package tcpinfo
const (
sysTCP_CONNECTION_INFO = 0x106
sysTCPCI_OPT_TIMESTAMPS = 0x1
sysTCPCI_OPT_SACK = 0x2
sysTCPCI_OPT_WSCALE = 0x4
sysTCPCI_OPT_ECN = 0x8
SysFlagLossRecovery SysFlags = 0x1
SysFlagReorderingDetected SysFlags = 0x2
sizeofTCPConnectionInfo = 0x70
)
type tcpConnectionInfo struct {
State uint8
Snd_wscale uint8
Rcv_wscale uint8
X__pad1 uint8
Options uint32
Flags uint32
Rto uint32
Maxseg uint32
Snd_ssthresh uint32
Snd_cwnd uint32
Snd_wnd uint32
Snd_sbbytes uint32
Rcv_wnd uint32
Rttcur uint32
Srtt uint32
Rttvar uint32
Pad_cgo_0 [4]byte
Txpackets uint64
Txbytes uint64
Txretransmitbytes uint64
Rxpackets uint64
Rxbytes uint64
Rxoutoforderbytes uint64
Txretransmitpackets uint64
}