diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-08-11 00:05:34 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-08-11 00:05:34 +0000 |
commit | 3d99f030820877eb84835fb1be66a7db3f5b0c68 (patch) | |
tree | ab165f9195ca06e8c8b635f0edce60ce30c5a706 /package/uhttpd/src/uhttpd-utils.h | |
parent | a5371dfe3909f14d45803efcfa5a85446f7954ac (diff) | |
download | master-31e0f0ae-3d99f030820877eb84835fb1be66a7db3f5b0c68.tar.gz master-31e0f0ae-3d99f030820877eb84835fb1be66a7db3f5b0c68.tar.bz2 master-31e0f0ae-3d99f030820877eb84835fb1be66a7db3f5b0c68.zip |
uhttpd: add option to reject requests from RFC1918 IPs to public server IPs (DNS rebinding countermeasure)
SVN-Revision: 22589
Diffstat (limited to 'package/uhttpd/src/uhttpd-utils.h')
-rw-r--r-- | package/uhttpd/src/uhttpd-utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/uhttpd/src/uhttpd-utils.h b/package/uhttpd/src/uhttpd-utils.h index a6448b63bc..1b18265417 100644 --- a/package/uhttpd/src/uhttpd-utils.h +++ b/package/uhttpd/src/uhttpd-utils.h @@ -49,6 +49,7 @@ struct path_info { const char * sa_straddr(void *sa); const char * sa_strport(void *sa); int sa_port(void *sa); +int sa_rfc1918(void *sa); char *strfind(char *haystack, int hslen, const char *needle, int ndlen); |