From 13b755cd43cc022450abad9d6391ae7d2d731773 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 22 Mar 2013 03:45:38 +0100 Subject: Add data structures and functions for announcements --- src/types.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/types.h') 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 +#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_ */ -- cgit v1.2.3