Commit 5ae6a237 authored by Mikio Hara's avatar Mikio Hara

syscall: regenerate ztype files for linux

This CL adds TCPInfo struct to linux/386,arm.
It's already added to linux/amd64.

Note that not sure the reason but cgo godefs w/ latest gcc
translates a flexible array member in structures correctly,
handles it as a non-incomplete, non-opaque type, on Go 1.
This CL reverts such changes by hand for the Go 1 contract.

R=minux.ma, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/7197046
parent 022504b3
...@@ -231,7 +231,7 @@ type Cmsghdr struct { ...@@ -231,7 +231,7 @@ type Cmsghdr struct {
Len uint32 Len uint32
Level int32 Level int32
Type int32 Type int32
X__cmsg_data [0]byte X__cmsg_data [0]uint8
} }
type Inet4Pktinfo struct { type Inet4Pktinfo struct {
...@@ -251,6 +251,40 @@ type Ucred struct { ...@@ -251,6 +251,40 @@ type Ucred struct {
Gid uint32 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 ( const (
SizeofSockaddrInet4 = 0x10 SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c SizeofSockaddrInet6 = 0x1c
...@@ -267,6 +301,7 @@ const ( ...@@ -267,6 +301,7 @@ const (
SizeofInet4Pktinfo = 0xc SizeofInet4Pktinfo = 0xc
SizeofInet6Pktinfo = 0x14 SizeofInet6Pktinfo = 0x14
SizeofUcred = 0xc SizeofUcred = 0xc
SizeofTCPInfo = 0x68
) )
const ( const (
...@@ -299,7 +334,7 @@ const ( ...@@ -299,7 +334,7 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x1c IFLA_MAX = 0x1d
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
...@@ -433,7 +468,7 @@ type InotifyEvent struct { ...@@ -433,7 +468,7 @@ type InotifyEvent struct {
Mask uint32 Mask uint32
Cookie uint32 Cookie uint32
Len uint32 Len uint32
Name [0]byte Name [0]uint8
} }
const SizeofInotifyEvent = 0x10 const SizeofInotifyEvent = 0x10
......
...@@ -233,7 +233,7 @@ type Cmsghdr struct { ...@@ -233,7 +233,7 @@ type Cmsghdr struct {
Len uint64 Len uint64
Level int32 Level int32
Type int32 Type int32
X__cmsg_data [0]byte X__cmsg_data [0]uint8
} }
type Inet4Pktinfo struct { type Inet4Pktinfo struct {
...@@ -336,7 +336,7 @@ const ( ...@@ -336,7 +336,7 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x1c IFLA_MAX = 0x1d
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
...@@ -470,7 +470,7 @@ type InotifyEvent struct { ...@@ -470,7 +470,7 @@ type InotifyEvent struct {
Mask uint32 Mask uint32
Cookie uint32 Cookie uint32
Len uint32 Len uint32
Name [0]byte Name [0]uint8
} }
const SizeofInotifyEvent = 0x10 const SizeofInotifyEvent = 0x10
......
...@@ -253,6 +253,40 @@ type Ucred struct { ...@@ -253,6 +253,40 @@ type Ucred struct {
Gid uint32 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 ( const (
SizeofSockaddrInet4 = 0x10 SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c SizeofSockaddrInet6 = 0x1c
...@@ -269,6 +303,7 @@ const ( ...@@ -269,6 +303,7 @@ const (
SizeofInet4Pktinfo = 0xc SizeofInet4Pktinfo = 0xc
SizeofInet6Pktinfo = 0x14 SizeofInet6Pktinfo = 0x14
SizeofUcred = 0xc SizeofUcred = 0xc
SizeofTCPInfo = 0x68
) )
const ( const (
...@@ -301,7 +336,7 @@ const ( ...@@ -301,7 +336,7 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x1c IFLA_MAX = 0x1d
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment