Size send failure heads from the header length and tolerate a missing lighthouse

This commit is contained in:
JackDoan committed 2026-10-20 15:47:43 -05:00
1 parent 995f22ca53
commit 44e3365d4f
2 files changed
+7 -3

No files matched your search

+6 -2
View File
@@ -1,11 +1,15 @@
package batch
import "net/netip"
import (
"net/netip"
"github.com/slackhq/nebula/header"
)
const SendBatchCap = 128
// FailureHeadLen is how much of a refused packet a Failure keeps, nebula's header, which says whose packet it was
const FailureHeadLen = 16
const FailureHeadLen = header.Len
// batchWriter is the minimal subset of udp.Conn needed by SendBatch to flush.
type batchWriter interface {