summaryrefslogtreecommitdiffstats
path: root/ffd/tlv.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-09-25 00:38:19 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-09-25 00:38:19 +0200
commit9eeec649fb91784d26cbfcad876cff1d6b950408 (patch)
tree198c7c885566b57a70990429fef7fea5a92f903f /ffd/tlv.h
parente16168401d61c20bf4d66d5636c30ad10874fc52 (diff)
downloadffd-9eeec649fb91784d26cbfcad876cff1d6b950408.tar
ffd-9eeec649fb91784d26cbfcad876cff1d6b950408.zip
Send hello packets
Diffstat (limited to 'ffd/tlv.h')
-rw-r--r--ffd/tlv.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/ffd/tlv.h b/ffd/tlv.h
index b8501a3..287c5c6 100644
--- a/ffd/tlv.h
+++ b/ffd/tlv.h
@@ -33,14 +33,23 @@
typedef enum _ffd_tlv_type_t {
TLV_PAD1 = 0,
TLV_PADN,
+ TLV_ACK_REQ,
+ TLV_ACK,
+ TLV_HELLO,
+ TLV_IHU,
+ TLV_NODE_ID,
+ TLV_RESERVED,
+ TLV_UPDATE,
+ TLV_INFO_REQ,
+ TLV_SEQNO_REQ,
} ffd_tlv_type_t;
-typedef void (*ffd_tlv_cb)(ffd_tlv_type_t type, const void *data, size_t len);
+typedef void (*ffd_tlv_cb)(ffd_tlv_type_t type, const void *data, size_t len, void *arg);
-bool ffd_tlv_parse(const ffd_packet_t *packet, ffd_tlv_cb cb);
-bool ffd_tlv_add(ffd_packet_t *packet, size_t max_len, ffd_tlv_type_t type, void *data, size_t len);
+bool ffd_tlv_parse(const ffd_packet_t *packet, ffd_tlv_cb cb, void *arg);
+void* ffd_tlv_add(ffd_packet_t *packet, size_t max_len, ffd_tlv_type_t type, size_t len);
#endif /* _FFD_TLV_H_ */