2023-02-08 13:17:09 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2002-12-13 21:15:29 +01:00
|
|
|
/* AS regular expression routine
|
2017-05-13 10:25:29 +02:00
|
|
|
* Copyright (C) 1999 Kunihiro Ishiguro
|
|
|
|
*/
|
2002-12-13 21:15:29 +01:00
|
|
|
|
2022-10-31 21:23:51 +01:00
|
|
|
#ifndef _FRR_BGP_REGEX_H
|
|
|
|
#define _FRR_BGP_REGEX_H
|
2005-05-23 16:19:54 +02:00
|
|
|
|
2002-12-13 21:15:29 +01:00
|
|
|
#include <zebra.h>
|
|
|
|
|
2022-10-31 21:23:51 +01:00
|
|
|
#ifdef HAVE_LIBPCRE2_POSIX
|
|
|
|
#ifndef _FRR_PCRE2_POSIX
|
|
|
|
#define _FRR_PCRE2_POSIX
|
|
|
|
#include <pcre2posix.h>
|
|
|
|
#endif /* _FRR_PCRE2_POSIX */
|
|
|
|
#elif defined(HAVE_LIBPCREPOSIX)
|
2009-01-12 22:06:12 +01:00
|
|
|
#include <pcreposix.h>
|
2002-12-13 21:15:29 +01:00
|
|
|
#else
|
2016-11-15 05:37:14 +01:00
|
|
|
#include <regex.h>
|
2022-10-31 21:23:51 +01:00
|
|
|
#endif /* HAVE_LIBPCRE2_POSIX */
|
2002-12-13 21:15:29 +01:00
|
|
|
|
2005-06-28 14:44:16 +02:00
|
|
|
extern void bgp_regex_free(regex_t *regex);
|
|
|
|
extern regex_t *bgp_regcomp(const char *str);
|
|
|
|
extern int bgp_regexec(regex_t *regex, struct aspath *aspath);
|
2005-05-23 16:19:54 +02:00
|
|
|
|
2022-10-31 21:23:51 +01:00
|
|
|
#endif /* _FRR_BGP_REGEX_H */
|