Skip to content

Commit 7dc0b73

Browse files
committed
unix: add SO_ORIGINAL_DST on linux
Change-Id: I243a05696e061f0f0e558518c8af596364aa3668 Reviewed-on: https://go-review.googlesource.com/c/sys/+/331609 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 parent 59db8d7 commit 7dc0b73

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

unix/linux/types.go

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ struct termios2 {
115115
#include <linux/netfilter/nf_tables_compat.h>
116116
#include <linux/netfilter/nfnetlink.h>
117117
#include <linux/netfilter.h>
118+
#include <linux/netfilter_ipv4.h>
118119
#include <linux/netlink.h>
119120
#include <linux/nexthop.h>
120121
#include <linux/nfc.h>
@@ -1767,6 +1768,8 @@ const (
17671768
NFPROTO_NUMPROTO = C.NFPROTO_NUMPROTO
17681769
)
17691770

1771+
const SO_ORIGINAL_DST = C.SO_ORIGINAL_DST
1772+
17701773
// netfilter nfnetlink
17711774
type Nfgenmsg C.struct_nfgenmsg
17721775

unix/ztypes_linux.go

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

0 commit comments

Comments
 (0)