mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-16 16:06:52 +01:00
small simplification
This commit is contained in:
1 parent
174ee003b5
commit
43d26d4fe5
5 files changed
+4
-14
No files matched your search
+1
-4
@@ -19,9 +19,7 @@ type Packet struct {
|
||||
Name []byte
|
||||
SegSize int
|
||||
|
||||
//todo should this hold out as well?
|
||||
OutLen int
|
||||
|
||||
ReadyToSend bool
|
||||
wasSegmented bool
|
||||
isV4 bool
|
||||
}
|
||||
@@ -71,7 +69,6 @@ func (p *Packet) updateCtrl(ctrlLen int) {
|
||||
|
||||
// Update sets a Packet into "just received, not processed" state
|
||||
func (p *Packet) Update(ctrlLen int) {
|
||||
p.OutLen = -1
|
||||
p.updateCtrl(ctrlLen)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user