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:
@@ -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
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user