Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Doridian committed Aug 31, 2022
1 parent df54b6a commit 642ab2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipv4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ readFrame:
if ethertype != waterutil.IPv4 {
continue readFrame
}
if expectBroadcast && !waterutil.IsBroadcast(waterutil.MACDestination(buffer)) {
if expectBroadcast && !waterutil.IsMACBroadcast(waterutil.MACDestination(buffer)) {
continue readFrame
}
packet = waterutil.MACPayload(buffer)
} else {
packet = buffer
}
if !waterutil.IsIPv4(packet) {
if waterutil.IPVersion(packet) != 4 {
continue readFrame
}
if !waterutil.IPv4Source(packet).Equal(expectSrc) {
Expand Down

0 comments on commit 642ab2d

Please sign in to comment.