Fix IPv4 parsing from windows state tables

This commit is contained in:
Daniel
2020-05-16 22:43:42 +02:00
parent ca8b36cbc7
commit 886d30278f
2 changed files with 3 additions and 1 deletions

View File

@@ -113,6 +113,7 @@ func Handler(packets chan packet.Packet) {
}
}
// convertIPv4 as needed for data from the kernel
func convertIPv4(input [4]uint32) net.IP {
addressBuf := make([]byte, 4)
binary.BigEndian.PutUint32(addressBuf, input[0])