]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_filter.h
bgpd: fix the IGP metric for best path selection on VPN import
[mirror_frr.git] / bgpd / bgp_filter.h
index e3ce7a1c1d9f245a32f879920dbc208aa1d3d607..66c83d97e9e26da8276ea62d79a996afccee1bee 100644 (file)
 #ifndef _QUAGGA_BGP_FILTER_H
 #define _QUAGGA_BGP_FILTER_H
 
-enum as_filter_type
-{
-  AS_FILTER_DENY,
-  AS_FILTER_PERMIT
-};
+#define ASPATH_SEQ_NUMBER_AUTO -1
 
-extern void bgp_filter_init (void);
-extern void bgp_filter_reset (void);
+enum as_filter_type { AS_FILTER_DENY, AS_FILTER_PERMIT };
 
-extern enum as_filter_type as_list_apply (struct as_list *, void *);
+extern void bgp_filter_init(void);
+extern void bgp_filter_reset(void);
 
-extern struct as_list *as_list_lookup (const char *);
-extern void as_list_add_hook (void (*func) (char *));
-extern void as_list_delete_hook (void (*func) (const char *));
+extern enum as_filter_type as_list_apply(struct as_list *, void *);
+
+extern struct as_list *as_list_lookup(const char *);
+extern void as_list_add_hook(void (*func)(char *));
+extern void as_list_delete_hook(void (*func)(const char *));
+extern bool config_bgp_aspath_validate(const char *regstr);
 
 #endif /* _QUAGGA_BGP_FILTER_H */