]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: tighten up what functions can be used outside of ospf_packet.c
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 30 Aug 2019 20:05:26 +0000 (16:05 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 30 Aug 2019 20:48:07 +0000 (16:48 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospfd/ospf_packet.c
ospfd/ospf_packet.h

index c69218fb5a7bff86dcad37fe12e5b14ada52a4b6..00ddd06d7d1770be3eb3680d76ff4f6564094a8a 100644 (file)
@@ -132,7 +132,7 @@ static int ospf_auth_type(struct ospf_interface *oi)
        return auth_type;
 }
 
-struct ospf_packet *ospf_packet_new(size_t size)
+static struct ospf_packet *ospf_packet_new(size_t size)
 {
        struct ospf_packet *new;
 
@@ -231,7 +231,7 @@ void ospf_fifo_free(struct ospf_fifo *fifo)
        XFREE(MTYPE_OSPF_FIFO, fifo);
 }
 
-void ospf_packet_add(struct ospf_interface *oi, struct ospf_packet *op)
+static void ospf_packet_add(struct ospf_interface *oi, struct ospf_packet *op)
 {
        if (!oi->obuf) {
                flog_err(
@@ -278,7 +278,7 @@ static void ospf_packet_add_top(struct ospf_interface *oi,
        /* ospf_fifo_debug (oi->obuf); */
 }
 
-void ospf_packet_delete(struct ospf_interface *oi)
+static void ospf_packet_delete(struct ospf_interface *oi)
 {
        struct ospf_packet *op;
 
@@ -288,7 +288,7 @@ void ospf_packet_delete(struct ospf_interface *oi)
                ospf_packet_free(op);
 }
 
-struct ospf_packet *ospf_packet_dup(struct ospf_packet *op)
+static struct ospf_packet *ospf_packet_dup(struct ospf_packet *op)
 {
        struct ospf_packet *new;
 
index a508727968a37366798233fef64055697286cf88..5a3e029f2ea9e7f161a7fce9fbb67158918ed63f 100644 (file)
@@ -131,8 +131,6 @@ struct ospf_ls_update {
 #define IS_SET_DD_ALL(X)        ((X) & OSPF_DD_FLAG_ALL)
 
 /* Prototypes. */
-extern void ospf_output_forward(struct stream *, int);
-extern struct ospf_packet *ospf_packet_new(size_t);
 extern void ospf_packet_free(struct ospf_packet *);
 extern struct ospf_fifo *ospf_fifo_new(void);
 extern void ospf_fifo_push(struct ospf_fifo *, struct ospf_packet *);
@@ -140,10 +138,6 @@ extern struct ospf_packet *ospf_fifo_pop(struct ospf_fifo *);
 extern struct ospf_packet *ospf_fifo_head(struct ospf_fifo *);
 extern void ospf_fifo_flush(struct ospf_fifo *);
 extern void ospf_fifo_free(struct ospf_fifo *);
-extern void ospf_packet_add(struct ospf_interface *, struct ospf_packet *);
-extern void ospf_packet_delete(struct ospf_interface *);
-extern struct stream *ospf_stream_dup(struct stream *);
-extern struct ospf_packet *ospf_packet_dup(struct ospf_packet *);
 
 extern int ospf_read(struct thread *);
 extern void ospf_hello_send(struct ospf_interface *);