diff options
author | Kozlov Dmitry <dima@server> | 2010-09-09 18:26:02 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-09-09 18:29:47 +0400 |
commit | 35d38d2c3f3db22216d43604b8750ecb6089e525 (patch) | |
tree | f599fea448c4aacdd96cabf10fee88aa7bdb57aa /accel-pptpd/iprange.h | |
parent | eac0adf4b2b038690c761a126cb3e55a888060df (diff) | |
download | accel-ppp-35d38d2c3f3db22216d43604b8750ecb6089e525.tar.gz accel-ppp-35d38d2c3f3db22216d43604b8750ecb6089e525.zip |
iprange: implemneted modules iprange to validate ip addresses of controlling connection and tunnel
It will check that ip address of tunnel is not in range of clients ip addresses.
This will avoid kernel softlockups due to loopback occured.
Diffstat (limited to 'accel-pptpd/iprange.h')
-rw-r--r-- | accel-pptpd/iprange.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/accel-pptpd/iprange.h b/accel-pptpd/iprange.h new file mode 100644 index 00000000..88a2486a --- /dev/null +++ b/accel-pptpd/iprange.h @@ -0,0 +1,10 @@ +#ifndef __IPRANGE_H +#define __IPRANGE_H + +#include <netinet/in.h> + +int iprange_client_check(in_addr_t ipaddr); +int iprange_tunnel_check(in_addr_t ipaddr); + +#endif + |