mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-01 22:57:29 -04:00
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>
This commit is contained in:
committed by
Tobias Klauser
parent
59db8d763f
commit
7dc0b73dc9
@@ -115,6 +115,7 @@ struct termios2 {
|
|||||||
#include <linux/netfilter/nf_tables_compat.h>
|
#include <linux/netfilter/nf_tables_compat.h>
|
||||||
#include <linux/netfilter/nfnetlink.h>
|
#include <linux/netfilter/nfnetlink.h>
|
||||||
#include <linux/netfilter.h>
|
#include <linux/netfilter.h>
|
||||||
|
#include <linux/netfilter_ipv4.h>
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
#include <linux/nexthop.h>
|
#include <linux/nexthop.h>
|
||||||
#include <linux/nfc.h>
|
#include <linux/nfc.h>
|
||||||
@@ -1767,6 +1768,8 @@ const (
|
|||||||
NFPROTO_NUMPROTO = C.NFPROTO_NUMPROTO
|
NFPROTO_NUMPROTO = C.NFPROTO_NUMPROTO
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const SO_ORIGINAL_DST = C.SO_ORIGINAL_DST
|
||||||
|
|
||||||
// netfilter nfnetlink
|
// netfilter nfnetlink
|
||||||
type Nfgenmsg C.struct_nfgenmsg
|
type Nfgenmsg C.struct_nfgenmsg
|
||||||
|
|
||||||
|
|||||||
@@ -1773,6 +1773,8 @@ const (
|
|||||||
NFPROTO_NUMPROTO = 0xd
|
NFPROTO_NUMPROTO = 0xd
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const SO_ORIGINAL_DST = 0x50
|
||||||
|
|
||||||
type Nfgenmsg struct {
|
type Nfgenmsg struct {
|
||||||
Nfgen_family uint8
|
Nfgen_family uint8
|
||||||
Version uint8
|
Version uint8
|
||||||
|
|||||||
Reference in New Issue
Block a user