summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_message.h
diff options
context:
space:
mode:
authorPat Ruddy <pat@voltanet.io>2021-03-10 18:40:14 +0000
committerPat Ruddy <pat@voltanet.io>2021-06-18 09:40:42 +0100
commit531f925b4d22778ebcd93158757e105de0217f87 (patch)
tree752bddbd495272d5e3966c4a386c150e8067e94d /ospf6d/ospf6_message.h
parent4f7bf1ab052e82f16f8b965c6afe9d1c0f22f479 (diff)
ospf6d: add packet apis
Add APIs to create, queue and dequeue OSPFv3 packets Signed-off-by: Pat Ruddy <pat@voltanet.io>
Diffstat (limited to 'ospf6d/ospf6_message.h')
-rw-r--r--ospf6d/ospf6_message.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/ospf6d/ospf6_message.h b/ospf6d/ospf6_message.h
index 4069e10486..c7a5434e59 100644
--- a/ospf6d/ospf6_message.h
+++ b/ospf6d/ospf6_message.h
@@ -159,12 +159,17 @@ extern void ospf6_lsack_print(struct ospf6_header *, int action);
extern void ospf6_packet_free(struct ospf6_packet *op);
extern struct ospf6_fifo *ospf6_fifo_new(void);
-extern void ospf6_fifo_push(struct ospf6_fifo *fifo, struct ospf6_packet *op);
-void ospf6_fifo_push_head(struct ospf6_fifo *fifo, struct ospf6_packet *op);
-extern struct ospf6_packet *ospf6_fifo_pop(struct ospf6_fifo *fifo);
-extern struct ospf6_packet *ospf6_fifo_head(struct ospf6_fifo *fifo);
extern void ospf6_fifo_flush(struct ospf6_fifo *fifo);
extern void ospf6_fifo_free(struct ospf6_fifo *fifo);
+struct ospf6_packet *ospf6_fifo_head(struct ospf6_fifo *fifo);
+
+/* temporary inclusinon of ospf6_interface.h for compile will be removed */
+#include "ospf6_interface.h"
+extern void ospf6_packet_add(struct ospf6_interface *oi,
+ struct ospf6_packet *op);
+extern void ospf6_packet_add_top(struct ospf6_interface *oi,
+ struct ospf6_packet *op);
+extern void ospf6_packet_delete(struct ospf6_interface *oi);
extern int ospf6_iobuf_size(unsigned int size);
extern void ospf6_message_terminate(void);