mirror of
https://github.com/nmap/nmap.git
synced 2026-06-19 23:17:48 +00:00
Added support for decoding the ether_type to Frame:ether_parse in the packet
library. [Patrik]
This commit is contained in:
parent
7d4c555712
commit
bf7a46fc0d
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue