Workshop o mikrokontrolérech na SKSP 2024.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
784 B

/*
* UCW Library -- IP address access lists
*
* (c) 1997--2007 Martin Mares <mj@ucw.cz>
*
* This software may be freely distributed and used according to the terms
* of the GNU Lesser General Public License.
*/
#ifndef _UCW_IPACCESS_H
#define _UCW_IPACCESS_H
#include <ucw/clists.h>
#ifdef CONFIG_UCW_CLEAN_ABI
#define ip_addrmask_match ucw_ip_addrmask_match
#define ip_addrmask_type ucw_ip_addrmask_type
#define ipaccess_cf ucw_ipaccess_cf
#define ipaccess_check ucw_ipaccess_check
#endif
extern struct cf_section ipaccess_cf;
int ipaccess_check(clist *l, u32 ip);
/* Low-level handling of addresses and masks */
struct ip_addrmask {
u32 addr;
u32 mask;
};
extern struct cf_user_type ip_addrmask_type;
int ip_addrmask_match(struct ip_addrmask *am, u32 ip);
#endif