Skip to content

Commit

Permalink
send more invalid stratum level
Browse files Browse the repository at this point in the history
  • Loading branch information
vilhelmprytz committed May 11, 2024
1 parent 4abfeec commit d0feca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/ntp-example-server/ntpserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type NTPPacket struct {
}

func corruptNTPPacket(packet *NTPPacket) {
packet.Stratum = 0 // Invalid stratum
packet.Stratum = 17 // Invalid stratum
}

func handleConnection(conn *net.UDPConn, fixedTime uint64, corrupt bool) {
Expand Down

0 comments on commit d0feca5

Please sign in to comment.