/*
 * $Id: alist.h,v 1.2 1998/09/15 11:42:43 labovit Exp $
 * originally Id: alist.h,v 1.3 1998/07/17 18:23:17 masaki Exp 
 */

#ifndef _ALIST_H
#define _ALIST_H

#define MAX_ALIST 1000
typedef struct _condition_t {
    int permit; /* just a flag */
    prefix_t *prefix; /* all in case of null */
    prefix_t *wildcard; /* may be null */
    int exact; /* just a flag */
    int refine; /* just a flag */
} condition_t;

int add_access_list (int num, int permit, prefix_t *prefix, prefix_t *wildcard,
                     int exact, int refine);
int remove_access_list (int num, int permit, prefix_t *prefix, 
			prefix_t *wildcard, int exact, int refine);
int del_access_list (int num);
int apply_access_list (int num, prefix_t *prefix);
char *access_list_toa ();
char *access_list_toa2 (int num);

#endif /* _ALIST_H */
