mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-18 17:26:52 +01:00
snip
This commit is contained in:
1 parent
6e1df81473
commit
daef13e53a
1 file changed
+4
-3
+4
-3
@@ -26,9 +26,10 @@ type Capabilities struct {
|
||||
type Queue interface {
|
||||
io.Closer
|
||||
|
||||
// Read will read at least 1 packet from the tun (up to len(p))
|
||||
// mem will be used to provide the backing for each of p[n].Bytes
|
||||
// Returns the number of packets actually read, or error
|
||||
// Read will read at least 1 packet from the tun (up to len(p)).
|
||||
// mem will be used to provide the backing for each of p[n].Bytes.
|
||||
// Callers should size mem and p to avoid exhausting mem before p.
|
||||
// Returns the number of packets actually read, or error.
|
||||
Read(p []wire.TunPacket, mem []byte) (int, error)
|
||||
|
||||
// Write emits a single packet on the plaintext (outside→inside)
|
||||
|
||||
Reference in new issue
Block a user