X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fipaccess.h;h=a38c5fe3cd9a6e457b1c3bae007f862cd6767a8b;hb=fdf07fb99f6fa420946e71c92bf89287d8647761;hp=fefd34a8b78f657738ccc8283054106c99dd7eaa;hpb=04294f573be8073e305f70621e6e74e2440f7f24;p=libucw.git diff --git a/lib/ipaccess.h b/lib/ipaccess.h index fefd34a8..a38c5fe3 100644 --- a/lib/ipaccess.h +++ b/lib/ipaccess.h @@ -1,13 +1,18 @@ /* - * Sherlock Library -- IP address access lists + * UCW Library -- IP address access lists * - * (c) 1997--2001 Martin Mares + * (c) 1997--2006 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ -#include "lib/lists.h" +#ifndef _UCW_IPACCESS_H +#define _UCW_IPACCESS_H + +#include "lib/clists.h" -typedef list ipaccess_list; +extern struct cf_section ipaccess_cf; +int ipaccess_check(clist *l, u32 ip); -void ipaccess_init(ipaccess_list *l); -byte *ipaccess_parse(ipaccess_list *l, byte *c, int is_allow); -int ipaccess_check(ipaccess_list *l, u32 ip); +#endif