summaryrefslogtreecommitdiffstats
path: root/lib/plist.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-04-13 10:21:35 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2015-05-05 15:07:45 +0200
commitc9c06d0d8cbc766374c43328e91b7a87f93e9c62 (patch)
tree7079c5e07ab0941949373d901bbd672066b9e4c6 /lib/plist.h
parente66cbd10d52a79fd61acab9d615683eebdbf1df5 (diff)
downloadquagga-c9c06d0d8cbc766374c43328e91b7a87f93e9c62.tar.bz2
quagga-c9c06d0d8cbc766374c43328e91b7a87f93e9c62.tar.xz
lib: straighten out ORF prefix list support
BGP ORF prefix lists are in a separate namespace; this was previously hooked up with a special-purpose AFI value. This is a little kludgy for extension, hence this splits it off. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> Acked-by: Paul Jakma <paul@jakma.org>
Diffstat (limited to 'lib/plist.h')
-rw-r--r--lib/plist.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/plist.h b/lib/plist.h
index 1e621ff8..aa14e74b 100644
--- a/lib/plist.h
+++ b/lib/plist.h
@@ -23,8 +23,6 @@
#ifndef _QUAGGA_PLIST_H
#define _QUAGGA_PLIST_H
-#define AFI_ORF_PREFIX 65535
-
enum prefix_list_type
{
PREFIX_DENY,
@@ -51,11 +49,12 @@ extern const char *prefix_list_name (struct prefix_list *);
extern struct prefix_list *prefix_list_lookup (afi_t, const char *);
extern enum prefix_list_type prefix_list_apply (struct prefix_list *, void *);
+extern struct prefix_list *prefix_bgp_orf_lookup (afi_t, const char *);
extern struct stream * prefix_bgp_orf_entry (struct stream *,
struct prefix_list *,
u_char, u_char, u_char);
extern int prefix_bgp_orf_set (char *, afi_t, struct orf_prefix *, int, int);
-extern void prefix_bgp_orf_remove_all (char *);
+extern void prefix_bgp_orf_remove_all (afi_t, char *);
extern int prefix_bgp_show_prefix_list (struct vty *, afi_t, char *);
#endif /* _QUAGGA_PLIST_H */