mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 14:50:58 +00:00
ospfd: tighten up what functions can be used outside of ospf_packet.c
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
4173cc8e23
commit
7cec50a533
@ -132,7 +132,7 @@ static int ospf_auth_type(struct ospf_interface *oi)
|
|||||||
return auth_type;
|
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;
|
struct ospf_packet *new;
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ void ospf_fifo_free(struct ospf_fifo *fifo)
|
|||||||
XFREE(MTYPE_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) {
|
if (!oi->obuf) {
|
||||||
flog_err(
|
flog_err(
|
||||||
@ -278,7 +278,7 @@ static void ospf_packet_add_top(struct ospf_interface *oi,
|
|||||||
/* ospf_fifo_debug (oi->obuf); */
|
/* 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;
|
struct ospf_packet *op;
|
||||||
|
|
||||||
@ -288,7 +288,7 @@ void ospf_packet_delete(struct ospf_interface *oi)
|
|||||||
ospf_packet_free(op);
|
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;
|
struct ospf_packet *new;
|
||||||
|
|
||||||
|
@ -131,8 +131,6 @@ struct ospf_ls_update {
|
|||||||
#define IS_SET_DD_ALL(X) ((X) & OSPF_DD_FLAG_ALL)
|
#define IS_SET_DD_ALL(X) ((X) & OSPF_DD_FLAG_ALL)
|
||||||
|
|
||||||
/* Prototypes. */
|
/* 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 void ospf_packet_free(struct ospf_packet *);
|
||||||
extern struct ospf_fifo *ospf_fifo_new(void);
|
extern struct ospf_fifo *ospf_fifo_new(void);
|
||||||
extern void ospf_fifo_push(struct ospf_fifo *, struct ospf_packet *);
|
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 struct ospf_packet *ospf_fifo_head(struct ospf_fifo *);
|
||||||
extern void ospf_fifo_flush(struct ospf_fifo *);
|
extern void ospf_fifo_flush(struct ospf_fifo *);
|
||||||
extern void ospf_fifo_free(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 int ospf_read(struct thread *);
|
||||||
extern void ospf_hello_send(struct ospf_interface *);
|
extern void ospf_hello_send(struct ospf_interface *);
|
||||||
|
Loading…
Reference in New Issue
Block a user