tinyproxy/src
rofl0r c1023f6821 fix regression failing to parse dotted netmask in upstream
introduced in 979c737f9b.
when refactoring the "site-spec" parsing code i failed to realize that
the code dealing with acl allow/deny directives didn't provide the
option to specify netmasks in dotted ipv4 notation, unlike the code
in the upstream parser. since both scenarios now use the same parsing,
both dotted notation and CIDR slash-notation are possible.

while at it, removed the len parameter from fill_netmask_array() which
provided the illusion the array length could be of variable size.

fixes #394
2021-08-23 14:00:05 +00:00
..
.gitignore Removed obsolete ignore rules 2008-06-19 21:33:20 +05:30
acl.c Include limits.h to fix build on OSX 2021-05-13 01:15:13 +01:00
acl.h make acl lookup 450x faster by using sblist 2020-09-07 22:09:35 +01:00
anonymous.c replace leftover users of hashmap with htab 2020-09-15 23:12:00 +01:00
anonymous.h replace leftover users of hashmap with htab 2020-09-15 23:12:00 +01:00
base64.c move base64 code into own file 2018-02-06 16:57:02 +00:00
base64.h move base64 code into own file 2018-02-06 16:57:02 +00:00
basicauth.c basicauth: use sblist 2020-09-16 02:39:09 +01:00
basicauth.h basicauth: use sblist 2020-09-16 02:39:09 +01:00
buffer.c buffer: fix log message in read_buffer(). 2013-11-23 12:21:59 +01:00
buffer.h Convert tabs to spaces 2008-12-08 13:39:44 +00:00
child.c child_kill_children(): use method that actually works 2020-09-17 21:24:45 +01:00
child.h listen_addrs: use sblist 2020-09-16 02:39:09 +01:00
common.h Include limits.h to fix build on OSX 2021-05-13 01:15:13 +01:00
conf-tokens.c add autoconf test and fallback code for systems without gperf 2020-09-16 23:04:12 +01:00
conf-tokens.gperf speed up big config parsing by 2x using gperf 2020-09-16 21:01:02 +01:00
conf-tokens.h speed up big config parsing by 2x using gperf 2020-09-16 21:01:02 +01:00
conf.c put an end to LINE_MAX issues 2021-06-24 22:55:33 +01:00
conf.h Allow multiple Bind directives. 2020-10-19 20:08:31 +01:00
connect-ports.c connect_ports: use sblist 2020-09-16 02:39:09 +01:00
connect-ports.h connect_ports: use sblist 2020-09-16 02:39:09 +01:00
conns.c refactor conns.[ch], put conn_s into child struct 2020-09-15 23:12:00 +01:00
conns.h refactor conns.[ch], put conn_s into child struct 2020-09-15 23:12:00 +01:00
daemon.c daemon.c: fix #if NDEBUG --> #ifdef NDEBUG 2009-11-10 17:59:40 +01:00
daemon.h Reformat code to GNU coding style 2008-12-01 15:01:11 +00:00
filter.c filter: hard error when filter file doesn't exist 2021-05-09 23:41:49 +01:00
filter.h filter: reduce memory usage, fix OOM crashes 2020-09-05 19:42:34 +01:00
heap.c simplify codebase by using one thread/conn, instead of preforked procs 2019-12-21 00:43:45 +00:00
heap.h simplify codebase by using one thread/conn, instead of preforked procs 2019-12-21 00:43:45 +00:00
hostspec.c fix regression failing to parse dotted netmask in upstream 2021-08-23 14:00:05 +00:00
hostspec.h make upstream site-spec ipv6 compatible, refactor acl code 2021-04-16 14:46:02 +01:00
hsearch.c htab: prevent filling up of table with tombstones 2021-03-28 20:33:17 +01:00
hsearch.h orderedmap: fix memory leak when using orderedmap_remove() 2021-03-14 16:06:10 +00:00
html-error.c add support for outgoing connections with HTTP/1.1 2021-04-16 14:51:01 +01:00
html-error.h refactor html-error so send_http_headers() can take extra arg 2021-03-28 20:24:23 +01:00
http-message.c http-message: fix UB passing long to format string expecting int 2020-10-19 20:33:04 +01:00
http-message.h http_message_add_headers: make argument num_headers unsigned 2009-08-07 09:24:32 +02:00
log.c log: replace non-mt-safe localtime() with localtime_r() 2020-10-19 20:26:12 +01:00
log.h make send_stored_logs static 2018-02-25 18:35:34 +00:00
loop.c free() loop records too 2020-09-15 23:12:00 +01:00
loop.h free() loop records too 2020-09-15 23:12:00 +01:00
main.c change loglevel of "Not running as root" message to INFO 2020-09-30 05:19:16 +01:00
main.h remove duplicate code calling reload_config_file() 2020-01-15 16:35:43 +00:00
Makefile.am make upstream site-spec ipv6 compatible, refactor acl code 2021-04-16 14:46:02 +01:00
mypoll.c use poll() where available 2020-09-15 23:12:00 +01:00
mypoll.h tune error messages to show select or poll depending on what is used 2020-09-17 21:03:51 +01:00
network.c safe_write/read: take void* buffer for generic use 2017-12-04 11:33:01 +00:00
network.h safe_write/read: take void* buffer for generic use 2017-12-04 11:33:01 +00:00
orderedmap.c orderedmap: fix memory leak when using orderedmap_remove() 2021-03-14 16:06:10 +00:00
orderedmap.h save headers in an ordered dictionary 2020-09-15 23:11:59 +01:00
reqs.c improve error message for "Error reading readable client_fd" 2021-07-23 20:17:18 +01:00
reqs.h refactor conns.[ch], put conn_s into child struct 2020-09-15 23:12:00 +01:00
reverse-proxy.c reverse: redirect if path without trailing slash is detected 2021-04-16 14:41:40 +01:00
reverse-proxy.h reverse: redirect if path without trailing slash is detected 2021-04-16 14:41:40 +01:00
sblist.c simplify codebase by using one thread/conn, instead of preforked procs 2019-12-21 00:43:45 +00:00
sblist.h simplify codebase by using one thread/conn, instead of preforked procs 2019-12-21 00:43:45 +00:00
sock.c Allow multiple Bind directives. 2020-10-19 20:08:31 +01:00
sock.h transparent: workaround old glibc bug on RHEL7 2020-09-18 12:12:14 +01:00
stats.c refactor html-error so send_http_headers() can take extra arg 2021-03-28 20:24:23 +01:00
stats.h Indent code to Tinyproxy coding style 2009-09-15 01:11:25 +05:30
text.c Indent code to Tinyproxy coding style 2009-09-15 01:11:25 +05:30
text.h Reformat code to GNU coding style 2008-12-01 15:01:11 +00:00
transparent-proxy.c transparent: workaround old glibc bug on RHEL7 2020-09-18 12:12:14 +01:00
transparent-proxy.h save headers in an ordered dictionary 2020-09-15 23:11:59 +01:00
upstream.c make upstream site-spec ipv6 compatible, refactor acl code 2021-04-16 14:46:02 +01:00
upstream.h make upstream site-spec ipv6 compatible, refactor acl code 2021-04-16 14:46:02 +01:00
utils.c Use correct format string for POSIX pid_t in pidfile_create() 2009-09-27 08:09:24 +05:30
utils.h Convert tabs to spaces 2008-12-08 13:39:44 +00:00