12 lines
366 B
Go
12 lines
366 B
Go
|
package protocol
|
||
|
|
||
|
type Field struct {
|
||
|
Name string // Name of the Field
|
||
|
Desc string // Lengthy description
|
||
|
Regex string // Regex to recognize values
|
||
|
Size uint // Size in bits!
|
||
|
SubFields []Field // Possible sub-fields
|
||
|
Optional bool // Is this field required?
|
||
|
Payload bool // Is this field the payload or next protocol level?
|
||
|
}
|