]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
718e3744 | 2 | /* AS regular expression routine |
896014f4 | 3 | * Copyright (C) 1999 Kunihiro Ishiguro |
896014f4 | 4 | */ |
718e3744 | 5 | |
061f5d1c DA |
6 | #ifndef _FRR_BGP_REGEX_H |
7 | #define _FRR_BGP_REGEX_H | |
00d252cb | 8 | |
718e3744 | 9 | #include <zebra.h> |
10 | ||
061f5d1c DA |
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) | |
d62a17ae | 17 | #include <pcreposix.h> |
718e3744 | 18 | #else |
d62a17ae | 19 | #include <regex.h> |
061f5d1c | 20 | #endif /* HAVE_LIBPCRE2_POSIX */ |
718e3744 | 21 | |
d62a17ae | 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); | |
00d252cb | 25 | |
061f5d1c | 26 | #endif /* _FRR_BGP_REGEX_H */ |