mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 10:31:59 +00:00
wgengine/filter: only log packets to/from non-default routes.
Fixes tailscale/corp#1429. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
@@ -116,6 +116,12 @@ func (q *Parsed) Decode(b []byte) {
|
||||
}
|
||||
}
|
||||
|
||||
// StuffForTesting makes Parsed contain a len-bytes buffer. Used in
|
||||
// tests to build up a synthetic parse result with a non-zero buffer.
|
||||
func (q *Parsed) StuffForTesting(len int) {
|
||||
q.b = make([]byte, len)
|
||||
}
|
||||
|
||||
func (q *Parsed) decode4(b []byte) {
|
||||
if len(b) < ip4HeaderLength {
|
||||
q.IPVersion = 0
|
||||
|
||||
Reference in New Issue
Block a user