diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-04-13 10:21:35 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-03 14:49:39 +0100 |
commit | c7da3d50b38b430494465c1ba0d68244bfd16d56 (patch) | |
tree | 26b658e9503e5786c6156d48c0bfe0411bd822e5 /lib/plist.h | |
parent | lib: hide internal prefix list structures (diff) | |
download | frr-c7da3d50b38b430494465c1ba0d68244bfd16d56.tar.xz frr-c7da3d50b38b430494465c1ba0d68244bfd16d56.zip |
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>
Diffstat (limited to 'lib/plist.h')
-rw-r--r-- | lib/plist.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/plist.h b/lib/plist.h index cfc43c781..2c6f13a5c 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 *, u_char); #endif /* _QUAGGA_PLIST_H */ |