Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
bef036e3
Commit
bef036e3
authored
Dec 10, 2012
by
Brad Fitzpatrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: add type for struct tcp_info
R=mikioh.mikioh, rsc CC=golang-dev
https://golang.org/cl/6900050
parent
76de81da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
types_linux.go
src/pkg/syscall/types_linux.go
+3
-0
ztypes_linux_amd64.go
src/pkg/syscall/ztypes_linux_amd64.go
+35
-0
No files found.
src/pkg/syscall/types_linux.go
View file @
bef036e3
...
...
@@ -195,6 +195,8 @@ type Inet6Pktinfo C.struct_in6_pktinfo
type
Ucred
C
.
struct_ucred
type
TCPInfo
C
.
struct_tcp_info
const
(
SizeofSockaddrInet4
=
C
.
sizeof_struct_sockaddr_in
SizeofSockaddrInet6
=
C
.
sizeof_struct_sockaddr_in6
...
...
@@ -211,6 +213,7 @@ const (
SizeofInet4Pktinfo
=
C
.
sizeof_struct_in_pktinfo
SizeofInet6Pktinfo
=
C
.
sizeof_struct_in6_pktinfo
SizeofUcred
=
C
.
sizeof_struct_ucred
SizeofTCPInfo
=
C
.
sizeof_struct_tcp_info
)
// Netlink routing and interface messages
...
...
src/pkg/syscall/ztypes_linux_amd64.go
View file @
bef036e3
...
...
@@ -253,6 +253,40 @@ type Ucred struct {
Gid
uint32
}
type
TCPInfo
struct
{
State
uint8
Ca_state
uint8
Retransmits
uint8
Probes
uint8
Backoff
uint8
Options
uint8
Pad_cgo_0
[
2
]
byte
Rto
uint32
Ato
uint32
Snd_mss
uint32
Rcv_mss
uint32
Unacked
uint32
Sacked
uint32
Lost
uint32
Retrans
uint32
Fackets
uint32
Last_data_sent
uint32
Last_ack_sent
uint32
Last_data_recv
uint32
Last_ack_recv
uint32
Pmtu
uint32
Rcv_ssthresh
uint32
Rtt
uint32
Rttvar
uint32
Snd_ssthresh
uint32
Snd_cwnd
uint32
Advmss
uint32
Reordering
uint32
Rcv_rtt
uint32
Rcv_space
uint32
Total_retrans
uint32
}
const
(
SizeofSockaddrInet4
=
0x10
SizeofSockaddrInet6
=
0x1c
...
...
@@ -269,6 +303,7 @@ const (
SizeofInet4Pktinfo
=
0xc
SizeofInet6Pktinfo
=
0x14
SizeofUcred
=
0xc
SizeofTCPInfo
=
0x68
)
const
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment