]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_regex.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* AS regular expression routine
3 * Copyright (C) 1999 Kunihiro Ishiguro
6 #ifndef _FRR_BGP_REGEX_H
7 #define _FRR_BGP_REGEX_H
11 #ifdef HAVE_LIBPCRE2_POSIX
12 #ifndef _FRR_PCRE2_POSIX
13 #define _FRR_PCRE2_POSIX
14 #include <pcre2posix.h>
15 #endif /* _FRR_PCRE2_POSIX */
16 #elif defined(HAVE_LIBPCREPOSIX)
17 #include <pcreposix.h>
20 #endif /* HAVE_LIBPCRE2_POSIX */
22 extern void bgp_regex_free(regex_t
*regex
);
23 extern regex_t
*bgp_regcomp(const char *str
);
24 extern int bgp_regexec(regex_t
*regex
, struct aspath
*aspath
);
26 #endif /* _FRR_BGP_REGEX_H */