diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2020-07-24 01:24:16 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-24 01:25:39 -0700 |
commit | e2c70ee9814f0f76ab5c30478748e4c697e91f33 (patch) | |
tree | 96653576ca0c9f1fc67f24f7aed61c419e9d86c8 /pkg/abi/linux/netdevice.go | |
parent | c59b792f53f3aa4c24d1ca9442ffc44f6d4932df (diff) |
Enable automated marshalling for netstack.
PiperOrigin-RevId: 322954792
Diffstat (limited to 'pkg/abi/linux/netdevice.go')
-rw-r--r-- | pkg/abi/linux/netdevice.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/abi/linux/netdevice.go b/pkg/abi/linux/netdevice.go index 7866352b4..0faf015c7 100644 --- a/pkg/abi/linux/netdevice.go +++ b/pkg/abi/linux/netdevice.go @@ -22,6 +22,8 @@ const ( ) // IFReq is an interface request. +// +// +marshal type IFReq struct { // IFName is an encoded name, normally null-terminated. This should be // accessed via the Name and SetName functions. @@ -79,6 +81,8 @@ type IFMap struct { // IFConf is used to return a list of interfaces and their addresses. See // netdevice(7) and struct ifconf for more detail on its use. +// +// +marshal type IFConf struct { Len int32 _ [4]byte // Pad to sizeof(struct ifconf). |