diff options
Diffstat (limited to 'ffd/tlv_types.h')
-rw-r--r-- | ffd/tlv_types.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ffd/tlv_types.h b/ffd/tlv_types.h index dcb44b4..a37e095 100644 --- a/ffd/tlv_types.h +++ b/ffd/tlv_types.h @@ -44,4 +44,30 @@ typedef struct __attribute__((packed)) _ffd_tlv_ihu_t { uint8_t address[]; } ffd_tlv_ihu_t; +typedef struct __attribute__((packed)) _ffd_tlv_node_id_t { + ffd_node_id_t id; +} ffd_tlv_node_id_t; + +typedef struct __attribute__((packed)) _ffd_tlv_update_t { + uint16_t interval; + uint16_t seqno; + uint16_t metric; + uint16_t type; + uint16_t key; + uint8_t data[]; +} ffd_tlv_update_t; + +typedef struct __attribute__((packed)) _ffd_tlv_announce_req_t { + ffd_node_id_t node; + uint16_t type; + uint16_t key; +} ffd_tlv_announce_req_t; + +typedef struct __attribute__((packed)) _ffd_tlv_seqno_req_t { + ffd_node_id_t node; + uint16_t type; + uint16_t key; + uint16_t seqno; +} ffd_tlv_seqno_req_t; + #endif /* _FFD_TLV_TYPES_H_ */ |