mirror of
https://github.com/yggdrasil-network/yggstack.git
synced 2025-04-27 13:45:07 +03:00
Fix gvisor changes
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
parent
f0eecd21d4
commit
9da884697a
1 changed files with 7 additions and 2 deletions
|
@ -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()) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue