|
|
@ -380,17 +380,23 @@ func TestOmitDropLogging(t *testing.T) {
|
|
|
|
want: true,
|
|
|
|
want: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: "v6_multicast_out_low",
|
|
|
|
name: "v4_multicast_out_low",
|
|
|
|
pkt: &packet.ParsedPacket{IPVersion: 4, DstIP: packet.NewIP(net.ParseIP("224.0.0.0"))},
|
|
|
|
pkt: &packet.ParsedPacket{IPVersion: 4, DstIP: packet.NewIP(net.ParseIP("224.0.0.0"))},
|
|
|
|
dir: out,
|
|
|
|
dir: out,
|
|
|
|
want: true,
|
|
|
|
want: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: "v6_multicast_out_high",
|
|
|
|
name: "v4_multicast_out_high",
|
|
|
|
pkt: &packet.ParsedPacket{IPVersion: 4, DstIP: packet.NewIP(net.ParseIP("239.255.255.255"))},
|
|
|
|
pkt: &packet.ParsedPacket{IPVersion: 4, DstIP: packet.NewIP(net.ParseIP("239.255.255.255"))},
|
|
|
|
dir: out,
|
|
|
|
dir: out,
|
|
|
|
want: true,
|
|
|
|
want: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "v4_link_local_unicast",
|
|
|
|
|
|
|
|
pkt: &packet.ParsedPacket{IPVersion: 4, DstIP: packet.NewIP(net.ParseIP("169.254.1.2"))},
|
|
|
|
|
|
|
|
dir: out,
|
|
|
|
|
|
|
|
want: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for _, tt := range tests {
|
|
|
|
for _, tt := range tests {
|
|
|
|