Skip to content

Commit 6f25076

Browse files
hawkinswgopherbot
authored andcommitted
unix: define extended TCPInfo on Linux
On Linux platforms, the kernel can fill out an extended version of the tcp_info struct. Allow users of the sys package to have access to that information. Change-Id: Ib42ad572dd56c774c6d9e8b17fe3bdd8126147bb Reviewed-on: https://go-review.googlesource.com/c/sys/+/471275 Run-TryBot: Matt Layher <[email protected]> Reviewed-by: Tobias Klauser <[email protected]> Reviewed-by: Matt Layher <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 10499f4 commit 6f25076

File tree

2 files changed

+58
-33
lines changed

2 files changed

+58
-33
lines changed

unix/linux/types.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Input to cgo -godefs. See README.md
1111

1212
// +godefs map struct_in_addr [4]byte /* in_addr */
1313
// +godefs map struct_in6_addr [16]byte /* in6_addr */
14+
// +godefs map struct___kernel_sockaddr_storage SockaddrStorage
1415

1516
package unix
1617

@@ -31,7 +32,7 @@ package unix
3132
#include <utime.h>
3233
3334
#include <netinet/in.h>
34-
#include <netinet/tcp.h>
35+
#include <linux/tcp.h>
3536
3637
#include <sys/epoll.h>
3738
#include <sys/inotify.h>

unix/ztypes_linux.go

+56-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)