This repository has been archived on 2020-12-30. You can view files and clone it, but cannot push or open issues or pull requests.
NetworkProtocolDictionary/structure-schema.yml

37 lines
965 B
YAML
Raw Normal View History

type: map
mapping:
"protocol":
type: map
required: yes
mapping:
"name":
type: str
required: yes
"fields":
type: seq
required: yes
sequence: &fieldsseq
- type: map
mapping:
"field":
type: str
required: yes
"length": #length in bytes, except bitfield is set to true!
type: int
required: yes
"bitfield": #if this is true length is in BITS!
type: bool
"optional":
type: bool
"repeatable":
type: bool
"data": #data placeholder for next layer (length should be 0!)
type: bool
"subfields":
type: seq
sequence: *fieldsseq
"osilayer":
type: int
range: { max: 7, min: 1 }
required: yes