bgp_regex.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* AS regular expression routine
  2. Copyright (C) 1999 Kunihiro Ishiguro
  3. This file is part of GNU Zebra.
  4. GNU Zebra is free software; you can redistribute it and/or modify it
  5. under the terms of the GNU General Public License as published by the
  6. Free Software Foundation; either version 2, or (at your option) any
  7. later version.
  8. GNU Zebra is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNU Zebra; see the file COPYING. If not, write to the Free
  14. Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  15. 02111-1307, USA. */
  16. #ifndef _QUAGGA_BGP_REGEX_H
  17. #define _QUAGGA_BGP_REGEX_H
  18. #include <zebra.h>
  19. #ifdef HAVE_LIBPCREPOSIX
  20. # include <pcreposix.h>
  21. #else
  22. # ifdef HAVE_GNU_REGEX
  23. # include <regex.h>
  24. # else
  25. # include "regex-gnu.h"
  26. # endif /* HAVE_GNU_REGEX */
  27. #endif /* HAVE_LIBPCREPOSIX */
  28. extern void bgp_regex_free (regex_t *regex);
  29. extern regex_t *bgp_regcomp (const char *str);
  30. extern int bgp_regexec (regex_t *regex, struct aspath *aspath);
  31. #endif /* _QUAGGA_BGP_REGEX_H */