1 | initial version |
The presentation is dictated by the field type in use, this is a boolean field with a bitmask to isolate the bit required along with a True\False string for the corresponding states of the bit. A lua bitfield type for the Ethernet LG field would be something like:
local myField = ProtoField.bool("eth.dst.lg", "LG Bit", 24, {"Locally administered address (this is NOT the factory default)", "Globally unique address (factory default)"}, 0x20000, "Specifies if this is a locally administered or globally unique (IEEE assigned) address")
2 | No.2 Revision |
Caution, I'm a C programmer I only play at Lua.
The presentation is dictated by the field type in use, this is a boolean field with a bitmask to isolate the bit required along with a True\False string for the corresponding states of the bit. A lua bitfield type for the Ethernet LG field would be something like:
local myField = ProtoField.bool("eth.dst.lg", "LG Bit", 24, {"Locally administered address (this is NOT the factory default)", "Globally unique address (factory default)"}, 0x20000, "Specifies if this is a locally administered or globally unique (IEEE assigned) address")