mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-20 02:16:52 +01:00
change Queue.Read signature
This commit is contained in:
1 parent
3192e47ff4
commit
3b1e658bef
13 files changed
+170
-197
No files matched your search
@@ -0,0 +1,11 @@
|
||||
package wire
|
||||
|
||||
// TunPacket is the unit a read from a tun device returns.
|
||||
// On supported platforms, it may be a superpacket, but a single TunPacket will never have more than one destination.
|
||||
type TunPacket struct {
|
||||
// Bytes contains the actual packet
|
||||
Bytes []byte
|
||||
// Meta contains other information to help process the packet correctly, such as offsets for segmentation offloads
|
||||
// Fields in Meta should be as portable/platform-agnostic as possible.
|
||||
Meta struct{}
|
||||
}
|
||||
Reference in new issue
Block a user