diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-01 21:07:59 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-01 21:07:59 +0200 |
commit | f29e37138a190c5cb43747433d687c944b7d2efe (patch) | |
tree | 4f959cc0557150591e993bcc344b316d39272752 /src/tlv_types.h | |
parent | 45a3ff5a4f41ca861a57fc9e14d4ac8a4905af95 (diff) | |
download | babel-f29e37138a190c5cb43747433d687c944b7d2efe.tar babel-f29e37138a190c5cb43747433d687c944b7d2efe.zip |
Simplify basic protocol, rename announces to routes, begin implementing route request handling
Diffstat (limited to 'src/tlv_types.h')
-rw-r--r-- | src/tlv_types.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/tlv_types.h b/src/tlv_types.h index 26ddefc..08a23b6 100644 --- a/src/tlv_types.h +++ b/src/tlv_types.h @@ -64,26 +64,21 @@ typedef struct __attribute__((packed)) gp_babel_tlv_update { uint16_t interval; uint16_t seqno; uint16_t metric; - uint16_t type; - uint16_t key; - uint8_t payload[]; + uint16_t version; + gp_babel_node_id_t node; } gp_babel_tlv_update_t; -typedef struct __attribute__((packed)) gp_babel_tlv_announce_req { +typedef struct __attribute__((packed)) gp_babel_tlv_route_req { uint8_t flags; uint8_t reserved; gp_babel_node_id_t node; - uint16_t type; - uint16_t key; -} gp_babel_tlv_announce_req_t; +} gp_babel_tlv_route_req_t; typedef struct __attribute__((packed)) gp_babel_tlv_seqno_req { uint16_t seqno; uint8_t hop_count; uint8_t reserved; gp_babel_node_id_t node; - uint16_t type; - uint16_t key; } gp_babel_tlv_seqno_req_t; #endif /* _GMRF_PROTO_BABEL_TLV_TYPES_H_ */ |