public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
From: John Goerzen <jgoerzen@complete•org>
To: nncp-devel@lists.cypherpunks.ru
Subject: Patch to work with gvisor 20221219
Date: Sat, 07 Jan 2023 08:20:55 -0600	[thread overview]
Message-ID: <87pmbqbf3s.fsf@complete.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

Hi Sergey,

Here's a patch that Debian has added to NNCP to let it work with gvisor
20221219.  I imagine you may want to bump the gvisor dep version after
applying.

Thanks,

John


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gvisor-20221219.patch --]
[-- Type: text/x-diff, Size: 1354 bytes --]

From: Shengjing Zhu <zhsj@debian•org>
Date: Mon, 2 Jan 2023 05:29:59 +0800
Subject: gvisor 20221219

---
 src/yggdrasil/tcpip.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/yggdrasil/tcpip.go b/src/yggdrasil/tcpip.go
index a1a71ac..d399b3e 100644
--- a/src/yggdrasil/tcpip.go
+++ b/src/yggdrasil/tcpip.go
@@ -68,7 +68,7 @@ func (*TCPIPEndpoint) LinkAddress() tcpip.LinkAddress { return "" }
 
 func (*TCPIPEndpoint) Wait() {}
 
-func (e *TCPIPEndpoint) WritePacket(pkt *stack.PacketBuffer) tcpip.Error {
+func (e *TCPIPEndpoint) WritePacket(pkt stack.PacketBufferPtr) tcpip.Error {
 	v := pkt.ToView()
 	n, err := v.Read(e.writeBuf)
 	if err != nil {
@@ -99,13 +99,13 @@ func (e *TCPIPEndpoint) WritePackets(pbs stack.PacketBufferList) (int, tcpip.Err
 	return len(pbs.AsSlice()), nil
 }
 
-func (e *TCPIPEndpoint) WriteRawPacket(*stack.PacketBuffer) tcpip.Error {
+func (e *TCPIPEndpoint) WriteRawPacket(stack.PacketBufferPtr) tcpip.Error {
 	panic("not implemented")
 }
 
 func (*TCPIPEndpoint) ARPHardwareType() header.ARPHardwareType { return header.ARPHardwareNone }
 
-func (e *TCPIPEndpoint) AddHeader(*stack.PacketBuffer) {}
+func (e *TCPIPEndpoint) AddHeader(stack.PacketBufferPtr) {}
 
 func convertToFullAddr(ip net.IP, port int) (tcpip.FullAddress, tcpip.NetworkProtocolNumber) {
 	return tcpip.FullAddress{

             reply	other threads:[~2023-01-07 14:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-07 14:20 John Goerzen [this message]
2023-01-08 12:28 ` Patch to work with gvisor 20221219 Sergey Matveev