Skip to content

Commit

Permalink
Fix gvisor changes
Browse files Browse the repository at this point in the history
Signed-off-by: Vasyl Gello <[email protected]>
  • Loading branch information
basilgello committed Jul 24, 2024
1 parent f0eecd2 commit 9da8846
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/netstack/yggdrasil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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()) {}

0 comments on commit 9da8846

Please sign in to comment.