summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-03-22 03:45:38 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-03-22 03:45:38 +0100
commit13b755cd43cc022450abad9d6391ae7d2d731773 (patch)
tree1b5a823f429c112abaa32e0a545f16accb399546 /src/types.h
parent8fe8ed1942b6d7ff029a5a02e3352009d31f2ee2 (diff)
downloadbabel-13b755cd43cc022450abad9d6391ae7d2d731773.tar
babel-13b755cd43cc022450abad9d6391ae7d2d731773.zip
Add data structures and functions for announcements
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/types.h b/src/types.h
index 1d05c03..58b3721 100644
--- a/src/types.h
+++ b/src/types.h
@@ -30,13 +30,23 @@
#include <gmrf/gmrf.h>
+#define GP_BABEL_NODE_ID_LENGTH 8
+
typedef struct __attribute__((packed)) gp_gabel_node_id {
- uint8_t id[8];
+ uint8_t id[GP_BABEL_NODE_ID_LENGTH];
} gp_babel_node_id_t;
-typedef struct gp_babel_packet gp_babel_packet_t;
-typedef struct gp_babel_packet_buf gp_babel_packet_buf_t;
+typedef struct gp_babel_metric_seqno {
+ uint16_t metric;
+ uint16_t seqno;
+} gp_babel_metric_seqno_t;
+
+
typedef struct gp_babel_iface gp_babel_iface_t;
typedef struct gp_babel_neigh gp_babel_neigh_t;
+typedef struct gp_babel_announce gp_babel_announce_t;
+
+typedef struct gp_babel_packet gp_babel_packet_t;
+typedef struct gp_babel_packet_buf gp_babel_packet_buf_t;
#endif /* _GMRF_PROTO_BABEL_TYPES_H_ */