1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Added support for decoding the ether_type to Frame:ether_parse in the packet

library. [Patrik]
This commit is contained in:
patrik
2012-01-10 06:59:45 +00:00
parent 7d4c555712
commit bf7a46fc0d

View File

@@ -210,6 +210,7 @@ function Frame:ether_parse()
end
self.mac_dst = string.sub(self.frame_buf, 1, 6)
self.mac_src = string.sub(self.frame_buf, 7, 12)
self.ether_type = u16(self.frame_buf, 12)
end
----------------------------------------------------------------------------------------------------------------