small simplification

This commit is contained in:
JackDoan
2025-12-15 14:23:48 -06:00
parent 174ee003b5
commit 43d26d4fe5
5 changed files with 4 additions and 14 deletions

View File

@@ -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)
}