summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
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_ */