]> git.proxmox.com Git - mirror_frr.git/blame - bgpd/bgp_regex.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / bgpd / bgp_regex.h
CommitLineData
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 22extern void bgp_regex_free(regex_t *regex);
23extern regex_t *bgp_regcomp(const char *str);
24extern int bgp_regexec(regex_t *regex, struct aspath *aspath);
00d252cb 25
061f5d1c 26#endif /* _FRR_BGP_REGEX_H */