From a77ba31229d70cf5fd16318313cc42ceed26ad66 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/netstack/yggdrasil.go b/src/netstack/yggdrasil.go index 5c68d8c..58da9d9 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,7 @@ 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 }