public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
* Patch to work with gvisor 20221219
@ 2023-01-07 14:20 John Goerzen
  2023-01-08 12:28 ` Sergey Matveev
  0 siblings, 1 reply; 2+ messages in thread
From: John Goerzen @ 2023-01-07 14:20 UTC (permalink / raw)
  To: nncp-devel

[-- 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{

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Patch to work with gvisor 20221219
  2023-01-07 14:20 Patch to work with gvisor 20221219 John Goerzen
@ 2023-01-08 12:28 ` Sergey Matveev
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Matveev @ 2023-01-08 12:28 UTC (permalink / raw)
  To: nncp-devel

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

Greetings!

*** John Goerzen [2023-01-07 08:20]:
>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.

Actually I made that less than two months ago in development branch:
http://www.git.cypherpunks.ru/?p=nncp.git;a=commitdiff;h=8f9d02f26f239411c4676350e4cb80bbc6a16eb1
Did not create new release because it just gives no visible features or
changes. But thanks for the patch anyway!

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-08 12:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-07 14:20 Patch to work with gvisor 20221219 John Goerzen
2023-01-08 12:28 ` Sergey Matveev