]> mj.ucw.cz Git - libucw.git/blob - lib/ipaccess.h
noted that utf8_{put/get} supports only a subset of the Unicode range
[libucw.git] / lib / ipaccess.h
1 /*
2  *      UCW Library -- IP address access lists
3  *
4  *      (c) 1997--2007 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #ifndef _UCW_IPACCESS_H
11 #define _UCW_IPACCESS_H
12
13 #include "lib/clists.h"
14
15 extern struct cf_section ipaccess_cf;
16 int ipaccess_check(clist *l, u32 ip);
17
18 /* Low-level handling of addresses and masks */
19
20 struct ip_addrmask {
21   u32 addr;
22   u32 mask;
23 };
24
25 extern struct cf_user_type ip_addrmask_type;
26 int ip_addrmask_match(struct ip_addrmask *am, u32 ip);
27
28 #endif