From 9da884697a47b6ca00f4dd12e11162f9ae5ade8d Mon Sep 17 00:00:00 2001 From: Vasyl Gello Date: Wed, 24 Jul 2024 18:23:43 +0300 Subject: [PATCH] Fix gvisor changes Signed-off-by: Vasyl Gello --- src/netstack/yggdrasil.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/netstack/yggdrasil.go b/src/netstack/yggdrasil.go index 5c68d8c..efb8811 100644 --- a/src/netstack/yggdrasil.go +++ b/src/netstack/yggdrasil.go @@ -97,12 +97,16 @@ func (e *YggdrasilNIC) IsAttached() bool { return e.dispatcher != nil } func (e *YggdrasilNIC) MTU() uint32 { return uint32(e.ipv6rwc.MTU()) } +func (e *YggdrasilNIC) SetMTU(uint32) {} + func (*YggdrasilNIC) Capabilities() stack.LinkEndpointCapabilities { return stack.CapabilityNone } func (*YggdrasilNIC) MaxHeaderLength() uint16 { return 40 } func (*YggdrasilNIC) LinkAddress() tcpip.LinkAddress { return "" } +func (*YggdrasilNIC) SetLinkAddress(tcpip.LinkAddress) {} + func (*YggdrasilNIC) Wait() {} func (e *YggdrasilNIC) writePacket( @@ -168,8 +172,9 @@ func (e *YggdrasilNIC) ParseHeader(*stack.PacketBuffer) bool { return true } -func (e *YggdrasilNIC) Close() error { +func (e *YggdrasilNIC) Close() { e.stack.stack.RemoveNIC(1) e.dispatcher = nil - return nil } + +func (e *YggdrasilNIC) SetOnCloseAction(func()) {}