summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-04-10 04:15:39 +0000
committergVisor bot <gvisor-bot@google.com>2021-04-10 04:15:39 +0000
commitc3865938b55782b5c33f36e6e03b63971753cda1 (patch)
tree1bc48d528bc9046496d5c69057d270bca8ff389c /pkg/abi
parentf3f5f4c1e5bdd6d9340b3349beaae668f970ab07 (diff)
parentd1edabdca016b9d80295855a3ce6d2816486d65c (diff)
Merge release-20210408.0-17-gd1edabdca (automated)
Diffstat (limited to 'pkg/abi')
-rw-r--r--pkg/abi/linux/netfilter.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/abi/linux/netfilter.go b/pkg/abi/linux/netfilter.go
index 378f1baf3..775bbc759 100644
--- a/pkg/abi/linux/netfilter.go
+++ b/pkg/abi/linux/netfilter.go
@@ -375,6 +375,17 @@ type XTRedirectTarget struct {
// SizeOfXTRedirectTarget is the size of an XTRedirectTarget.
const SizeOfXTRedirectTarget = 56
+// XTSNATTarget triggers Source NAT when reached.
+// Adding 4 bytes of padding to make the struct 8 byte aligned.
+type XTSNATTarget struct {
+ Target XTEntryTarget
+ NfRange NfNATIPV4MultiRangeCompat
+ _ [4]byte
+}
+
+// SizeOfXTSNATTarget is the size of an XTSNATTarget.
+const SizeOfXTSNATTarget = 56
+
// IPTGetinfo is the argument for the IPT_SO_GET_INFO sockopt. It corresponds
// to struct ipt_getinfo in include/uapi/linux/netfilter_ipv4/ip_tables.h.
//