]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_filter.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* AS path filter list.
3 * Copyright (C) 1999 Kunihiro Ishiguro
6 #ifndef _QUAGGA_BGP_FILTER_H
7 #define _QUAGGA_BGP_FILTER_H
9 #define ASPATH_SEQ_NUMBER_AUTO -1
11 enum as_filter_type
{ AS_FILTER_DENY
, AS_FILTER_PERMIT
};
13 extern void bgp_filter_init(void);
14 extern void bgp_filter_reset(void);
16 extern enum as_filter_type
as_list_apply(struct as_list
*, void *);
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
);
23 #endif /* _QUAGGA_BGP_FILTER_H */