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
----------------------------------------------------------------------------------------------------------------