summaryrefslogtreecommitdiff
path: root/accel-pppd/iprange.h
blob: 39bd8ba2c24d8b08e5d95251ac3a39dfc499b718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __IPRANGE_H
#define __IPRANGE_H

#include <netinet/in.h>


#define IPRANGE_CONF_SECTION "client-ip-range"

enum iprange_status {
	IPRANGE_DISABLED,
	IPRANGE_NO_RANGE,
	IPRANGE_ACTIVE,
};

enum iprange_status iprange_check_activation(void);
int iprange_client_check(in_addr_t ipaddr);
int iprange_tunnel_check(in_addr_t ipaddr);

#endif