bgp_filter.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* AS path filter list.
  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_FILTER_H
  17. #define _QUAGGA_BGP_FILTER_H
  18. enum as_filter_type
  19. {
  20. AS_FILTER_DENY,
  21. AS_FILTER_PERMIT
  22. };
  23. extern void bgp_filter_init (void);
  24. extern void bgp_filter_reset (void);
  25. extern enum as_filter_type as_list_apply (struct as_list *, void *);
  26. extern struct as_list *as_list_lookup (const char *);
  27. extern void as_list_add_hook (void (*func) (void));
  28. extern void as_list_delete_hook (void (*func) (void));
  29. #endif /* _QUAGGA_BGP_FILTER_H */