wgengine/filter: fix IPv4 IGMP spam omission, also omit ff02::16 spam

And add tests.

Fixes #618
Updates #402
This commit is contained in:
Brad Fitzpatrick
2020-07-30 10:57:30 -07:00
parent ff8c8db9d3
commit b4d97d2532
4 changed files with 95 additions and 9 deletions

View File

@ -57,7 +57,7 @@ type NextHeader uint8
func (p *ParsedPacket) String() string {
if p.IPVersion == 6 {
return "IPv6{???}"
return fmt.Sprintf("IPv6{Proto=%d}", p.IPProto)
}
switch p.IPProto {
case Unknown: