]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_filter.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / bgpd / bgp_filter.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* AS path filter list.
3 * Copyright (C) 1999 Kunihiro Ishiguro
4 */
5
6 #ifndef _QUAGGA_BGP_FILTER_H
7 #define _QUAGGA_BGP_FILTER_H
8
9 #define ASPATH_SEQ_NUMBER_AUTO -1
10
11 enum as_filter_type { AS_FILTER_DENY, AS_FILTER_PERMIT };
12
13 extern void bgp_filter_init(void);
14 extern void bgp_filter_reset(void);
15
16 extern enum as_filter_type as_list_apply(struct as_list *, void *);
17
18 extern struct as_list *as_list_lookup(const char *);
19 extern void as_list_add_hook(void (*func)(char *));
20 extern void as_list_delete_hook(void (*func)(const char *));
21 extern bool config_bgp_aspath_validate(const char *regstr);
22
23 #endif /* _QUAGGA_BGP_FILTER_H */