summaryrefslogtreecommitdiffstats
path: root/ripngd/ripngd.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-01-04 22:08:10 +0100
committerRenato Westphal <renato@opensourcerouting.org>2019-01-18 19:15:41 +0100
commitecece94cf1be254d89868cec95cc9d4b04264a6b (patch)
treedc082aba1b4d4d12392804951f93f4076be7a151 /ripngd/ripngd.h
parentripngd: move "Vripng_passive_interface" to the ripng structure (diff)
downloadfrr-ecece94cf1be254d89868cec95cc9d4b04264a6b.tar.xz
frr-ecece94cf1be254d89868cec95cc9d4b04264a6b.zip
ripngd: move "peer_list" to the ripng structure
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--ripngd/ripngd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ripngd/ripngd.h b/ripngd/ripngd.h
index 95b128f4d..3e5ca18ed 100644
--- a/ripngd/ripngd.h
+++ b/ripngd/ripngd.h
@@ -108,6 +108,9 @@ struct ripng {
/* RIPng routing information base. */
struct agg_table *table;
+ /* Linked list of RIPng peers. */
+ struct list *peer_list;
+
/* RIPng enabled interfaces. */
vector enable_if;
@@ -343,7 +346,6 @@ struct ripng_offset_list {
/* Extern variables. */
extern struct ripng *ripng;
-extern struct list *peer_list;
extern struct zebra_privs_t ripngd_privs;
extern struct thread_master *master;
@@ -368,13 +370,13 @@ extern void ripng_zebra_stop(void);
extern void ripng_redistribute_conf_update(int type);
extern void ripng_redistribute_conf_delete(int type);
-extern void ripng_peer_init(void);
extern void ripng_peer_update(struct sockaddr_in6 *, uint8_t);
extern void ripng_peer_bad_route(struct sockaddr_in6 *);
extern void ripng_peer_bad_packet(struct sockaddr_in6 *);
extern void ripng_peer_display(struct vty *);
extern struct ripng_peer *ripng_peer_lookup(struct in6_addr *);
extern struct ripng_peer *ripng_peer_lookup_next(struct in6_addr *);
+extern int ripng_peer_list_cmp(struct ripng_peer *p1, struct ripng_peer *p2);
extern struct ripng_offset_list *ripng_offset_list_new(const char *ifname);
extern void ripng_offset_list_del(struct ripng_offset_list *offset);