From f29e37138a190c5cb43747433d687c944b7d2efe Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 1 Aug 2013 21:07:59 +0200 Subject: Simplify basic protocol, rename announces to routes, begin implementing route request handling --- src/tlv_types.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/tlv_types.h') 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_ */ -- cgit v1.2.3