diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-04 18:12:19 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-04 18:12:19 +0000 |
commit | ee17c270cc3578622d1bb9948724fafdcf4e5111 (patch) | |
tree | 67e29c1f0dab0a49848900c8cd529a863e82b5d3 /pkg/sentry/socket/netlink/route | |
parent | 909b8159d6258a7ff4971517ceaeec504cb97025 (diff) | |
parent | b23b36e701c40827065217f4652a51eebc5f9913 (diff) |
Merge release-20190806.1-367-gb23b36e (automated)
Diffstat (limited to 'pkg/sentry/socket/netlink/route')
-rw-r--r-- | pkg/sentry/socket/netlink/route/protocol.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/socket/netlink/route/protocol.go b/pkg/sentry/socket/netlink/route/protocol.go index cc70ac237..6b4a0ecf4 100644 --- a/pkg/sentry/socket/netlink/route/protocol.go +++ b/pkg/sentry/socket/netlink/route/protocol.go @@ -61,6 +61,11 @@ func (p *Protocol) Protocol() int { return linux.NETLINK_ROUTE } +// CanSend implements netlink.Protocol.CanSend. +func (p *Protocol) CanSend() bool { + return true +} + // dumpLinks handles RTM_GETLINK + NLM_F_DUMP requests. func (p *Protocol) dumpLinks(ctx context.Context, hdr linux.NetlinkMessageHeader, data []byte, ms *netlink.MessageSet) *syserr.Error { // NLM_F_DUMP + RTM_GETLINK messages are supposed to include an |