Compare commits

..
1334 Commits
Author SHA1 Message Date
Michael Adam 9c500d06f2 Fix bug #68: Allow all ports for CONNECT at absence of ConnectPort in config. 2010-01-17 13:41:02 +01:00
Mukund Sivaraman aea157d7c9 Bump version to 1.8.0 2010-01-17 14:30:06 +05:30
Mukund Sivaraman 9c68b94136 Do an openlog() on fallback to syslog 2010-01-17 14:27:49 +05:30
Mukund Sivaraman 26b4ab07a4 Remove extra argument to log_message() 2010-01-17 14:27:19 +05:30
Mukund Sivaraman a34ce8f4f9 Remove ret variable as 0 is always returned 2010-01-17 14:26:56 +05:30
Mukund Sivaraman e2b367a169 Remove unused label 2010-01-17 14:26:08 +05:30
Michael Adam 8070023643 log: when opening the log file fails, fall back to syslog logging. 2010-01-17 01:10:21 +01:00
Michael Adam 54a613b9db conf: reduce indentation in load_config_file()
This replaces a do { ... } while (0) with break statements
ba gotos. Imho, this is much clearer.

Michael
2010-01-16 13:26:18 +01:00
Mukund Sivaraman d3df735f89 Add author sections to the manpages 2010-01-16 16:42:02 +05:30
Mukund Sivaraman 74334a7700 Add see-also sections to the manpages 2010-01-16 16:40:48 +05:30
Mukund Sivaraman 09d11ace60 Fix leak of file handle in load_config_file() 2010-01-16 11:09:14 +05:30
Mukund Sivaraman bf820013df Use HTTPS link in URLs to Tinyproxy websites 2010-01-16 10:22:22 +05:30
Mukund Sivaraman 21c6164910 Bump version number in override too 2010-01-16 10:18:14 +05:30
Mukund Sivaraman 6da10fa438 Fix text about bug reporting 2010-01-16 10:17:13 +05:30
Mukund Sivaraman bbccb57929 Fix case of Bugzilla product name 2010-01-16 10:17:07 +05:30
Mukund Sivaraman 5980512a08 Rename version 1.7.2 to 1.8.0 in NEWS 2010-01-15 22:28:14 +05:30
Mukund Sivaraman 3700e1fc5b Add old NEWS for 1.7.0 2010-01-14 13:59:35 +05:30
Mukund Sivaraman 46deecdb53 Fix case 2010-01-14 13:40:12 +05:30
Mukund Sivaraman eb67b4c407 Fix typos and elaborate some NEWS items 2010-01-14 13:30:54 +05:30
Mukund Sivaraman ee17131bdf Fix list of 1.7.2 contributors 2010-01-14 13:23:35 +05:30
Mukund Sivaraman fa45b3cb79 Revert list of 1.7.1 contributors to what it was before 2010-01-14 13:21:55 +05:30
Mukund Sivaraman d3b1619b06 Add a separate contributors section for version 1.7.2 2010-01-14 13:20:51 +05:30
Mukund Sivaraman 3101d7ebb4 Fix version number in NEWS file 2010-01-14 13:20:15 +05:30
Michael Adam 157a79216f NEWS: add David Shanks to the list of contributors. 2010-01-14 08:34:09 +01:00
Michael Adam a61f6018f2 NEWS: document some more new features in the release notes
Michael
2010-01-14 08:33:11 +01:00
Michael Adam a639f3fca2 NEWS: add list of bugs fixed since 1.7.1
Muks: please verify - thes are current the fixed bugs
with milestone 1.8.0 (i.e. the renamed 1.7.2).

I hope this is correct!
I also hope this was the intended scheme - have bug
lists per version section. Please feel free to edit...

Michael
2010-01-14 08:25:44 +01:00
Michael Adam 3baa5f6f7c NEWS: mention change of XTinyProxy to be a global bool
Michael
2010-01-14 08:14:01 +01:00
David Shanks 184d07e47c check_numeric_acl() should return -1 when IPs don't match.
Signed-off-by: Michael Adam <obnox@samba.org>
2010-01-14 07:46:31 +01:00
Michael Adam 8963c84dad NEWS: move the changes after 1.7.1 to new section 1.7.2
Michael
2010-01-13 23:26:20 +01:00
Michael Adam 7e9a022c74 NEWS: reformulate and elaborate some items.
Michael
2010-01-13 21:28:38 +01:00
Michael Adam 7ca792043c update NEWS
* mention config reload and upon HUP
* log-reopen (not trunc!) upon HUP
* file-logging as default

Michael
2010-01-13 21:25:03 +01:00
Michael Adam 028cad3c3b NEWS: add Mathew Mrosko as contributor. 2010-01-13 17:11:54 +01:00
Michael Adam 5e387e6ee7 log: turn tabs into spaces =)
Michael
2010-01-13 00:58:55 +01:00
Michael Adam dc86ebaf28 log: change internal logic to choose syslog over file logging.
Now that there is always a log file set, we just check for
syslog being set to TRUE and in that case use syslog logging,
file logging otherwiese.

Michael
2010-01-13 00:57:32 +01:00
Michael Adam fa0c4963e9 conf: add a default for PidFile: LOCALSTATEDIR/run/tinyproxy.pid
Michael
2010-01-13 00:30:50 +01:00
Michael Adam 9fec507daf log: remove a (now) useless fprintf in setup_logging.
Now that there is a default value for LogFile, the case
that neither the log file name nor syslog is configured
can not happen any more.

Michael
2010-01-13 00:23:48 +01:00
Michael Adam 74b0b63da8 conf: set default LogFile to LOCALSTATEDIR/log/tinyproxy.log
Michael
2010-01-13 00:21:39 +01:00
Michael Adam fb07cb380c Export configure variable localstatedir to C as define LOCALSTATEDIR.
So that it can be used for default values of some paths later on.

Michael
2010-01-13 00:16:02 +01:00
Mukund Sivaraman d6a247cc04 Make bzip2 compressed dist tarballs
We publish bzip2 compressed tarballs starting with the 1.8.x releases.
2010-01-11 04:17:26 +05:30
Michael Adam bcca20a3e6 log: remove an fprintf "not configured" error message in setup_logging().
Now that we exit early when !logging_initialized, this
can actually not happen anymore anyways: When logging is
initialized, it was also properly configured.

Michael
2010-01-10 19:29:33 +01:00
Michael Adam 1dd1c2796a log: shortcut return in shutdown_logging() if logging_initialized == false
This does for instance happen at startup when logging has not yet been set up.

Michael
2010-01-10 19:24:23 +01:00
Mukund Sivaraman 65ef313cc4 Pass address family when binding to outgoing socket 2010-01-10 19:51:24 +05:30
Michael Adam b106091343 Happy new year 2010! 2010-01-10 13:53:03 +01:00
Michael Adam 594df6bf43 Happy new year 2010! 2010-01-10 13:52:17 +01:00
Michael Adam 52e333af0b Happy new year 2010! 2010-01-10 13:51:33 +01:00
Michael Adam 12026c32de Fix bug #55: Read request entity before sending error page to client.
https://www.banu.com/bugzilla/show_bug.cgi?id=55

This is achieved by streamlining handle_connection, adding
a common cleanup-and-exit poing ("done") and a common
failure exit point ("fail") that reads any pending data
from the client fd first before trying to send back
data (error page or stats page).

The new function get_request_entity that is used here,
does not honour any content-length header. It just calls
select on the client-fd and gets any data that is there
to read.

Michael
2010-01-10 02:17:37 +01:00
Michael Adam 6c9a647576 reqs:handle_connection: untangle assignment from check
Michael
2010-01-10 01:49:14 +01:00
Michael Adam e1e9e53d45 reqs:process_client_headers: polish logic flow a bit.
Michael
2010-01-10 01:49:14 +01:00
Michael Adam 0bfc0e90c1 reqs: simply process_request a bit: create common fail exit point
Michael
2010-01-10 01:49:14 +01:00
Mukund Sivaraman 9c0c3d5ced [BB#17] Add custom HTTP request headers to outgoing HTTP requests 2010-01-08 22:05:17 +05:30
Mukund Sivaraman b96a3a3250 Fix case in log message 2010-01-06 11:54:57 +05:30
Mukund Sivaraman e5abe844d1 Use named lists to match rest of the document 2010-01-03 20:50:07 +05:30
Mukund Sivaraman 9e79e9975f Modify description of LogLevel in manpage 2010-01-03 20:46:37 +05:30
Mukund Sivaraman 70e8197344 Use proper asciidoc formatting in manpage 2010-01-03 20:14:43 +05:30
Mukund Sivaraman 34f9e5f95e Fix caps in manpage 2010-01-03 20:14:29 +05:30
Mukund Sivaraman e42d1cf9fd Use a configure arg to request regex checking
Disabling the regex check seems to be required during cross-compiles,
where it's not possible to test the target's regex library at
compile time.
2010-01-03 13:52:00 +05:30
Mukund Sivaraman 8077fd8936 Reindent the last configure.ac changes 2010-01-03 13:41:49 +05:30
Mathew Mrosko df08d801fe build: allow a forcing build with "broken" regex.
The configure would fail when cross compiling due to the regex check
automatically failing for cross compilation. Since you can't run the
regex binary check, assuming the regex library on the target platform is
working would be the only way to get the build working, or adding a
force for people to control based on their build environment.

Signed-off-by: Michael Adam <obnox@samba.org>
2010-01-02 00:10:17 +01:00
Michael Adam e0fabc6127 log: confess - add my (C) after substantial changes.
Michael
2009-12-23 00:33:31 +01:00
Michael Adam 5e8c8508ef conf: confess - add my (C) after substantial changes.
Michael
2009-12-23 00:33:21 +01:00
Michael Adam 4a11f9f08f log: remove unneeded truncate_log_file().
Michael
2009-12-23 00:31:56 +01:00
Michael Adam c07cd2e44e Use shutdown_logging() in main().
Michael
2009-12-23 00:31:56 +01:00
Michael Adam 71a035d619 Use reload_config() in main() to load config and init logging.
Michael
2009-12-23 00:31:55 +01:00
Michael Adam bc10479452 log: fix log_message so do only one write before the fsync.
This way the logging from the various child processes does not
get clobbered up. Formerly, the different write portions
(time stamp, message, newline) would get mixed from the
various child processes' log messages.

Michael
2009-12-23 00:31:55 +01:00
Michael Adam adf4640104 log: add start/end debug messages for "sending stored logs".
Michael
2009-12-23 00:31:55 +01:00
Michael Adam 0466526b1d Add warning comments to SIGHUP handlers, that we ignore the retrun code of reload_config().
This can actually fail, and we probably need some way to handle this.
Like an emergency error exit or so...

Michael
2009-12-23 00:31:55 +01:00
Michael Adam 8346a20aa0 Don't truncate the log file in the SIGHUP handler.
Logging is re-initialized by reload_config() now.
And truncation is wrong anyways: A syslog mechanism will
move the current log file and the reopen-action will just
create a new empty log file upon SIGHUP.

Michael
2009-12-23 00:31:55 +01:00
Michael Adam fb2e65f40b enhance reload_config to correctly re-initialize the logging subsystem.
This includes reopening the log file (in append mode).
Also switching from syslog to logfile and visa versa are included
when called from the SIGHUP handler.

Michael
2009-12-23 00:31:55 +01:00
Michael Adam c4b9454807 log: enhance close_log_file to reset logfile_fd to -1 after closing
Michael
2009-12-23 00:31:55 +01:00
Michael Adam f3c8424515 log.c: remove superfluous uses of #ifdef HAVE_SYSLOG_H
When this code is hit, availability of syslog has already
been checked (when reading the config file). So config.syslog == TRUE
only when HAVE_SYSLOG_H is defined.

So I remove the preprocessor checks which only clobber the logic
and make the code harder to read (IMHO).

Michael
2009-12-23 00:31:55 +01:00
Michael Adam 2c14f89bfc main: remove global bool processed_config_file.
This seemed out of place. Now the information is
stored in the correct places (as log.c:logging_initialized).

This way, we will be able to cleanly re-initialize
logging during config reload (SIGHUP) in subsequent
commits.

Michael
2009-12-23 00:27:32 +01:00
Michael Adam 210e82d08d log: call send_stored_logs in setup_logging instead of in main().
This is where it actually belongs.

Michael
2009-12-23 00:27:32 +01:00
Michael Adam 891846f23e log: add boolean local variable logging_initialized.
This controls whether log_messages should write to the
log file / syslog or rather to the log_message_storage.
This will make the global processed_config_file variable
from main unneccessary in the next step.

Michael
2009-12-23 00:27:26 +01:00
Michael Adam 649b2c0683 log: add function shutdown_logging().
Michael
2009-12-23 00:27:26 +01:00
Michael Adam 479562ad2b reload config upon SIGHUP
Michael
2009-12-22 00:15:00 +01:00
Michael Adam 91492773b1 conf: add a log messate ("reloading config file")
Michael
2009-12-22 00:15:00 +01:00
Michael Adam e9baa2977c conf: adapt a log message (add quotes to string value)
Michael
2009-12-22 00:15:00 +01:00
Michael Adam f7419c60be conf: elaborate a comment
Michael
2009-12-22 00:15:00 +01:00
Michael Adam 93dfb1ac5b conf: change a log message (to be more reasonable?)
Michael
2009-12-22 00:15:00 +01:00
Michael Adam 8bf91ce80f main: add convenience wrapper reload_config() for reload_config_file()
Michael
2009-12-22 00:14:59 +01:00
Michael Adam 72632f6569 conf.h: add "extern" to prototype of reload_config_file
Michael
2009-12-22 00:14:59 +01:00
Michael Adam 6ea160ffff conf: make free_config static
Michael
2009-12-22 00:14:59 +01:00
Michael Adam c15434df2b conf: make load_config_file static.
Michael
2009-12-22 00:14:59 +01:00
Michael Adam d3d31b434a conf: rename reload_config --> reload_config_file
Michael
2009-12-22 00:14:59 +01:00
Mukund Sivaraman 6a5faa0bec Remove AM_MAINTAINER_MODE 2009-12-08 10:52:17 +05:30
Michael Adam d522221668 Fix restarting of tinyproxy: call setsockopt with REUSEADDR _before_ calling bind
Somehow this got moved too far down in the ipv6 changes.
Thanks to Mathew Mrosko for helping me debugging this.

Michael
2009-12-08 01:24:31 +01:00
Michael Adam 5bba62bcde Fix the build with --enable-transaparent after conf changes.
Michael
2009-12-07 23:42:55 +01:00
Michael Adam 0ba5cbea4f fix build with "--enable-reverse" after conf changes
Michael
2009-12-07 23:40:24 +01:00
Michael Adam 7290691142 Move definition of "struct config_s" from main.h to conf.h
Michael
2009-12-07 22:33:27 +01:00
Michael Adam 34e4be193e main.h: fix tabs ---> spaces
Michael
2009-12-07 22:33:27 +01:00
Michael Adam 4b54fc203f conf: remove direct use of config from reload_config()
The "conf" argument has to be used.

Michael
2009-12-07 22:33:27 +01:00
Michael Adam ad2f478c46 conf: remove direct reference to config from load_config_file()
This has to use the parameter "conf".

Michael
2009-12-07 22:33:26 +01:00
Michael Adam 947d85cefc Use reload_config() in main.
Michael
2009-12-07 01:11:35 +01:00
Michael Adam 0d0de2fcc5 Add reload_config() - (re-)load the config file, keeping defaults.
This allows for later reloading the config at SIGHUP (e.g.).
First the old config data is freed, then the defaults that
are given as a parameter are copied over in a rather clumsy
manual fashion (maybe something more clever can be done here)
and finally, the actual config file is loaded.

Michael
2009-12-07 01:11:35 +01:00
Michael Adam 2ccebf7a95 main: Move setup_logging to after the config post-processing checks.
Michael
2009-12-07 00:40:25 +01:00
Michael Adam dcbf99d334 Add free_config() - free all config data.
Michael
2009-12-07 00:32:22 +01:00
Michael Adam 1360f530f1 Don't make config_file const in the config struct.
Michael
2009-12-07 00:32:22 +01:00
Michael Adam d0a91c2f9b Add the anonymous_map hasmap to the config struct.
Michael
2009-12-07 00:22:53 +01:00
Michael Adam fa073543c4 Add free_connect_ports_list().
Michael
2009-12-07 00:22:52 +01:00
Michael Adam 4c0a4d985f Add connect_ports list to config struct instead of keeping extra global var.
Michael
2009-12-07 00:22:52 +01:00
Michael Adam c981b246ce Move handling of connect_ports list to its own source module.
Michael
2009-12-07 00:22:52 +01:00
Michael Adam 8cb182e1b8 Add access_list to the config struct instead of a global variable in acl.c.
Change insert_acl, check_acl and flush_access_list to take a corresponding
argument.

Michael
2009-12-07 00:22:46 +01:00
Michael Adam 6266197e92 acl: add function flush_access_list(). 2009-12-07 00:22:46 +01:00
Michael Adam 2e6999df4a Add free_reversepath_list().
Michael
2009-12-07 00:22:46 +01:00
Michael Adam 3f1201c8b3 Add a reversepath argument to reversepath_get().
This abstracts the setter/getter functions for the reversepath
list from the concrete list in config.reversepath_list.

Michael
2009-12-07 00:22:46 +01:00
Michael Adam 624d146cd6 Add reversepath_list parameter to reversepath_add.
Michael
2009-12-07 00:22:36 +01:00
Michael Adam 21aa3ecf60 upstream: add free_upstream_list ()
Michael
2009-12-07 00:22:36 +01:00
Michael Adam 4a8ea0d23b upstream: Add upstream list parameter to upstream_get()
to abstract it from the concrete list in the config struct.
Now upstream.c does not use any reference to config any more.

Michael
2009-12-07 00:22:36 +01:00
Michael Adam 22fba83df2 upstream: add upstream list parameter to upstream_add()
to abstract it from the concrete list in the config struct.

Michael
2009-12-07 00:22:28 +01:00
Michael Adam fd987e97f0 move handling of upstream list to new module upstream.{c,h}
Michael
2009-12-06 13:17:18 +01:00
Michael Adam 56ba3d45bd upstream: refactor assembly of upstream out of upstream_add
Michael
2009-12-06 13:17:18 +01:00
Michael Adam 34dbeb3626 main/conf: add maxidletimeout to initialize_config_defaults
But keep the resetting check after processing the conf file.

Michael
2009-12-06 01:57:04 +01:00
Michael Adam c853cec164 main: fix tab -> spaces
Michael
2009-12-06 01:57:04 +01:00
Michael Adam 073233b9f1 conf: move setting of default stathost to initialize_config_defaults()
Michael
2009-12-06 01:56:59 +01:00
Michael Adam 055c11f63c conf: fix tab->spaces
Michael
2009-12-06 01:55:53 +01:00
Michael Adam f60aa47715 conf: allow set_string_arg to overwrite previous values (i.e. don't leak)
Michael
2009-12-06 01:55:53 +01:00
Michael Adam 5e399a7e17 main: use safestrdup instead of strdup in process_cmdline
Michael
2009-12-06 01:55:53 +01:00
Mukund Sivaraman 0480185d07 Use capitalized name in error messages 2009-12-04 05:41:36 +05:30
Michael Adam 607e8ec0e7 acl: split initialization of the access_list out into a function 2009-11-17 17:30:19 +01:00
Mukund Sivaraman ec4b4d979f Use NULL for pointers 2009-11-17 02:40:03 +05:30
Michael Adam a664dee4f6 set_string_arg: Remove unneccesary check for determining the return code. 2009-11-16 21:52:34 +01:00
Mukund Sivaraman 45a56e468d Remove excessive copying 2009-11-17 02:20:27 +05:30
Mukund Sivaraman d7fada25e5 Make position into an enum 2009-11-17 01:52:23 +05:30
Mukund Sivaraman 4b6a25ac06 Use snprintf() with size of the portstr buf 2009-11-17 01:44:21 +05:30
Mathew Mrosko 238e3ffb34 Fix format string warnings
C90 doesn't support z modifier in printf's, so cast values
to (unsigned long) which should be the same size as size_t
on both ILP32 and LP64.
2009-11-16 21:50:40 +05:30
Mukund Sivaraman 2f05d8dd32 Fix typo in log string 2009-11-14 18:57:31 +05:30
Michael Adam fba81e4174 conf: refactor loading of config file out into load_config_file()
and make config_compile and config_parse static to conf.c

Michael
2009-11-14 12:13:10 +01:00
Michael Adam a09dd9cd00 main: add a config struct argument to process_cmdline.
Michael
2009-11-14 12:13:10 +01:00
Michael Adam 8945d9f0ae main: put initialization of config defaults into a function of its own
Michael
2009-11-14 12:13:10 +01:00
Michael Adam ea2eaef173 extract setup of the logging subsystem into a function of its own.
Signed-off-by: Michael Adam <obnox@samba.org>
2009-11-14 12:13:10 +01:00
Michael Adam d8da7f55f7 main: move initialization of default config values closer together
Michael
2009-11-14 12:13:10 +01:00
Mukund Sivaraman 9274b5556e Remove packaging related items 2009-11-14 16:40:46 +05:30
Mukund Sivaraman c42fbaaf80 Make asciidoc a requirement for building Tinyproxy
asciidoc is necessary as the version number is added during
configure into the asciidoc manpage sources. So simply bundling
a pre-generated manpage won't do.
2009-11-14 16:34:06 +05:30
Mukund Sivaraman 2061a18313 Revert "Don't cleanup generated and dist'ed manpages"
This reverts commit 276ca8369d.
2009-11-14 16:16:49 +05:30
Mukund Sivaraman 66abbbe72d Use located a2x binary instead of hard-coded name 2009-11-14 15:47:51 +05:30
Mukund Sivaraman e71b3e08a6 Mark all generated stuff with silent rules 2009-11-14 15:47:21 +05:30
Mukund Sivaraman d8062ed35f Enable silent rules by default 2009-11-14 15:43:18 +05:30
Mukund Sivaraman 276ca8369d Don't cleanup generated and dist'ed manpages 2009-11-14 15:40:57 +05:30
Michael Adam feea6db815 daemon.c: fix #if NDEBUG --> #ifdef NDEBUG
Thanks to Mathew Mrosko for pointing that out.
2009-11-10 17:59:40 +01:00
Michael Adam c3f29ce4ac gitignore etc/tinyproxy.conf - it is generated 2009-11-10 17:12:16 +01:00
Michael Adam 444ad35250 intentation: convert a tab to spaces
Michael
2009-11-10 13:59:07 +01:00
Michael Adam c0c6db0a5e Update etc/Makefile.am to substitute TINYPROXY_STATHOST
Maybe, it would be better to have a two stage process here:

1. Have AC_SUBST from configure substitute as many variables
   as possible in  a fist stage
   tinyproxy.conf.tmpl.in --> tinyproxy.conf.tmp

2. Have make substitute those remaining paths that can not be
   substituted reasonable by configure due to the internal
   workings of automake.

Michael
2009-11-10 13:58:08 +01:00
Michael Adam 6f56738ab0 tinyproxy.conf: add a comment documenting StatHost
Michael
2009-11-10 13:58:08 +01:00
Michael Adam 41dd25d8e6 docs: update description of STATHOST in tinyproxy(8)
Michael
2009-11-10 13:58:08 +01:00
Michael Adam cbb179ef0b docs: document StatHost in tinyproxy.conf(5)
Michael
2009-11-10 13:58:07 +01:00
Michael Adam e54a3827df configure: AC_SUBST TINYPROXY_STATHOST, not only define it for config.h
Michael
2009-11-10 13:58:07 +01:00
Michael Adam fd879e45c8 conf: fix reverspath parsing: the string in the 2nd arg is actually the inner match
this fixes bug #64, https://www.banu.com/bugzilla/show_bug.cgi?id=64

the quotes of the string were part of the revers path after parseing.

Michael
2009-11-10 01:17:27 +01:00
Michael Adam f63c29c886 conf: make the WS optional too, before the optional 2nd argument to reversepath
Michael
2009-11-10 01:17:27 +01:00
Michael Adam 60d738626b conf: fix ipv6 regex patterns, take three
This extends the pattern by an alternative where there are no double colons.
This is for instance the case for and IPv6 address of the form
1111:222:33:4:55:666:7777:888

Michael
2009-11-10 00:55:39 +01:00
Michael Adam 4292fe7795 Fix a segfault in insert_acl and checks against string-type acls
The "address" member of struct acl_s is a union of a char *
and the numeric ip. So freeing the string after appending it to the
vector list is bad in two respects:

1. If the acl type was numeric, then this could (and would)
   lead to a segfault due to the numeric IP data interpreted
   as pointer to the string to be freed.

2. If the acl type was string, then the acl inserted into the
   list contained a reference to this address string that
   was freed. So in the worst case dereferencing this freed
   string could segfault, or at least this could lead to
   unexpectedly failing acl checks.

Michael
2009-11-10 00:37:57 +01:00
Michael Adam 2b73e2183f conf: fix the IPV6 regex patterns, take two
The patterns should not end with the end of line marker,
since they might be part of a continuing pattern,
say of the form ipv6address/mask (used for allow/deny)

Michael
2009-11-09 23:26:46 +01:00
Michael Adam f4f14419c4 conf: fix the IPV6 regex patterns
These are not matched against the beginning of a line
but somewhere in the middle (as in "listen <IPv6 address>").

Michael
2009-11-09 13:53:44 +01:00
Mukund Sivaraman cd834de190 Close listenfd upon errors 2009-11-09 11:16:38 +05:30
Mukund Sivaraman c8c9abc669 Fix validation of IPv6 addresses 2009-11-09 02:44:14 +05:30
Mukund Sivaraman 6f93737d8e Bump micro version 2009-11-09 01:14:03 +05:30
Mukund Sivaraman c978015af1 Add IPV6 support to listen_sock() 2009-11-09 01:13:41 +05:30
Michael Adam 25057baf54 propagate reload of filter file to child procs by sending HUP signals 2009-10-25 23:33:37 +01:00
Michael Adam 3474de599f Change child_kill_children() to take the signal as an argument. 2009-10-25 23:33:37 +01:00
Michael Adam 1b4d130cf5 child: handle SIGHUP in the child by reloading the filter file 2009-10-25 23:33:37 +01:00
Michael Adam b837e65b21 use new filter_reload() in child_main_loop() 2009-10-25 23:33:37 +01:00
Michael Adam 83987babd3 filter: add function filter_reload() 2009-10-25 23:33:37 +01:00
Michael Adam 79527fb6f7 gitignore add file tags (from ctags) 2009-10-25 23:33:37 +01:00
Michael Adam f43dd6ae18 TODO: add a reference to a bugzilla entry 2009-10-13 23:52:02 +02:00
Michael Adam cbaa4b9fd2 tests:webclient: add option to send a request entity (body) 2009-10-12 02:01:25 +02:00
Michael Adam e793a729f6 Clean tinyproxy.conf in make clean. 2009-10-11 13:21:13 +02:00
Michael Adam 582a8dc624 Fix make distcheck with tinyproxy.conf.in
(Fixes make install and out of tree builds)

Thanks to muks for the top_srcdir bit!
2009-10-11 13:19:36 +02:00
Michael Adam 7b8171fe01 tests: add commented out DisableViaHeader to tinyproxy conf in the tests. 2009-10-11 02:00:44 +02:00
Michael Adam db7f340b3a Document DisableViaHeader in the tinyproxy.conf(5) manpage. 2009-10-11 02:00:44 +02:00
Michael Adam 1c0bda0e7c Document DisableViaHeader in the tinyproxy.conf template. 2009-10-11 02:00:32 +02:00
Michael Adam 7671ac1ae2 Don't add "Via:" header when DisableViaHeader == Yes. 2009-10-11 01:27:24 +02:00
Michael Adam f208b1222b Add a boolean config option "DisableViaHeader". 2009-10-11 01:13:15 +02:00
Michael Adam f46aeca9a5 Fix a typo in the tinyproxy.conf template. 2009-10-10 22:25:03 +02:00
Michael Adam 03b8e8bc19 Fix another typo in the tinyproxy.conf(5) manpage. 2009-10-10 22:24:02 +02:00
Michael Adam add2685a55 Fix a typo in the tinyproxy.conf(5) manpage. 2009-10-10 22:23:28 +02:00
Michael Adam cbe52ca43c tests:webserver: correctly answer http/0.9 requests by sending no headers
Michael
2009-10-10 20:57:07 +02:00
Michael Adam 07d993cbc1 acl: Fix "comparison between signed and unsigned" warning on 32bit
This reads the mask bits as an unsigned int instead of as signend.
This is also what mask bits really are - there is no negative mask. :-)

Michael
2009-10-10 01:11:53 +02:00
Michael Adam a89d987e8a Use size_t not ssize_t for len argument. This is always >= 0. 2009-10-10 01:11:10 +02:00
Michael Adam 1fda61b5a0 generate etc/tinyproxy.conf from a tinyproxy.conf.in template
This is a first cut at providing a tinyproxy.conf file with
more useful default or example directories. It uses datadir,
sysconfdir and localstatedir.

Because automake is a little special here, this template can
not simply be processed by configure (AC_CONFIG_FILES(...)),
as these variables can only be used like this in makefiles.
Instead, we need a little sed-processor in the Makfile in etc/.

Michael
2009-10-10 00:58:55 +02:00
Mukund Sivaraman 641e5823c0 Use ssize_t for len argument 2009-10-09 13:50:12 +05:30
Michael Adam eb4d01cc46 add muks' and my (C) to the main.c boilerplate comment.
Michael
2009-10-07 01:08:03 +02:00
Michael Adam 297274ca15 main: add muks and me to the license output (tinyproxy -l)
Michael
2009-10-07 01:06:05 +02:00
Mukund Sivaraman 8ff437236f Add items to TODO 2009-10-02 15:55:42 +05:30
Mukund Sivaraman eab4ae000b url variable modified in do_transparent_proxy() is not the url variable in the caller 2009-10-02 15:27:43 +05:30
Mukund Sivaraman 931b038b27 Use safer string functions 2009-10-02 15:21:42 +05:30
Mukund Sivaraman 323a4d0147 Clean up html_send_file ()
- Make function return from one place
 - Move inbuf to the heap
2009-10-02 13:01:32 +05:30
Mukund Sivaraman 21c8d7a7ed Add more bugs to NEWS 2009-09-28 19:08:54 +05:30
Mukund Sivaraman 92378a9085 docs: Fix typos in tinyproxy.conf manpage 2009-09-28 18:51:42 +05:30
Mukund Sivaraman 03c8a415e3 Add note about build system to NEWS 2009-09-28 18:37:40 +05:30
Mukund Sivaraman afcd38536b docs: Fix case 2009-09-28 16:26:19 +05:30
Michael Adam 5a77c9744a docs: document the reverse proxying options in tinyproxy.conf(5) 2009-09-28 12:18:52 +02:00
Michael Adam f0cbc35ca9 docs: document ConnectPort in tinyproxy.conf(5) 2009-09-28 11:37:54 +02:00
Michael Adam 9ff9bd18fe docs: document Anonymous in tinproxy.conf(5) 2009-09-28 11:35:20 +02:00
Michael Adam f1e5360ef1 docs: document the filtering options in tinyproxy.conf(5) 2009-09-28 11:24:34 +02:00
Michael Adam 33872928d5 docs: document ViaProxyName in tinyproxy.conf(5) 2009-09-28 11:24:34 +02:00
Michael Adam 8c31287805 docs: document Allow and Deny in tinyproxy.conf(5) 2009-09-28 11:24:34 +02:00
Michael Adam 42b072b863 docs: document MaxRequestsPerChild in tinyproy.conf(5) 2009-09-28 11:24:34 +02:00
Michael Adam 553b95b3ed docs: document StartServers in tinyproxy.conf(5) 2009-09-28 11:24:34 +02:00
Michael Adam 9574bf0855 docs: document MinSpareServers and MaxSpareServers in tinyproxy.conf(5)
Michael
2009-09-28 11:24:33 +02:00
Michael Adam bc1b7def01 docs: document "MaxClients" in tinyproxy.conf(5)
Michael
2009-09-28 11:24:33 +02:00
Michael Adam 078040731c docs:document "Upstream"/"No Upstream" in the tinyproxy.conf manpage
Michael
2009-09-28 11:24:33 +02:00
Michael Adam 5198ae644b conf: beautify one formatting in the directives array.
Michael
2009-09-28 11:24:33 +02:00
Michael Adam 2beaac96d3 handle_connection: make logic clearer when deciding whether to use connect/ssl
Michael
2009-09-28 11:24:33 +02:00
Mukund Sivaraman f08f0218af Include limits.h for LONG_MAX and LONG_MIN
Not including limits.h caused an issue when building on FreeBSD.
2009-09-28 13:41:36 +05:30
Mukund Sivaraman f0263c5823 Fix version in NEWS file 2009-09-27 19:25:51 +05:30
Mukund Sivaraman e58f392e57 Add NEWS for 0.7.1 2009-09-27 19:24:11 +05:30
Mukund Sivaraman 44e32f15d7 Remove section on debugging from README 2009-09-27 19:09:51 +05:30
Mukund Sivaraman bf38e2e68b Update README to asciidoc format 2009-09-27 19:08:46 +05:30
Mukund Sivaraman 630d44e67b [BB#10] Do not filter out transfer-encoding header 2009-09-27 16:27:51 +05:30
Michael Adam 4668ae9e06 tests: set XTinyproxy Yes in the test setup
Michael
2009-09-27 12:52:39 +02:00
Michael Adam 7710dc4a8c conf: make xtinyproxy BOOL in the directives array, too
Michael
2009-09-27 12:48:48 +02:00
Michael Adam c8a0a1efdc docs:tinyproxy.conf(5): fix a typo.
Michael
2009-09-27 12:41:30 +02:00
Michael Adam 95f2584883 docs: document XTinyproxy in the tinyproxy.conf manpage.
Michael
2009-09-27 12:40:44 +02:00
Michael Adam 577e95880e tinyproxy.conf: Update the description of XTinyproxy (it is a bool).
Michael
2009-09-27 12:35:16 +02:00
Michael Adam eecf145dbb conf: turn XTinyproxy into a boolean option
This is what it actually is.

The string value was used in earlier versions to compare
against the uri->authority string. But not as a list of
sites to create an X-Tinyproxy header for, as the tinyproxy.conf
template states...

Michael
2009-09-27 12:32:31 +02:00
Michael Adam 0539be08b4 tests: fix infinite loop "waiting for 3 seconds..." in bash
Michael
2009-09-27 12:07:54 +02:00
Michael Adam 79e994dd97 tests:webclient: allow HTTP/1.0 requests with methods other than GET
Michael
2009-09-27 11:18:52 +02:00
Michael Adam 039537cbe7 make: add targets "test" and "valgrind-test"
These simply run the corresponding test scripts.
Needs to be extended.

Michael
2009-09-27 11:18:52 +02:00
Mukund Sivaraman 2fd7417f56 Modify usage help text shown when Tinyproxy is run with -h 2009-09-27 08:09:24 +05:30
Mukund Sivaraman 1cdec54029 build: Reverse maintainer mode test
This is so that if this variable name changes in the future,
Tinyproxy would still build without aborting on -Werror.
2009-09-27 08:09:24 +05:30
Mukund Sivaraman 54f4e8a91f Use correct format string for POSIX pid_t in pidfile_create()
This patch also adds a gtk-doc comment for pidfile_create().
2009-09-27 08:09:24 +05:30
Mukund Sivaraman 43d0af85af Remove obsolete comment 2009-09-27 08:09:24 +05:30
Mukund Sivaraman 1c72d8f063 build: Run configure in autogen.sh 2009-09-27 08:09:23 +05:30
Mukund Sivaraman 38c20cd867 Add explicit casts for c++ mode in transparent-proxy.c 2009-09-27 08:09:23 +05:30
Mukund Sivaraman c8be0250cd Fix use of uninitialized variable 2009-09-27 08:09:23 +05:30
Mukund Sivaraman 0dda30295e Add explicit casts for c++ mode in reverse-proxy.c 2009-09-27 08:09:23 +05:30
Mukund Sivaraman 00931dfc68 build: Add -Werror to CFLAGS during maintainer mode builds 2009-09-27 08:09:23 +05:30
Mukund Sivaraman 3f0ccdef3c strdup() the default stathost in config struct as it can be freed 2009-09-27 08:09:23 +05:30
Mukund Sivaraman 0ecb688269 Don't ignore retval of ftruncate() in utils.c 2009-09-27 08:09:23 +05:30
Mukund Sivaraman 1586b39138 Don't ignore retval of read() in reqs.c 2009-09-27 08:09:22 +05:30
Mukund Sivaraman 003df7454a Don't ignore retval of write() in log.c 2009-09-27 08:09:22 +05:30
Mukund Sivaraman 616c03a9fb Don't ignore retval of ftruncate() in log.c 2009-09-27 08:09:22 +05:30
Mukund Sivaraman fc7415a5b0 Include debugging functions only when debug mode is used 2009-09-27 08:09:22 +05:30
Mukund Sivaraman d102ed4ed3 Don't ignore retval of chdir() 2009-09-27 08:09:22 +05:30
Michael Adam 50c781d0c9 build: import the AM_SILENT_RULES if available, but default to verbose.
Automake 1.11 (and I think 1.10b already) offers the AM_SILENT_RULES macro.
This adds switches --quiet, --enable-silent-rules and --disable-silent-rules
to configure.

--quiet makes the configure run itself quite.
--enable-silent-rules makes the compile process less verbose:
  for a file that is compiled without errors or warnings, a simple
  "CC     main.o" is printed (e.g.). Compiler warnings and errors
  are printed of course.
  This makes it much easier (IMHO) to spot build problems.
--disable-silent-rules turns the silent rules off

I have set it up such that the default for tinyproxy is to build
in verbose mode (i.e. with silent rules disabled). This prints
the whole compile call command line for each source file compiled,
precisely as before.

You can also control verbose/non-verbose mode at "make" time, i.e.
after configure has run, by calling "make V=0 ..." or "make V=1 ..."
for running in silent and verbose mode, respectively.

If the version automake used to create configure is too old,
the result is unaltered, compared to the result before this change.

Wow - this is a long commit message for a 1-liner.
But since I discussed this with Mukund earlier, and he did
not seem to be too fond if this, I felt the need to justify
this change... :-)

Michael
2009-09-22 13:09:25 +02:00
Michael Adam e8cbd7088c docs:tinyproxy.conf: document "PidFile".
Michael
2009-09-22 00:22:19 +02:00
Michael Adam 7b07477ebd docs:tinyproxy.conf: document LogFile, Syslog, and LogLevel
Michael
2009-09-22 00:19:12 +02:00
Michael Adam 93219ea0db docs:tinyproxy.conf: describe ErrorFile and DefaultErrorFile and StatFile
Somehow, I don't quite get the asciidoc formatting yet.
I can't get the extra paragraph on templates to look nice
in the manpage output.
But at least there is some content...

Michael
2009-09-22 00:05:23 +02:00
Michael Adam 92c64cabc1 tests: use the debug.html file as DefaultErrorFile in the tests.
Michael
2009-09-21 09:42:47 +02:00
Mukund Sivaraman df6e8ae046 Fix warning about format string not being a string literal 2009-09-21 10:04:09 +05:30
Mukund Sivaraman f0cc213c5a Remove trailing comma from acl_type enum 2009-09-21 09:59:11 +05:30
Mukund Sivaraman e9f8212560 Suppress gcc warnings about variadic macros 2009-09-21 09:57:29 +05:30
Mukund Sivaraman 0cc707b3ff Rename conffile.[ch] to conf.[ch] 2009-09-21 09:41:59 +05:30
Mukund Sivaraman 9d5a15ed2d [BB#18] Fix pointer aliasing issues
The changes were suggested by ians on the Banu forums.
2009-09-21 09:16:58 +05:30
Mukund Sivaraman d7ae6e4653 build: Add -ansi and --std=c89 to CFLAGS 2009-09-21 09:14:51 +05:30
Mukund Sivaraman eccc765057 Remove trailing comma from filter_policy_t 2009-09-21 07:32:38 +05:30
Michael Adam b424ec2865 configure: fix a typo in the tinyproxy version definition.
Michael
2009-09-20 22:26:41 +02:00
Michael Adam b95f7b9ffb Print a http error when the client headers could not be retrieved.
A ususal case here is that the headers were buggy, e.g. a line
without a ":" to separate the header field name from the value.
Previous behaviour was to silently return a blank page.

Michael
2009-09-20 22:24:18 +02:00
Michael Adam fcb053a77c Revert "Remove unused parameter from process_request()"
This reverts commit f3312c22a0.

The "hashofheaders" argument to process_request() is needed
for building with reverse support or with transparent support.

Michael
2009-09-20 21:58:52 +02:00
Michael Adam 87f7a79e89 tests:webclient: fix default version (string, not number...)
Michael
2009-09-20 13:24:06 +02:00
Michael Adam 2208bebeac tinyproxy.conf: add a comment referring to the tinyproxy.conf(5) manpage
Michael
2009-09-20 11:01:30 +02:00
Michael Adam 30cb3f89ab tinyproxy.conf: update description of User/Group
Michael
2009-09-20 10:58:18 +02:00
Mukund Sivaraman ad8f0feb4f build: Remove obsolete/unused macros 2009-09-20 14:14:27 +05:30
Mukund Sivaraman 23464e88ad Remove unnecessary vfork.h include 2009-09-20 14:08:14 +05:30
Mukund Sivaraman 73409c9fe1 build: Remove use of the obsolete AC_TYPE_SIGNAL macro
C89 compilers use void return type for signal handler functions.
2009-09-20 14:03:56 +05:30
Mukund Sivaraman 919eedc7f9 Remove inline keyword from static functions
The compiler inlines static functions as necessary anyway.
No more inline keywords exist in Tinyproxy source code. We want to
avoid using this keyword anyway.
2009-09-20 13:58:50 +05:30
Mukund Sivaraman 403fd7cc25 build: Remove obsolete/unused macros 2009-09-20 13:54:57 +05:30
Mukund Sivaraman 0978decbac build: Rename autoconf variable 2009-09-20 13:45:47 +05:30
Mukund Sivaraman a1725f6297 Better handle the debugging flags 2009-09-20 13:38:53 +05:30
Mukund Sivaraman 1a5d1b4833 build: Remove profiling related CFLAGS
These can be specified manually by a developer when necessary. Such flags
do not belong in a generic distribution.
2009-09-20 13:37:09 +05:30
Mukund Sivaraman 753010f571 build: Update CFLAGS and also check if they are supported
Also, enable all warnings by default, whether it is a debug
build or not.
2009-09-20 13:32:46 +05:30
Mukund Sivaraman 07ad8ad1b2 Remove unnecessary CFLAGS initialization 2009-09-20 13:19:22 +05:30
Mukund Sivaraman 1196cc11b9 Remove unnecessary prefix test 2009-09-20 13:12:57 +05:30
Mukund Sivaraman abafcf08ab Remove the target system information when the version is displayed
If we require information about the runtime environment, it can be
found using the uname program. And binutils can tell about what the
tinyproxy binary contains. Tinyproxy doesn't have to report this
information.
2009-09-20 12:40:52 +05:30
Mukund Sivaraman 90e7d07f44 Remove ability to change the name of the default configuration file
This feature will only confuse us during support, if users come to
us with a Tinyproxy build which has a differently named default config
file. This feature is not that useful anyway.
2009-09-20 12:33:47 +05:30
Mukund Sivaraman 6f9fa5287f Remove obsolete SOCKS related entries from configure.ac
These were probably never supported, and we shouldn't claim that
we support SOCKS when we don't.
2009-09-20 12:21:59 +05:30
Mukund Sivaraman fbc0549540 Remove unused statements from configure.ac 2009-09-20 12:14:02 +05:30
Mukund Sivaraman 851ef02fbe build: Generate more version related variables 2009-09-20 12:13:26 +05:30
Mukund Sivaraman e33fb9f77b docs: Make formatting changes in tinyproxy.conf manpage 2009-09-20 11:55:47 +05:30
Mukund Sivaraman 9dfe1f1a56 docs: Further describe User and Group keys in tinyproxy.conf manpage 2009-09-20 11:53:44 +05:30
Mukund Sivaraman 9f0bf550af Revert "docs: extend description of the User and Group parameters."
This reverts commit b6433522eb.
2009-09-20 11:50:47 +05:30
Michael Adam 371e13e44f docs: document Listen, Bind, Bindsame, and Timeout in tinyproxy.conf(5)
Michael
2009-09-20 01:54:06 +02:00
Michael Adam b6433522eb docs: extend description of the User and Group parameters.
Michael
2009-09-20 01:54:06 +02:00
Mukund Sivaraman f7d494d9f7 doc: Add initial description in tinyproxy.conf manpage 2009-09-19 23:04:04 +05:30
Mukund Sivaraman 0def858576 docs: Add placeholder for tinyproxy.conf manpage 2009-09-19 09:57:24 +05:30
Michael Adam 4d4f7d2a09 tests:webclient: add copyright notice to the pod documentation.
Michael
2009-09-17 00:25:57 +02:00
Michael Adam d1c8a68375 tests:webserver: Add copyright notice to the pod documentation.
Michael
2009-09-17 00:25:57 +02:00
Michael Adam aae8ae5d8d tests:webclient: reduce duplication.
Michael
2009-09-17 00:25:57 +02:00
Michael Adam b7d9256a7a tests:webclient: add a --dry-run mode that prints the request to stdout
and does not connect to the server at all.

Michael
2009-09-16 22:35:35 +02:00
Michael Adam 4ef7901115 tests:webclient: extend webclient to support HTTP/0.9, 1.0 and 1.1 requests.
Enable spcifying HTTP protocol version on command line ( --http-version).
Enable specifying method (GET, CONNECT, ...) on the command line (--method).
Add POD documentation.
Use pod2usage() to print help message.

Michael
2009-09-16 22:35:35 +02:00
Michael Adam b5a69151fa tests: add Makefile.am to tests/ and tests/scripts dir (for packaging)
Michael
2009-09-16 22:35:35 +02:00
Michael Adam f648d82edc tests: prepare tinyproxy for filter file usage in tests.
Michael
2009-09-15 02:25:10 +02:00
Michael Adam 574a65c28e filter: un-linebreak after un-indent...
Michael
2009-09-15 02:25:10 +02:00
Michael Adam c240ca3bcc child: move log messagte in child_main_loop() to a less irritating place.
Michael
2009-09-15 02:25:10 +02:00
Michael Adam 93b00446b9 filter: reduce indentation in filter_init by 16 characters by using return.
Michael
2009-09-15 02:25:09 +02:00
Mukund Sivaraman 9594b8889e Revert "Fix constness of stathost"
This reverts commit 42d2e10c93.
2009-09-15 04:14:26 +05:30
Mukund Sivaraman f3312c22a0 Remove unused parameter from process_request() 2009-09-15 04:11:58 +05:30
Mukund Sivaraman 551e041638 Make takesig() into a static function 2009-09-15 04:09:34 +05:30
Mukund Sivaraman 42d2e10c93 Fix constness of stathost 2009-09-15 04:08:26 +05:30
Mukund Sivaraman 83ebd74d87 Minor indenting changes
Also changed the text "configuration file" to read "config file".
2009-09-15 04:07:06 +05:30
Mukund Sivaraman d243515fa7 Return instead of exit() at end of main() 2009-09-15 04:06:26 +05:30
Mukund Sivaraman ce55167487 Minor indenting changes 2009-09-15 03:53:35 +05:30
Mukund Sivaraman b3065b6d18 Exit with proper status in case of bad commandline arguments 2009-09-15 03:53:18 +05:30
Mukund Sivaraman 34e23233ce Add doc for change_user() 2009-09-15 02:00:20 +05:30
Mukund Sivaraman 1d744eb4c9 Return correct error status when setuid() or setgid() fails 2009-09-15 01:55:16 +05:30
Mukund Sivaraman 56748c5e65 Extract setuid/setgid code into a function 2009-09-15 01:55:16 +05:30
Mukund Sivaraman 5ec5449194 Extract cmdline parsing code into a function 2009-09-15 01:55:16 +05:30
Michael Adam f25b0e2872 filter: untangle assignment and check in filter_init().
Michael
2009-09-14 22:18:28 +02:00
Michael Adam c8e1696a22 conffile: reformat the directives array for readability.
Michael
2009-09-14 22:17:45 +02:00
Michael Adam b6413068e2 tests:webserver: record the value of the server header field in a variable.
Michael
2009-09-14 22:12:30 +02:00
Mukund Sivaraman 96303e10f3 Remove unused variable 2009-09-15 01:15:27 +05:30
Mukund Sivaraman 7b9234f394 Indent code to Tinyproxy coding style
The modified files were indented with GNU indent using the
following command:

indent -npro -kr -i8 -ts8 -sob -l80 -ss -cs -cp1 -bs -nlps -nprs -pcs \
    -saf -sai -saw -sc -cdw -ce -nut -il0

No other changes of any sort were made.
2009-09-15 01:11:25 +05:30
Mukund Sivaraman 2cb6777592 Remove C++ wrapper from headers
These are not necessary as Tinyproxy is pure C code, and only
to be used within Tinyproxy. It is not a library.
2009-09-15 01:04:28 +05:30
Mukund Sivaraman 26b95f7b81 Add Tinyproxy indent script 2009-09-15 01:00:50 +05:30
Mukund Sivaraman 5d48ba3c66 docs: Fix .gitignore 2009-09-14 19:13:34 +05:30
Michael Adam df4892d939 tests:webclient: add User-Agent header to request.
Michael
2009-09-14 13:30:58 +02:00
Michael Adam 8c5391ab6e tests:webserver: add handing of bad request error.
Michael
2009-09-14 13:30:57 +02:00
Michael Adam 78502e4565 tests:webserver: add parsing of request
Michael
2009-09-14 13:30:57 +02:00
Mukund Sivaraman e06aaa5c79 Rename doc directory to docs 2009-09-14 16:56:12 +05:30
Mukund Sivaraman 0491411807 doc: Remove pre-generated manpage from repo
A pre-generated manpage still gets EXTRA_DIST'ed in release tarballs.
2009-09-14 16:50:49 +05:30
Mukund Sivaraman 325d12b01d doc: Don't EXTRA_DIST configure generated tinyproxy.txt 2009-09-14 16:49:56 +05:30
Mukund Sivaraman caba182038 doc: Add .gitignore to doc/man8/ 2009-09-14 16:43:06 +05:30
Mukund Sivaraman 05ee13a649 doc: Another manpage text update 2009-09-14 16:20:10 +05:30
Mukund Sivaraman 017ba5d42f doc: Case changes and minor text updates to manpage 2009-09-14 15:51:37 +05:30
Mukund Sivaraman 00614c1523 doc: Update manpage to set missing fields 2009-09-14 15:46:18 +05:30
Michael Adam 675c7492c1 docs: update asciidoc-generated manpage tinyproxy.8 after changes.
Michael
2009-09-14 11:22:51 +02:00
Michael Adam 19add5471b doc: use asciidoc-auto-enumeration in list.
Michael
2009-09-14 11:20:07 +02:00
Michael Adam b3e3fe6647 doc: add my c to the manpage
Michael
2009-09-14 11:03:34 +02:00
Michael Adam cdb9d54dca docs: update tinyproxy manpage: elaborate template files and explain stat host.
Michael
2009-09-14 11:02:28 +02:00
Michael Adam afacc3d80b tests:webserver: move parsing of request to its own function.
(Prepare for really parsing the request...)

Michael
2009-09-14 11:02:28 +02:00
Mukund Sivaraman 8f8f99098e packaging: Update summary and description in spec file 2009-09-13 17:26:38 +05:30
Mukund Sivaraman b952bc6595 Remove acinclude.m4 and configure macro dir 2009-09-13 17:14:08 +05:30
Michael Adam f1a586648e tests: test retreival of stathost page.
Michael
2009-09-13 01:52:26 +02:00
Michael Adam 282ec11792 tests: set stathost to 127.0.0.127 in the testsuite
Michael
2009-09-13 01:52:11 +02:00
Michael Adam 5a96099cde tests: print IP and port after firing up tinyproxy and webserver
Michael
2009-09-13 01:31:05 +02:00
Michael Adam abb2283e2e tests:webserver: be more rfc 1945 compliant in the server-header.
Michael
2009-09-13 01:14:44 +02:00
Michael Adam 71f3721bb1 tests: fix run_tests.sh after templates have moved.
Michael
2009-09-13 01:09:44 +02:00
Mukund Sivaraman 7aa5482754 doc: Remove missing tinyproxy.conf from EXTRA_DIST 2009-09-13 04:14:21 +05:30
Mukund Sivaraman 168935344a Cleanup top-level Makefile.am 2009-09-13 04:13:21 +05:30
Mukund Sivaraman 9b6975c9eb m4macros: EXTRA_DIST m4 macros from its own directory 2009-09-13 04:12:32 +05:30
Mukund Sivaraman 49971a76b9 Remove files that are distributed anyway from EXTRA_DIST 2009-09-13 04:09:37 +05:30
Mukund Sivaraman 7b4f67ecef data: Cleanup installation of templates 2009-09-13 04:08:06 +05:30
Mukund Sivaraman 9d7bd43d8e Fix Makefile.am 2009-09-13 04:05:28 +05:30
Mukund Sivaraman c44264ddaa doc: Move doc/tinyproxy.conf to etc/ directory 2009-09-13 04:04:18 +05:30
Mukund Sivaraman 4cbc6b0359 doc: Move doc/HTML_VARIABLES content to the manpage 2009-09-13 03:59:03 +05:30
Mukund Sivaraman 13ccc059d0 doc: Rename some files 2009-09-13 03:53:32 +05:30
Mukund Sivaraman ce97014bc0 doc: Delete report.sh.tmpl 2009-09-13 03:49:20 +05:30
Mukund Sivaraman f3e06436b5 doc: Move templates to data/templates/ directory 2009-09-13 03:48:24 +05:30
Mukund Sivaraman d7296318a0 doc: Cleanup doc/Makefile.am 2009-09-13 03:40:59 +05:30
Mukund Sivaraman a4a93917c9 doc: Use asciidoc for manpage 2009-09-13 03:32:38 +05:30
Mukund Sivaraman 31f98e9adc doc: Remove report.sh script 2009-09-13 02:55:42 +05:30
Michael Adam 6c83a49bbb tests: add a script wrapper to run tinyproxy under valgrind in the tests.
This runs valgrind with the -q switch - i.e. the log file
tests/env/var/log/valgrind.log will only contain anything when there were
valgrind errors. (Memory leaks...)

Michael
2009-09-11 01:10:11 +02:00
Michael Adam 26aa8648b6 tests: add support for running tinyproxy under valgrind.
When you want to run tinyproxy under valgrind,
set the environment variable VALGRIND to some useful
valgrind command line.

Michael
2009-09-11 01:02:52 +02:00
Michael Adam 389f5d1464 make "config_file" a const in the config struct.
Michael
2009-09-10 22:16:58 +02:00
Michael Adam 735c9cb70f reqs.c: fix two implicit cast warnings.
Michael
2009-09-10 22:12:16 +02:00
Michael Adam 408c781d14 tests: restructure run_tests into functions to make main flow clearer.
Also prepare for modularizing the testsuite.

Michael
2009-09-10 12:53:25 +02:00
Michael Adam dfa1763af9 tests:run_tests: add complete GPL boilerplate.
Michael
2009-09-10 12:09:12 +02:00
Michael Adam bc1da1cbb5 tests:webclient: add complete GPL boilerplate.
Michael
2009-09-10 12:08:17 +02:00
Michael Adam 290c4f581e tests/webserver: add complete GPL boilerplate.
Michael
2009-09-10 12:07:48 +02:00
Michael Adam 4d4f8bffef tests:webserver: make pid-file, log-dir and doc-root reside in /tmp by default
So simply starting the server will work.

Michael
2009-09-10 11:08:17 +02:00
Michael Adam 974be68476 tests/webserver: rework locking of pid file.
Michael
2009-09-10 11:08:17 +02:00
Michael Adam 449af292dc tests:webserver: reopen STDOUT/STDERR after locking pid file.
Michael
2009-09-10 11:08:08 +02:00
Michael Adam 526c70f687 tests: this is a first draft of the beginning of a test suite.
It provisions a test envirnonment, fires up the perl web server
and tinyproxy and currently makes one direct request to the
web server and one request through tinyproxy.

This will be modularized and extended in the sequel.

Michael
2009-09-10 01:20:59 +02:00
Michael Adam 158f8a7e15 tests: add a simple web client written in perl.
This should be one of the test tools for writing our testsuite.

This can be used to make direct connects to web servers like so:

webclient.pl server_ip:port /path/file.html

and to make requestis via a proxy like this:

webclient.pl proxy_ip:port http://webserver:port/path/file.html

Michael
2009-09-10 01:15:01 +02:00
Michael Adam a39d7cd8d8 tests: add a simple webserver written in perl.
This should be the web server to test against in the upcoming selftest suite.
This web server will evolve as the test suite grows.
Currently, it just returns a web site quoting the request and a fortune
(if fortune is installed...) for whatever request it gets.

The option to provide a document root is already present.

Michael
2009-09-10 01:13:01 +02:00
Michael Adam e39da7d0b2 README: Update the CONTRIBUTING section.
* provide the git url
* mention git format-patch
* mention the #tinyproxy irc channel

Michael
2009-09-09 10:52:17 +02:00
Michael Adam 4092c70b06 Fix compiler warnings: make const strings const in process_server_headers().
Michael
2009-08-12 23:49:46 +02:00
Michael Adam 0d585dca8d Fix compiler warnings: make const strings const in process_client_headers().
Michael
2009-08-12 23:49:16 +02:00
Michael Adam c59d012d11 Fix compiler warnings: Make const strings const in remove_connection_headers()
Michael
2009-08-12 23:47:45 +02:00
Michael Adam 1bfe8b6bea Fix implicit cast warning in get_all_headers().
And untangle assignment from check.

Michael
2009-08-09 23:30:04 +02:00
Michael Adam 3b6bc45c37 Fix two implicit cast warnings in pull_client_data().
Michael
2009-08-09 23:28:36 +02:00
Michael Adam bfca4019b7 Fix three implicit cast warnings in process_request().
Michael
2009-08-09 23:08:54 +02:00
Michael Adam 43fcc9ea37 Fix implicit cast warning in upstream_add().
Michael
2009-08-09 23:06:31 +02:00
Michael Adam 00fd84586c Fix implicit cast warning in extract_ssl_url().
Michael
2009-08-09 23:05:28 +02:00
Michael Adam ed23ceef64 Fix implicit cast warning in extract_http_url().
Michael
2009-08-09 23:04:27 +02:00
Michael Adam bfa2c8ed77 Fix implicit cast warning in check_allowed_connect_ports().
Michael
2009-08-09 23:02:54 +02:00
Michael Adam eb0deeb966 fix signed vs unsigned comparison warning in check_allowed_connect_ports().
Michael
2009-08-09 23:01:32 +02:00
Michael Adam caee88c774 readline(): fix 5 implicit cast warnings
Michael
2009-08-07 10:10:04 +02:00
Michael Adam 947e8eb838 write_message(): fix signed/unsigned comparison warning
Michael
2009-08-07 10:07:07 +02:00
Michael Adam c535939a9c write_message(): fix implicit cast warnings.
Michael
2009-08-07 10:06:12 +02:00
Michael Adam b450ad76ff safe_write: fix unsigned vs. signed comparison
Michael
2009-08-07 10:04:57 +02:00
Michael Adam 2fff622819 send_stored_logs(): remove an implicit cast warning.
Michael
2009-08-07 09:54:15 +02:00
Michael Adam 4434dd24f1 send_stored_logs: fix signed/unsigned comparison
Michael
2009-08-07 09:42:45 +02:00
Michael Adam 8a27e29f7e log_message(): remove implicit cast warning.
Michael
2009-08-07 09:28:35 +02:00
Michael Adam 87f5657db0 log: make const char array const.
Michael
2009-08-07 09:27:51 +02:00
Michael Adam 1052502b63 http_message_add_headers: make argument num_headers unsigned
and remove signed vs. unsigned comparison warnings.

Michael
2009-08-07 09:24:32 +02:00
Michael Adam f99edadc92 http_message_add_headers(): fix implicit cast warning.
Michael
2009-08-07 09:21:28 +02:00
Michael Adam baf634194c http_message_create(): remove two implicit cast warnings.
Michael
2009-08-07 09:20:28 +02:00
Michael Adam 6a35704cdb heap: make a const string const in malloc_shared_memory().
Michael
2009-08-07 09:17:49 +02:00
Michael Adam 8f50875740 heap: fix an implicit cast warning.
Michael
2009-08-07 09:17:12 +02:00
Michael Adam ab9e8a59e2 hashmap: fix three implicit cast warnings.
Michael
2009-08-07 09:16:07 +02:00
Michael Adam 181b03d729 Fix an implicit cast warning in initialize_conn().
Michael
2009-08-07 09:12:42 +02:00
Michael Adam 02e7bc7545 send_html_file(): remove a discards qualifyer warning
and untangle assignment from check.

 Michael
2009-08-07 08:56:46 +02:00
Michael Adam 3adec81872 html-error: make read only argument const in lookup_variable().
Michael
2009-08-07 08:53:26 +02:00
Michael Adam 76dadf47d3 make a const string const in send_http_error_message().
Michael
2009-08-07 08:51:35 +02:00
Michael Adam 1c3c268b50 make a const string const in send_http_headers().
Michael
2009-08-07 08:49:21 +02:00
Michael Adam c8ee85702e make message argument of indicate_http_error() const.
Michael
2009-08-07 08:48:51 +02:00
Michael Adam 20b606b6f5 make message argument to send_http_headers() constant.
Michael
2009-08-07 08:44:47 +02:00
Michael Adam 251a975126 add_error_variable(): make key and data arguments const
Michael
2009-08-07 08:41:36 +02:00
Michael Adam 05d1b2b372 showstats(): fix an implicit cast warning.
Michael
2009-08-07 08:38:41 +02:00
Michael Adam 3127baa4c6 showstats(): add a const to a const string
Michael
2009-08-07 08:37:44 +02:00
Michael Adam bb067eb13c init_stats(): fix implicit cast warning.
Michael
2009-08-07 08:36:10 +02:00
Mukund Sivaraman 6f255d0900 Update bug tracker URL 2009-08-07 05:38:46 +05:30
Mukund Sivaraman 4518e4334d Wrap len in parantheses 2009-08-07 04:30:38 +05:30
Matthew Dempsky 59d273fdcc correctly handle folded header fields 2009-08-07 03:59:10 +05:30
Mukund Sivaraman 402b662def Fix const warning 2009-08-07 03:54:08 +05:30
Mukund Sivaraman a21cd7e3ed Rename tinyproxy.[ch] to main.[ch] 2009-08-07 03:42:53 +05:30
Matthew Dempsky b5089fecc7 fix error message formatting
Signed-off-by: Michael Adam <obnox@samba.org>
2009-08-06 07:33:20 +02:00
Michael Adam f904831acd .gitignore: ignore vi backup files
Michael
2009-08-05 00:28:01 +02:00
Michael Adam 2ca1f9027b add const to the key argument of anonymous_insert().
Michael
2009-08-05 00:15:04 +02:00
Michael Adam c6475974b5 add const to the key argument for anonymous_search().
Michael
2009-08-05 00:14:20 +02:00
Michael Adam caf20d786b utils: make headers constant in send_http_message() to reduce compiler warnings
Michael
2009-08-05 00:09:41 +02:00
Michael Adam 1cdd76af31 http_message_add_headers(): make parameter headers const.
Michael
2009-08-05 00:09:16 +02:00
Michael Adam 867b4c9813 filter_init(): kill implicit cast warnings by adding explicit casts.
Michael
2009-08-04 23:57:30 +02:00
Michael Adam f0a46fd71c vector: remove implicit cast warning in vector_insert() by adding explicit cast
Michael
2009-08-04 23:52:56 +02:00
Michael Adam 5b81dec879 vector: remove implicit cast warning in vector_create()
Michael
2009-08-04 23:51:29 +02:00
Michael Adam 0aa45b0d34 child_pool_create(): add to explicit cats to reduce compiler warnings.
Michael
2009-08-04 23:47:28 +02:00
Michael Adam 60de38ceaa child: adapt child_config to contain unsigned integers
as just changed in get_int_arg.

Michael
2009-08-04 23:47:28 +02:00
Michael Adam b4d8c5b9bf conffile: change [sg]et_int_arg() to return unsigned long int
This is also the parser regexp for INT in the definition.

Michael
2009-08-04 23:47:28 +02:00
Michael Adam 23b09947c6 conffile: add explicit cast in get_string_arg().
Michael
2009-08-04 23:47:28 +02:00
Michael Adam 35abbbc26d config_compile(): add an explicit cast.
Michael
2009-08-04 23:47:28 +02:00
Michael Adam 0b583194b7 config_compile(): fix as signed / unsigned comparison compiler warning.
Michael
2009-08-04 23:47:28 +02:00
Michael Adam f52be1a2a1 conffile: fix indentation in the directives definition.
Michael
2009-08-04 23:47:28 +02:00
Michael Adam e6ac4b28cd conffile: fix some missing initializer warnings in the directives definition.
Michael
2009-08-04 23:47:28 +02:00
Michael Adam 32c7caf710 conffile: reformat some indentation and linebreak in the directives definition.
Michael
2009-08-04 23:47:28 +02:00
Michael Adam 8f955d5543 child: add explicit cast in child_main().
Michael
2009-08-04 23:47:28 +02:00
Michael Adam 50dbd61063 buffer: add explicit cast in read_buffer().
Michael
2009-08-04 23:47:28 +02:00
Michael Adam e5e665b0c6 buffer: add explicit cast in new_buffer().
Michael
2009-08-04 23:47:27 +02:00
Michael Adam 88dbe04c81 buffer: untangle assignment and check.
Michael
2009-08-04 23:47:27 +02:00
Michael Adam f5c80119ca buffer: add two explicit casts to reduce compiler warnings in makenewline().
Michael
2009-08-04 23:47:27 +02:00
Michael Adam 25344751eb buffer: untangle assignment from check in makenewline().
For better debuggability.

Michael
2009-08-04 23:47:27 +02:00
Michael Adam ab4df6edb8 check_acl(): initialize "perm" to eliminate compiler warning.
Provides safe fallback for switch statement, just in case..

Michael
2009-08-04 23:47:27 +02:00
Michael Adam 14a3e187ee check_acl(): remove the fd argument - it is not used.
Host name and IP address are provided instead.

Michael
2009-08-04 23:47:27 +02:00
Michael Adam 64ff313260 check_acl(): fix function header comment.
Michael
2009-08-04 23:47:27 +02:00
Michael Adam 0abd82b7e9 check_acl(): add explicit cast to return value of vector_getentry()
to reduce compiler warnings.

Michael
2009-08-04 23:47:27 +02:00
Michael Adam b9f2325c54 check_acl(): add cast to recuce compiler warning (unsigned / signed comparison)
vector_lenth() returns < 0 if the vectore is NULL but this has been
checked before, so we can safely cast.

Michael
2009-08-04 23:47:27 +02:00
Michael Adam a34276feee change vector_prepend() to take size_t len instead of ssize_t len argument.
Michael
2009-08-04 23:47:27 +02:00
Michael Adam 67628dcc63 change vector_append() to take size_t len instead of ssize_t len argument
Michael
2009-08-04 23:47:27 +02:00
Michael Adam 590f99ef2d vector: change vectore_insert() to take size_t len instead of ssize_t len arg
Michael
2009-08-04 23:47:27 +02:00
Michael Adam c2c7245030 remove "discard const" compiler warnings with log_message().
Michael
2009-08-04 23:47:26 +02:00
Michael Adam c409e0f9d8 configure: Add more warnings to CFLAGS in debug mode
Michael
2009-08-04 23:47:26 +02:00
Michael Adam 04b19ac8b4 tinyproxy.conf: fix a comment typo
Michael
2009-08-04 01:36:22 +02:00
Mukund Sivaraman 9d971cb2d0 [BB#53] Add a GPLv2 COPYING file
Tinyproxy is distributed under the GNU GPLv2 or above license.
If autotools are used to build Tinyproxy without this file, they
copy the system installed COPYING file which is nowadays the
GNU GPLv3 license.
2009-08-04 04:21:46 +05:30
Michael Adam 1491483c35 tinyproxy.conf: kill some trailing spaces
Michael
2009-06-14 23:01:07 +02:00
Michael Adam 3ebb2ce607 autogen.sh: fix errors with new autotools.
The following errors occurred when running ./autogen.sh :

$ ./autogen.sh
+ aclocal
configure.ac:18: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:386: AC_USE_SYSTEM_EXTENSIONS is expanded from...
../../lib/autoconf/specific.m4:332: AC_GNU_SOURCE is expanded from...
configure.ac:18: the top level
configure.ac:18: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
configure.ac:19: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:459: AC_MINIX is expanded from...
configure.ac:19: the top level
configure.ac:19: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS

and so on for autoheader and friends.
According to the autotools docs, the proper way to handle this
is to just call AC_USE_SYSTEM_EXTENSIONS.

Michael
2009-05-29 00:09:43 +02:00
Mukund Sivaraman 0b191f16fe Indenting change 2008-12-29 13:28:02 +00:00
Mukund Sivaraman 024b317de0 Convert tabs to spaces 2008-12-08 13:39:44 +00:00
Mukund Sivaraman 6e6f992f8c Update Tinyproxy website URL 2008-12-08 12:41:44 +00:00
Mukund Sivaraman 4c1ede779e Break at 80 columns 2008-12-08 12:26:08 +00:00
Mukund Sivaraman a257703e59 Reformat code to GNU coding style
This is a commit which simply ran all C source code files
through GNU indent. No other modifications were made.
2008-12-01 15:01:11 +00:00
Mukund Sivaraman 448c19077c Don't disable the creation of core files
Creation of core files can be disabled in the OS environment such
as by using the ulimit program.
2008-12-01 14:40:26 +00:00
Mukund Sivaraman a37a81db2d Update Tinyproxy website URLs 2008-10-16 18:21:16 +01:00
Mukund Sivaraman c15fc551da Tweak configure.ac a bit 2008-08-24 12:28:39 +05:30
Mukund Sivaraman 8c1beab96e Update the bugmail field 2008-08-24 12:16:08 +05:30
Mukund Sivaraman fadb98ee55 Add more calls to umask() before mkstemp() 2008-08-24 11:47:50 +05:30
Mukund Sivaraman 82cd6c765b Move buffer to the heap due to its size 2008-08-24 11:38:59 +05:30
Mukund Sivaraman fce253253a Set umask before mkstemp() for some versions of glibc 2008-08-24 11:27:38 +05:30
Mukund Sivaraman 62ddbd5e74 pos can never be less than 0 as it's of type size_t
Also fix the type which is passed in from various places.
2008-08-24 10:58:16 +05:30
Mukund Sivaraman 90c1bb4b73 Remove useless check as data can't be NULL at this point 2008-08-24 10:45:29 +05:30
Mukund Sivaraman 039273c134 Add whitespace 2008-07-30 18:56:15 +05:30
Mukund Sivaraman f613cec7ad Update the bug-report field 2008-07-30 18:53:55 +05:30
Mukund Sivaraman fc06880f81 Add missing comma 2008-07-14 18:20:43 +05:30
Mukund Sivaraman 7c1c547fc8 Change bug report address to email address in AC_INIT 2008-07-14 18:17:41 +05:30
Mukund Sivaraman aa95c34004 Allow numeric uid/gids in User and Group directives
This change allows numeric uid/gids to be specified in the User and
Group directives in tinyproxy.conf. Formerly, only username and group
names were accepted. This fixes bug #15, which was created after
looking at a case on the OpenWrt wiki.

X-Banu-Bugzilla-Ids: 15
2008-07-14 17:40:20 +05:30
Mukund Sivaraman 2fe213d777 Fix error variable names that stats.html expects 2008-07-14 17:14:12 +05:30
Mukund Sivaraman 7e5ac7c58a Fix a regression where empty error variables caused strlen() to crash
This fixes a regression (bug #16) introduced in
95c1f39f60, where a NULL check was
removed. This caused NULL error variable values to be sent to
add_error_variable() in which strlen() segfaulted.

With this fix, custom stats pages should be displayed properly.

X-Banu-Bugzilla-Ids: 16
2008-07-14 17:13:06 +05:30
Mukund Sivaraman 7bdd47d030 Make the embedded error message display valid XHTML too
Also fix the information that is displayed.
2008-07-14 15:47:00 +05:30
Mukund Sivaraman 7b9e178a76 Add version info in embedded stats page 2008-07-14 15:46:05 +05:30
Mukund Sivaraman 7f12f71f94 Add error number as a template parameter for error pages 2008-07-14 15:31:14 +05:30
Mukund Sivaraman 8b26558254 Make the embedded stats message display valid XHTML too 2008-07-14 15:09:02 +05:30
Mukund Sivaraman 74f5c3e417 Spruce up error page footers a bit 2008-07-14 15:02:41 +05:30
Mukund Sivaraman 4caa397ec5 Replace h2 with h1 for the main heading 2008-07-14 14:32:02 +05:30
Mukund Sivaraman 4f0b24ff9a Remove ltmain.sh from dist target 2008-07-14 14:30:32 +05:30
Mukund Sivaraman fea8dafe0c Remove title attribute 2008-07-14 14:28:17 +05:30
Mukund Sivaraman 922e0be574 Update error pages to valid XHTML format
Also change some text and how the messages are displayed,
to look better.
2008-07-14 11:58:19 +05:30
Mukund Sivaraman 7751efc218 Remove unused autoconf macro calls 2008-07-14 11:31:13 +05:30
Mukund Sivaraman 7bac0827f6 Fix tinyproxy homepage link 2008-06-20 12:42:18 +05:30
Mukund Sivaraman 1b99c216fe Remove Id tag from configure.ac 2008-06-19 21:36:46 +05:30
Mukund Sivaraman 20a7e61360 Removed obsolete ignore rules 2008-06-19 21:33:20 +05:30
Mukund Sivaraman 7dcb5f9061 Include values.h to use LONG_MAX and LONG_MIN 2008-06-17 13:44:42 +05:30
Robert James Kaes c8cf89a954 Add strtol conversion error checking
Moved the strtol() call into fill_netmask_array() and added additional
error checking to ensure that the strtol() call succeeded.

Error checking code taken from strtol() manpage.

Signed-off-by: Robert James Kaes <rjk@wormbytes.ca>
2008-06-17 13:32:20 +05:30
Robert James Kaes 51fb15be2c Refactored netmask array fill with range check
When building a numeric ACL with netmask, range check the supplied
value.  In addition, the code to walk the array has been extracted and
"simplified".

Signed-off-by: Robert James Kaes <rjk@wormbytes.ca>
2008-06-17 13:31:04 +05:30
Mukund Sivaraman 95c1f39f60 Don't check the value to be inserted as it's already checked
This change primarily avoids a gcc warning where timebuf
is never non-NULL. There is no need to check the value to be
inserted as it's checked inside hashmap_insert().

This changeset also lets error return values from hashmap_insert()
propogate instead of clamping them to -1 (not that these are
currently used anyway).
2008-06-10 09:51:23 +05:30
Robert James Kaes 5ea289d82e Moved transparent proxy code into its own file
Extracted the transparent proxy logic from reqs.c and placed it into a
separate file.

Signed-off-by: Robert James Kaes <rjk@wormbytes.ca>
2008-06-09 10:01:14 +05:30
Mukund Sivaraman 445e4cb09c Change tinyproxy Bugzilla component to product 2008-06-04 09:45:50 +05:30
Robert James Kaes b092de72f8 Ignore profiling generated files
The *.pcno files are generated as part of the profiling code.

Signed-off-by: Robert James Kaes <rjk@wormbytes.ca>
2008-06-03 21:51:02 +05:30
Mukund Sivaraman 8938b9cd86 Another minor README update 2008-05-24 16:49:32 +05:30
Mukund Sivaraman 2038d4ca8c Updated README 2008-05-24 16:48:45 +05:30
Mukund Sivaraman e7ecb1dabb Added .gitignore entries 2008-05-24 16:35:46 +05:30
Mukund Sivaraman 8949675e5d Updated toplevel Makefile.am to reflect recent automake changes 2008-05-24 16:34:15 +05:30
Mukund Sivaraman cc1f04ecba Updated copyright header in Makefile.am 2008-05-24 16:24:12 +05:30
Mukund Sivaraman 6f9ee262e5 Removed unnecessary LDFLAGS variable 2008-05-24 16:21:29 +05:30
Mukund Sivaraman 06a08b28de Quoted TP_ARG_ENABLE 2008-05-24 16:19:42 +05:30
Mukund Sivaraman 20ad96495c configure.ac changes 2008-05-24 16:17:29 +05:30
Mukund Sivaraman 868a4561fe Restructured automake macros 2008-05-24 16:13:40 +05:30
Mukund Sivaraman b0a3568de0 Renamed htmlerror.[ch] to html-error.[ch] 2008-05-24 13:47:14 +05:30
Mukund Sivaraman 249d4b7f33 Updated copyright, license notices in source code
The notices have been changed to a more GNU look. Documentation
comments have been separated from the copyright header. I've tried to
keep all copyright notices intact. Some author contact details have
been updated.
2008-05-24 13:35:49 +05:30
Mukund Sivaraman b441485b5e Fixed links in spec file 2008-05-05 16:22:30 +05:30
Mukund Sivaraman eb7c535d4e Updated .gitignore files 2008-05-03 13:21:54 +05:30
Jeremy Hinegardner fa7ecaca6d Sync Fedora initscript and specfile 2008-05-01 19:47:58 +05:30
Mukund Sivaraman b110332ed3 Free arg before returning, or it'll leak 2008-03-30 17:56:45 -07:00
Mukund Sivaraman ff72f5426e Free entry_buffer or it'll be leaked
vector_append() calls vector_insert() which makes a copy
of the passed buffer, so the caller can free its buffer.
2008-03-30 17:51:51 -07:00
Mukund Sivaraman 12501d599c Fixed leaks of va_lists 2008-03-30 17:43:32 -07:00
Mukund Sivaraman bd8f8807ff Generate RPM spec file from .spec.in file 2008-03-30 17:18:58 -07:00
Mukund Sivaraman 6a6a3b0409 Added Makefile.am in packaging dirs 2008-03-30 17:12:26 -07:00
Mukund Sivaraman e6d9bb2150 Removed old RPM packaging files 2008-03-30 17:01:29 -07:00
Jeremy Hinegardner 14edbda9f0 Added Fedora packaging files 2008-03-30 16:59:11 -07:00
Mukund Sivaraman e229b36083 Moved RPM packaging dir to top-level 2008-03-30 16:48:47 -07:00
Mukund Sivaraman d9c41d4e4d Removed obsolete packaging patch file 2008-03-30 16:41:10 -07:00
Mukund Sivaraman 13cf5ae0d5 Do not allow anyone except localhost by default 2008-03-30 16:39:35 -07:00
Mukund Sivaraman d0ae798f71 Made the default group nobody 2008-03-30 16:38:44 -07:00
Mukund Sivaraman 44d91bdf6b Removed obsolete lexer/parser files 2008-03-30 16:33:08 -07:00
Andrew Stribblehill fdf7e4ea8b Added more patterns to .gitignore 2008-03-19 15:11:13 -07:00
Mukund Sivaraman b11c74637f Fixed format string warnings 2008-03-13 15:09:30 -07:00
Mukund Sivaraman fc62283164 Removed the clean target from the src directory
This was overriding the automake clean target to clean up
files like *.o by default.
2008-03-13 15:09:26 -07:00
Mukund Sivaraman 8848b647d7 Corrected datatype of salen to fix compiler warning 2008-03-13 15:09:21 -07:00
Mukund Sivaraman 0ac647ab98 Added missing ltmain.sh 2008-03-13 15:09:09 -07:00
Mukund Sivaraman 2db8c8f2d1 Added empty NEWS file that's required by autotools now 2008-03-13 15:07:47 -07:00
Mukund Sivaraman 31766cce90 Renamed file to replace underscores in it with dashes 2008-03-13 15:07:43 -07:00
Mukund Sivaraman d5472ec0bd Renamed file to replace underscores in it with dashes 2008-03-13 15:07:37 -07:00
Mukund Sivaraman 376caf8f25 Renamed .cvsignore to .gitignore 2008-03-13 15:07:29 -07:00
Mukund Sivaraman e2ef2479d8 Renamed bootstrap to autogen.sh 2008-03-13 15:07:15 -07:00
Robert James Kaes 2f5118046d Added support for UPSTREAM directive.
Included the basic grammar and handler functions for the "upstream" and
"no upstream" directives.  I still need to update the grammar to match
_all_ the possibilities documented in the tinyproxy.conf file, but at
least it now does as much as the old config parser.
2005-11-04 05:15:47 +00:00
Robert James Kaes 72e1731092 Reformatted the reverse and filter configuration blocks. If either
section is not enabled at compile time, it should not be included in the
object file.
2005-11-04 01:31:41 +00:00
Robert James Kaes ffec04c65e Fixed up whitespace formatting of the config file directives. Also
added blank lines to group related directives.
2005-11-04 00:47:07 +00:00
Robert James Kaes bed712ffa7 Added the typecheck.m4 macro file to improve type checking support in
the configure.ac script.  The various typedefs are checked in a larger
collection of locations.
2005-08-16 14:22:39 +00:00
Robert James Kaes 4c58663041 * [Refactor] Moved Reverse Proxy Code
Moved the reverse proxy code from reqs.c into it's own files
(reverse_proxy.c).  The code in reqs.c is way too complicated, so I
want to move unrelated code into their own files to simplify the main
concepts in reqs.c.
2005-08-16 04:03:19 +00:00
Robert James Kaes 808bdbd1e9 * [Indent] Fixed typedef Formatting
Added the list of tinyproxy typedefs to the indent command to have them
formatted correctly as well.
2005-08-15 18:35:09 +00:00
Robert James Kaes c0299e1868 * [Indent] Ran Source Through indent
I re-indented the source code using indent with the following options:

indent -kr -bad -bap -nut -i8 -l80 -psl -sob -ss -ncs

There are now _no_ tabs in the source files, and all indentation is
eight spaces.  Lines are 80 characters long, and the procedure type is
on it's own line.  Read the indent manual for more information about
what each option means.
2005-08-15 03:54:31 +00:00
Robert James Kaes 38f0b3a103 * Specified Correct typedef in getsock_ip()
Changed the variable type for the namelen variable to the correct
socklen_t type.  The configure script already checked for it, but for
some reason I never got around to actually using it in this function.
2005-07-12 20:34:26 +00:00
Robert James Kaes a59117c7ca * Updated Copyright Email Addresses
Updated the copyright email addresses for Robert James Kaes.  The
users.sourceforge.net address should always exist.
2005-07-12 17:39:44 +00:00
Robert James Kaes 6042483a0e Removed the proxy-* headers from the list of headers to skip. Since
tinyproxy does not prompt for any proxy information from the client, it
should not be eating the proxy headers.  They are most likely needed by
an upstream proxy.
2005-07-06 21:44:08 +00:00
Robert James Kaes 51096e2944 * [1118363] Proxy reverse order of headers
Changed the internal implementation of the hashmap to maintain the
  insert order if the same key is repeated.  The insertion is still
  constant since we keep track of the head and tail of the bucket
  chain.
2005-05-03 20:34:54 +00:00
Robert James Kaes bf172f9242 Replaced all the AC_ARG_ENABLE calls with calls to our own
TP_ARG_ENABLE macro.  Except for the transparent proxy option, all the
other options remain identical.  To enable transparent proxy support
use only --enable-transparent, rather than the old
--enable-transparent-proxy.
2004-08-24 18:43:17 +00:00
Robert James Kaes 7e91fdd975 Added config/argenable.m4 to the list of configuration files needed by
the autoconf system.
2004-08-24 18:41:18 +00:00
Robert James Kaes 7af47907be Initial checkin of the TP_ARG_ENABLE macro. This macro extends the
default AC_ARG_ENABLE macro to do better error checking of the input
values.
2004-08-24 18:40:21 +00:00
Robert James Kaes ab270dc35c Moved the autoconf/automake configuration files into the config
directory, so inform autoconf of this (the AC_CONFIG_AUX_DIR and
AC_CONFIG_MACRO_DIR macros.)

Also added a bunch of portability tests discovered by autoscan.
2004-08-24 16:41:11 +00:00
Robert James Kaes c3b2bf38e2 Moved all the autoconf/automake configuration information into the
config directory.
2004-08-24 16:39:29 +00:00
Robert James Kaes 893aed8eef Removed the "releases.txt" file from the distribution. It didn't
really add anything, so there's no point in having it.
2004-08-24 16:38:42 +00:00
Robert James Kaes 019b91c3f9 (takesig): Fixed the return type to use the autoconf defined
RETSIGTYPE.  This is portable, while simply using "void" is not.
2004-08-24 16:36:22 +00:00
Robert James Kaes c446e19003 Added code to handle HTTP/0.9 simple GET requests. 2004-08-24 16:35:27 +00:00
Robert James Kaes 79d40a536a (get_bool_arg): Moved the initialization of "p" _before_ the assert()
calls.  The code doesn't compile under gcc 2.95 otherwise.  (I'm
surprised it compiles under gcc 3.3 without a problem.)
2004-08-24 16:34:22 +00:00
Robert James Kaes 35196f7d8e Changed some of the variable types so that the code compiles cleanly
on other operating systems.  (Used cf.sourceforge.net as the test
system for cross compiling.)
2004-08-24 16:33:00 +00:00
Robert James Kaes d41260fe2d Fixed up the acl_s structure so that it compiles correctly under
gcc 2.95.
2004-08-24 16:31:45 +00:00
Robert James Kaes 337af524dd Bootstrap the autoconf system 2004-08-20 19:56:05 +00:00
Robert James Kaes 7b0f1fe562 Moved the configuration information into it's own directory to avoid
cluttering up the root directory.
2004-08-20 16:01:31 +00:00
Robert James Kaes 93fbb5ff49 Changed the calls to the config_compile() and config_parse()
functions.  Also, if the "logfile" directive is used, it will now
override use of the syslog system.  Added an error message if neither
is defined.
2004-08-14 03:21:28 +00:00
Robert James Kaes 5c02939533 (log_message): Added a fsync() call after each line outputted to the
log file.
2004-08-14 03:20:01 +00:00
Robert James Kaes c5307363be Reorganized the source code. Added the missing reverse proxy
directives.  Added a bunch of comments to clarify how the code works.
2004-08-14 03:18:41 +00:00
Robert James Kaes 9f4323a562 Removed the last code relating to the old configuration parsing
system.  The grammar.y and scanner.l files still need to be removed.
2004-08-14 00:37:51 +00:00
Robert James Kaes 52562b49df Removed the grammar.y and scanner.l files from the list of files
required by tinyproxy.
2004-08-13 21:04:24 +00:00
Robert James Kaes febb521bfd Added some error logging information for directives that are
conditionally compiled.  Still need to add info messages for the
directives.
2004-08-13 21:03:58 +00:00
Robert James Kaes 1d2e4fc2c3 Change the code to use the new config_parse() method rather than the
flex/bison based configuration system.
2004-08-13 21:03:11 +00:00
Robert James Kaes 9d04667848 Added the new configuration parsing system (conffile.c and
conffile.h.)  The new system is intended to replace the existing
grammar.y and scanner.l files.  I don't want to depend on flex/bison
any longer.
2004-08-13 20:19:50 +00:00
Robert James Kaes b3943c21f2 (check_allowed_connect_ports): By default DENY any CONNECT requests
unless explicitly allowed by a configuration directive.
2004-08-12 20:15:04 +00:00
Robert James Kaes 28dd133623 (add_xtinyproxy_header): Removed the runtime error checking of the
connptr->server_fd variable and moved it into an assert since we
should never be called with invalid data.  Also made the function an
inline function since it's only called in one place.
2004-08-12 19:57:15 +00:00
Robert James Kaes 924da17c17 Completely rewrote the ACL functionality. The new system is intended
to handle IPv6 style addresses along with the existing IPv4 and string
addresses.  In addition, the hand-rolled "list" code has been replaced
with a vector (code reuse.)  Also, the code should be a little easier
to understand (relatively speaking.)

I do need to add some kind of testing framework (in general) to check
that the new code does work with all the formats that will be thrown
at it.
2004-08-11 20:09:20 +00:00
Robert James Kaes fd4b67bbb4 (strip_username_password): Removed one of the pointer variables since
it's no longer needed.  Reorganized the function to make it more
obvious what was actually being done.
2004-08-11 02:49:05 +00:00
Robert James Kaes badc7673d0 Merged in changes from 1.6.3 2004-08-10 21:24:24 +00:00
Robert James Kaes 18df4910a4 Added the "BindSame" configure directive from Oswald Buddenhagen.
This allows tinyproxy to respond to a request bound to the same
interface that the request came in on.  As Oswald explains:

  "attached is a patch that adds the BindSame option. it causes
  binding an outgoing connection to the ip address of the respective
  incoming connection. that way one can simulate an entire proxy farm
  with a single instance of tinyproxy on a multi-homed machine."

Cool.
2004-04-27 18:53:14 +00:00
Robert James Kaes 3b961ec66b (init_stats): Fixed a memset bug, where the structure was not cleared
properly.  (The sizeof "struct stat" was being used rather than the
proper "struct stat_s".  On my system, "struct stat" is 88 bytes long,
while "struct stat_s" is 20 bytes long.  Quite a difference!)
2004-04-27 18:48:53 +00:00
Robert James Kaes 095d0d0142 These files list all the other files that CVS should ignore. It makes
looking at the CVS status information a little cleaner.
2004-04-27 18:28:45 +00:00
Robert James Kaes 5ecd9157ce Converted the various socket functions to work with both IPv4 and IPv6
addresses.
2004-02-18 20:18:53 +00:00
Robert James Kaes c21df1ea0f Added two functions:
- get_ip_string() converts a binary network address into either a
   dotted-decimal IPv4 address, or a IPv6 hex-string
 - full_inet_pton() converts a numeric character string into an IPv6
   network address (binary form).  It's like the system inet_pton()
   function, but it will work with bot IPv4 and IPv6 character
   strings.

These functions are required for the conversion to Internet protocol
independence.  (Or to put it more clearly: allow tinyproxy to work in
an IPv6 network.)
2004-02-18 20:17:18 +00:00
Robert James Kaes 02893c3489 Rewrote the "early history" of the project, and added a section for
"major" addition authors.
2004-02-17 19:49:54 +00:00
Robert James Kaes aee5a63849 Removed unnecessary casts (mostly dealing with memory allocation.) I
should never have added them in the first place.  They don't really
buy anything, and they can hide bugs.
2004-02-13 21:27:42 +00:00
Robert James Kaes bf22966f55 (strip_return_port): Patch from "alex" to strip the port from the host
string and return the port.  I cleaned up and added error handling to
the code, but it's basically "alex"'s fix.

(extract_http_url): Rewrote this function to remove all the sscanf()
calls.  It's much easier to just split on the path slash (if it's
present) and then strip the user name/password and port from the host
string.  Less code, handles more cases!
2004-02-04 19:57:40 +00:00
Robert James Kaes 47df93b8f3 # Updated change log 2004-01-26 19:19:31 +00:00
Robert James Kaes 0a8e4e4d8d Added reverse proxy support from Kim Holviala. His comments regarding
this addition follow:

  The patch implements a simple reverse proxy (with one funky extra
  feature). It has all the regular features: mapping remote servers to local
  namespace (ReversePath), disabling forward proxying (ReverseOnly) and HTTP
  redirect rewriting (ReverseBaseURL).

  The funky feature is this: You map Google to /google/ and the Google front
  page opens up fine. Type in stuff and click "Google Search" and you'll get
  an error from tinyproxy. Reason for this is that Google's form submits to
  "/search" which unfortunately bypasses our /google/ mapping (if they'd
  submit to "search" without the slash it would have worked ok). Turn on
  ReverseMagic and it starts working....

  ReverseMagic "hijacks" one cookie which it sends to the client browser.
  This cookie contains the current reverse proxy path mapping (in the above
  case /google/) so that even if the site uses absolute links the reverse
  proxy still knows where to map the request.

  And yes, it works. No, I've never seen this done before - I couldn't find
  _any_ working OSS reverse proxies, and the commercial ones I've seen try
  to parse the page and fix all links (in the above case changing "/search"
  to "/google/search"). The problem with modifying the html is that it might
  not be parsable (very common) or it might be encoded so that the proxy
  can't read it (mod_gzip or likes).

  Hope you like that patch. One caveat - I haven't coded with C in like
  three years so my code might be a bit messy.... There shouldn't be any
  security problems thou, but you never know. I did all the stuff out of my
  memory without reading any RFC's, but I tested everything with Moz, Konq,
  IE6, Links and Lynx and they all worked fine.
2004-01-26 19:11:52 +00:00
Robert James Kaes f2d846d057 Merged in changes from the 1.6.2 release. (Fixes for the filtering code
and the HTML installation script.)
2003-10-17 16:11:00 +00:00
Robert James Kaes 27d93b1f08 Merged in missing $(DESTDIR) in tinyproxy-html-files rules bug fix
from the stable branch.
2003-08-14 15:16:50 +00:00
Robert James Kaes a13ca8271e Incorporated patches from Marc Silver to improve the readability and
understandability of the documentation.
2003-08-07 16:50:55 +00:00
Robert James Kaes d2098f638f tinyproxy no longer includes a fall-back regular expression library,
so these files needed to be modified to only use the system's
installed regular expression library.
2003-08-07 16:32:12 +00:00
Robert James Kaes d72fa83245 Removed the included regular expression library, since it should come
standard on any reasonably modern system.
2003-08-07 16:29:54 +00:00
Robert James Kaes 7eb4eba381 # Merged in changes from the stable 1.6 branch. 2003-08-07 15:31:20 +00:00
Robert James Kaes 630b99334c Patch from Marc Silver to improve the readability and accuracy of the
tinyproxy man page.
2003-08-05 21:14:43 +00:00
Robert James Kaes fd23cd4aed # Fixed a comment to actually reflect what the function does. 2003-08-05 16:11:59 +00:00
Robert James Kaes 26ad896676 Added the cookie header to the documented list of headers to allow
through.
2003-08-05 16:11:06 +00:00
Robert James Kaes a117ed9cb0 Included patches from Steven Young to use the hashmap functionality to
manage the HTML error pages.  It simplifies the source, and also make
the object file smaller.  Nice.  Also added any casting from (void*)
to ensure that the code compiles using a C++ compiler.
2003-08-01 00:14:34 +00:00
Robert James Kaes 15870a9582 Added appropriate casts (void*) casts to allow the code to compile
cleanly using a C++ compiler.

Changed the servers_waiting variable to an unsigned int, since the
number of servers waiting can never be negative, and added an assert()
to ensure this invariant.
2003-07-31 23:44:52 +00:00
Robert James Kaes bc77dfb492 (debugging_realloc): Removed the assert for the NULL pointer, since
realloc() can take a NULL pointer, as defined by the realloc() man
page.

Fixed the cast in both safefree() macros to compile cleaning using a
C++ compiler.
2003-07-31 23:42:51 +00:00
Robert James Kaes 5a2af49e58 Fixed the cast in both safefree() macros to compile cleaning using a
C++ compiler.
2003-07-31 23:41:26 +00:00
Robert James Kaes 8a6a94db0a # Fixed a preprocessor test (misspelled __cplusplus) 2003-07-31 23:40:16 +00:00
Robert James Kaes 6aaa863432 Added appropriate casts from (void*) so that the code will compile
cleanly with a C++ compiler.  (Tested using GCC 3.3)
2003-07-31 23:38:28 +00:00
Robert James Kaes ab02f47a29 # Bumped up the version number because of a maintenance release (to fix
a problem with the scanner.c file.
2003-07-24 15:13:00 +00:00
Robert James Kaes 7115a37f23 # Updated ChangeLog 2003-07-14 17:45:11 +00:00
Robert James Kaes a748265b50 # Bumped up version number. 2003-07-14 17:43:26 +00:00
Robert James Kaes 7c96935552 (indicate_http_error): Added calls to va_end() before leaving the
function.
2003-07-14 17:42:43 +00:00
Robert James Kaes 09aa3d6409 # Updated the ChangeLog 2003-06-26 18:33:13 +00:00
Robert James Kaes 717be92385 # Bumped up the version number and made sure to only add the debugging
flags to flex if it really is flex.
2003-06-26 18:31:16 +00:00
Robert James Kaes a4cd3eb9ec # Removed the debugging information. 2003-06-26 18:26:10 +00:00
Robert James Kaes a8798e999b # Added debugging flags for the flex scanner. 2003-06-26 18:23:01 +00:00
Robert James Kaes 1cb032a934 (upstream_add): Rewrote the function to actually handle the various
types of upstream configurations correctly.  Hopefully, the code is
also a little clearer in it's implementation.
2003-06-26 18:19:57 +00:00
Robert James Kaes 988f243286 # Removed the STRING_ADDRESS token since it was conflicting with the
IDENTIFIER directive and also the keyword directives.
2003-06-26 18:17:09 +00:00
Robert James Kaes db142b6e23 Modified the patterns to allow the new upstream directives to work as
defined in the tinyproxy.conf documentation.
2003-06-26 18:16:09 +00:00
Robert James Kaes 2736a19518 (debugging_free): Rather than assert on a NULL pointer, log the NULL
pointer and return.
2003-06-26 18:14:13 +00:00
Robert James Kaes 93ac7d8824 # Bumped up the version number. 2003-06-25 18:23:11 +00:00
Robert James Kaes 61a6ca82db # Updated the changelog 2003-06-25 18:22:37 +00:00
Robert James Kaes ddcac5ae09 Added a test to define INADDR_NONE if it's not present. For example,
SunOS (solaris 2.8) does not include this define.  [Thank to Ben
Hartshorne for pointing this out.]
2003-06-25 18:20:22 +00:00
Robert James Kaes d2f5f5c564 Changed the calls to "ps" and "grep" to use a more portable syntax. 2003-06-25 18:18:19 +00:00
Robert James Kaes 66fc80e922 # Bumped up the version number. 2003-06-23 21:15:04 +00:00
Robert James Kaes 8b8d3b1477 # Added a bit more description to describe where to look for the error
HTML files.  In the future the installation script should modify the
  tinyproxy.conf file.
2003-06-23 21:14:32 +00:00
Robert James Kaes 5ba1325ef5 # Updated ChangeLog 2003-06-20 18:01:26 +00:00
Robert James Kaes 4c9141aac6 Removed the "ViaHeader" directive and replaced it with the
"ViaProxyName" directive.  The "Via" HTTP header is _required_ by the
HTTP spec, so the code has been changed to always send the header.
However, including the proxy's host name could be considered a
security threat, so the "ViaProxyName" directive is used to set the
token sent in the "Via" header.  If the directive is not enabled the
proxy's host name will be used.
2003-06-20 17:02:13 +00:00
Robert James Kaes 0d3962f1f0 # Removed the HTML error suggestion since it's been implemented with
Steven Young's patches.  Added a suggestion for user authentication.
2003-06-19 16:45:58 +00:00
Robert James Kaes b081019d5a (connect_to_upstream): Fixed an off-by-one error in the snprintf()
call used to build the URL for the upstream proxy. [Patch suggested by
David T. Pierso]
2003-06-06 16:14:50 +00:00
Robert James Kaes c2240df616 Remove the -O2 optimization if debugging is enabled. Also, remove the
-g option if the code does _not_ have debugging enabled.
2003-06-02 21:57:14 +00:00
Robert James Kaes 7f8e4647f7 Included additional examples of how to configure the upstream proxy
support for more selective proxying.
2003-06-02 21:56:00 +00:00
Robert James Kaes 91e082671a (upstream_get):
(upstream_add): Added support to allow ip addresses and networks to be
used when matching an upstream proxy directive.
[Code by Peter da Silva]
2003-06-02 21:55:14 +00:00
Robert James Kaes ea50171a95 Changed the safefree() macro to make it safe to use a conditional
statement, and also safe to use with a rvalue that has a side
effect.  [Bug fix recommended by Peter da Silva]
2003-05-31 23:04:15 +00:00
Robert James Kaes 77ca1c8ce0 # Changed all the for calls to use the != test rather than < test.
The change was recommended in the C/C++ User Journal magazine.
2003-05-31 23:02:21 +00:00
Robert James Kaes 86c9d69086 # Updated ChangeLog 2003-05-30 16:27:57 +00:00
Robert James Kaes 983a76ecef # Bumped up the version number 2003-05-30 16:25:41 +00:00
Robert James Kaes af5e1e29f6 # Changed the calls to vector_getentry() to use the new calling
convention.
2003-05-30 16:22:30 +00:00
Robert James Kaes 1955dcd47b (vector_getentry): Changed the API to return the data pointer and have
the length returned in a argument variable pointer.  This should be a
more natural way of using the function.
2003-05-30 16:21:48 +00:00
Robert James Kaes c3eaebd1c5 # Added a vector_prepend() function and recoded the old vector_insert()
to be a general "insert" for both vector_append() and vector_prepend()
2003-05-29 21:07:22 +00:00
Robert James Kaes 8ab278998f # Renamed the vector_insert() calls to vector_append() 2003-05-29 20:48:25 +00:00
Robert James Kaes 42f9f37afc (vector_append): Renamed the vector_insert() function to more
accurately indicate that entries are appended to the end of the
vector.
2003-05-29 20:47:52 +00:00
Robert James Kaes 4a377a712d Improved the upstream proxy support by making the upstream proxy
server configurable based on the destination host.  [Code written by
Peter da Silva]
2003-05-29 19:44:00 +00:00
Robert James Kaes 2e9f27769d Added support for installing the HTML error files used by tinyproxy. 2003-05-10 23:16:45 +00:00
Robert James Kaes 5e1303ecd1 (establish_http_connection): If the port being requested is not a
standard HTTP port (80 or 443) append the port string to the host
header; otherwise, leave the host string with only the host's domain
name.

Replaced all occurrences of constant 80 and 443 with defines HTTP_PORT
and HTTP_PORT_SSL.
2003-05-05 16:46:05 +00:00
Robert James Kaes ac88af1f71 Fixed a bug that would kill a child process because of an invalid
safefree() call.  Basically, destroy_conn() was trying to free memory
not allocated by malloc.  [Fix by David T. Pierson]
2003-05-04 04:35:10 +00:00
Robert James Kaes 65115c75c8 # Updated change log 2003-04-16 18:14:16 +00:00
Robert James Kaes 4a66257e65 # Updated version number 2003-04-16 18:12:45 +00:00
Robert James Kaes c94bfa8223 (build_url): Rebuild the URL from the component pieces. This function
is used by the transparent proxy code.  [Anatole Shaw]
(process_request): Fixed up the transparent proxy code so that
filtering can be done on the whole URL.  [Anatole Shaw]

(pull_client_data): Added a bug fix for Internet Explorer (IE).  IE
will leave an extra CR and LF after the data in an HTTP POST.  The new
code will eat the extra bytes if they're present.  Thanks to Yannick
Koehler for finding the bug and offering an explanation as to why it
was happening.

Changed all calls of connptr->remote_content_length to
connptr->content_length.server
2003-04-16 18:11:58 +00:00
Robert James Kaes 648e8f1438 # Changed it again to this time use the TINYPROXY_DEBUG environment
variable to determine whether to wait for a connection from GDB.
2003-04-16 18:04:58 +00:00
Robert James Kaes 4a942bc59a # The programmer is now made to _explicitly_ enable the GDB support in
the child handling function.
2003-04-16 16:39:23 +00:00
Robert James Kaes 6ff4192069 Removed the remote_content_length field in the "conn" structure and
replaced it with a smaller structure containing both the remote/server
and the local/client content-length fields if they're present in the
HTTP response headers.
2003-04-16 16:37:59 +00:00
Robert James Kaes acece1ee67 # Updated change log (should have done this _before_ the tagging of course.) 2003-04-01 16:56:41 +00:00
Robert James Kaes 82ce7176f7 Removed duplicate header tests. 2003-04-01 16:50:41 +00:00
Robert James Kaes 5f8a497f0c Reorganized some of the code, and remove some function tests for which
results were never used.
2003-04-01 16:46:45 +00:00
Robert James Kaes bcf25dc67e (add_error_variable): Test whether connptr->error_variable is NULL,
and if so call safemalloc().  This is needed since saferealloc() will
assert() if the first argument is a NULL pointer.
2003-04-01 16:41:33 +00:00
Robert James Kaes 7cd19206cc (establish_http_connection): Always include the port number for the
requested server.  This fixes a problem when the server is not
listening on the default port, 80.
[Fix suggested by duncan@sapio.co.uk]
2003-03-26 16:47:30 +00:00
Robert James Kaes 63a7914830 # Moved the location of the "initializing" log message to below the
processing of the command line options.
2003-03-17 04:24:19 +00:00
Robert James Kaes 89ede8cd28 Create the doc/report.sh script from the new template file. 2003-03-17 04:21:11 +00:00
Robert James Kaes 232aea721c Moved the doc/report.sh script to doc/report.sh.tmpl file. The script
is then updated by the make procedure to reflect the correct location
of the tinyproxy executable.
2003-03-17 04:20:19 +00:00
Robert James Kaes d2c9ffac23 Made get_html_file() and lookup_variable() static functions since they
are only used with this file.
2003-03-14 22:49:03 +00:00
Robert James Kaes 5faa0879ec # Added copyright notices for Steve. Reformatted the source code to
better match the existing tinyproxy practise.  Included a few bug
  fixes from Steve.
2003-03-14 22:45:59 +00:00
Robert James Kaes cc90414b29 (send_http_message): Changed the function to use the new http_message
API.
2003-03-14 06:15:27 +00:00
Robert James Kaes c76183a3f0 # Updated all the calls to indicate_http_error() to include a
terminating NULL.  The va_arg() function requires it to work
  properly.
2003-03-14 06:13:04 +00:00
Robert James Kaes aff52c552e # Include the HTML variable substitution documentation files with the
tarball.
2003-03-13 22:38:09 +00:00
Robert James Kaes 1763373f29 # Updated ChangeLog with Steven Young's log of changes to include the
variable substitution code.
2003-03-13 22:03:24 +00:00
Robert James Kaes 75dd0b22c4 Allow the URL for the statistic page to be controlled from the
configuration file, rather than being hard-coded in the program.
[John M Wright]
2003-03-13 21:42:46 +00:00
Robert James Kaes fa1480a3e1 Include example information for the new "file" directives (ErrorFile,
DefaultErrorFile, StatFile.)  [Steven Young]
2003-03-13 21:38:00 +00:00
Robert James Kaes 78c1ed384a # Added default HTML files for HTTP error messages and the stats
page. [Steven Young]
2003-03-13 21:35:58 +00:00
Robert James Kaes a46bfdc2e0 Moved the send_http_error_message() and indicate_http_error()
functions into the htmlerror.c file, and recoded them to use the new
variable substitution system. [Steven Young]
2003-03-13 21:34:38 +00:00
Robert James Kaes badd237fe6 # Added variables to config structure to keep track of the files to be
displayed for various HTTP errors and the stats page. [Steven Young]
2003-03-13 21:32:33 +00:00
Robert James Kaes b06f26cba1 # Changed showstats() to use the HTML variable functions when
possible.  It still retains the hard-coded page for when an HTML file
  is not available. [Steven Young]
2003-03-13 21:31:03 +00:00
Robert James Kaes cb8aaf521e # Changed calls to indicate_http_error() to use the new HTML variable
substitution mechanism. [Steven Young]
2003-03-13 21:29:45 +00:00
Robert James Kaes 7995027c8c # Added parser support for the error file configuration keywords
(ErrorFile, DefaultErrorFile, StatFile) [Steven Young]
2003-03-13 21:28:37 +00:00
Robert James Kaes 056bbf84bd # Added variables to keep track of the variables to be substituted in
.html files displayed to the client [Steven Young]
2003-03-13 21:27:29 +00:00
Robert James Kaes a830af5097 # Steve Young's code to implement file based HTML error messages,
rather than the hard coded string.
2003-03-13 21:25:06 +00:00
Robert James Kaes d28d9fb195 # Added htmlerror.c and htmlerror.h 2003-03-13 21:23:01 +00:00
Robert James Kaes 2057ffdb50 # Changed the wording of the header comment to remove the reference to
"dnsserver"
2003-03-13 19:31:09 +00:00
Robert James Kaes 99ec965544 # (child_main): If this is a debugging build output the child process
ID and wait for 10 seconds so we have time to connect gdb to the
  child.  This is needed if we want to use gdb against the child
  process.
2003-03-13 19:30:19 +00:00
Robert James Kaes 0a3a1d7c71 Fixed up the include order for the <sys/time.h> and <time.h> headers. 2003-03-13 16:56:28 +00:00
Robert James Kaes e04ff12768 # Include the http_message.[ch] into the compiled tinyproxy object. 2003-03-13 05:28:46 +00:00
Robert James Kaes 686826c3b0 An API to handle HTTP messages as concrete entities. 2003-03-13 05:25:30 +00:00
Robert James Kaes 2f9370afe7 (chomp): Fixed up the code to prevent negative array access. Added
code to make sure the supplied arguments are valid.
2003-03-13 05:20:06 +00:00
Robert James Kaes d98e5352c2 # Updated ChangeLog 2003-03-10 20:15:43 +00:00
Robert James Kaes 146998ee2b # Bumped up the version number and added AC_PROG_LIBTOOL to the list
of programs searched for by configure.  This is needed since libtool
  is now a separate program from automake.
2003-03-10 20:07:55 +00:00
Robert James Kaes 069700db50 # Added support for including source packaging files 2003-03-10 20:04:52 +00:00
Robert James Kaes dbe4a508c8 Added the files required for creating tinyproxy RPMs for Redhat based
systems.
2003-03-08 20:03:37 +00:00
Robert James Kaes 20d3008c38 (main): Removed duplicate code calling the filter_destroy() function.
Once is enough.  [Detected by John M Wright]
2003-02-26 22:37:38 +00:00
Robert James Kaes 1155be1c15 # Fixed up some formatting to make sure the line is less than 80
characters long
2003-02-21 17:09:24 +00:00
Robert James Kaes 40c4d3c57a # (connect_to_upstream): Improved the preprocessor directives to make
sure the function would compile cleanly regardless of how the
  directive was set.
2003-01-28 21:21:55 +00:00
Robert James Kaes 8f43cd72ad # Updated changelog 2003-01-27 18:52:24 +00:00
Robert James Kaes 2f98fec1aa # Style clean up. 2003-01-27 18:45:25 +00:00
Robert James Kaes abbf826445 (display_usage): Removed the output line mentioning that regular
expression support was included.  It will be there always.
2003-01-27 18:44:43 +00:00
Robert James Kaes 2fc9c76969 (connect_to_upstream): Reorganized the preprocessor directives to make
sure the function's symbol name is stored, even if upstream was not
compiled it.  This should keep some compilers from reporting errors.
2003-01-27 18:42:18 +00:00
Robert James Kaes cb7e3eef04 Added support for conditionally using case sensitive filtering files.
Code changes from James E. Flemer.
2003-01-27 17:57:45 +00:00
Robert James Kaes 1624979f13 Moved the AH_TEMPLATE() macro for the GNU regex library to out from
inside an if...fi test.  Thanks to James E. Flemer for supplying a
patch.

Bumped up the version number.
2003-01-27 17:48:26 +00:00
Robert James Kaes ba02bd7567 # Grammar fix up. Thanks to James E. Flemer for pointing it out. 2003-01-27 17:42:50 +00:00
Robert James Kaes c33d934a59 Changed the default manual section to section 8 (administrator
commands).
2003-01-27 17:41:52 +00:00
Robert James Kaes 212abd64d7 (process_client_headers): Fixed inverted anonymous header logic. Fix
comes from the FreeBSD port through James E. Flemer.
2003-01-27 17:39:02 +00:00
Robert James Kaes 90ca9c36ff # Added the 1.5.2 release change log 2003-01-22 19:48:04 +00:00
Robert James Kaes fbcff969d1 # Bumped up version number to 1.5.2 2003-01-22 19:46:06 +00:00
Robert James Kaes ce71e18f4d # Updated the change log 2002-12-04 17:42:41 +00:00
Robert James Kaes 59ec5dc69f (strip_username_password): New function to remove any
username/password part from the host URI.

(extract_http_url), (extract_ssl_url): Use the new
strip_username_password function to remove any non-host information
from the URI.
2002-12-04 17:36:48 +00:00
Robert James Kaes 0a20bdd5b4 Removed the "bool_t" type since it conflicts with the newer C standards.
The type was just replaced by "unsigned int" types.
2002-12-04 17:06:14 +00:00
Robert James Kaes 02d7474a09 # Updated change log with the latest changes 2002-11-29 20:42:24 +00:00
Robert James Kaes d069b4fce9 (extract_http_url): Removed the leading "http://" from all the tests,
since it's skipped by the caller before the URL is passed to this
function.

(process_request): Include code to handle proxy FTP requests as
well.  This also lead to a bit of a cleanup in the calling conventions
of extract_http_url function.  tinyproxy can handle both types of
resources by skipping the leading :// part.
2002-11-29 19:25:59 +00:00
Robert James Kaes 05b16a78db # Bumped up the version number 2002-11-26 21:45:28 +00:00
Robert James Kaes e58343012f Included code to disable the sending of the Via header. This is now
controlled by the ViaHeader configure directive.
2002-11-26 21:44:43 +00:00
Robert James Kaes c826b18437 (child_main): Cleaned up the notice string to be more clear why a
child is being closed.
2002-11-21 21:54:09 +00:00
Robert James Kaes 22df8c29e4 (main): Check to see if the PID file was created successfully, and if
not report this to the user and close the program.
2002-11-21 21:52:59 +00:00
Robert James Kaes 48df7d401c # Changed the return type for pidfile_create() to int from void. 2002-11-21 21:52:03 +00:00
Robert James Kaes 820832a647 (create_file_safely): Rather than exiting the program if there is an
error, a negative "error code" is returned to the program.  The
various callers then need to decide what to do.

(pidfile_create): Returns an error status depending on whether the PID
file was created successfully.
2002-11-21 21:51:34 +00:00
Robert James Kaes 6610ad0a1b Removed the documentation for the tunnel option since it's no longer
part of the code.
2002-11-13 17:52:18 +00:00
Robert James Kaes a6705159a5 # Updated the changelog file to include all the changes since 1.5.1 2002-11-13 17:51:19 +00:00
Robert James Kaes d40a4e8af7 (relay_connection): Shutdown the client socket for writing once all
the data has been sent.
2002-11-13 17:48:48 +00:00
Robert James Kaes a1e24ac839 (destroy_conn): Added code to log any error messages when the sockets
are closed.
2002-11-13 17:47:40 +00:00
Robert James Kaes cf138d7479 # Updated the version number to 1.5.2rc1 2002-11-13 17:23:46 +00:00
Robert James Kaes c1fbee04ce Removed the example for the Tunnel directive since it's been removed. 2002-11-05 05:31:05 +00:00
Robert James Kaes 3b2be8ae88 Removed all the code supporting the TCP tunnelling feature of
tinyproxy.  There is really no need for this code, since there are
perfectly good programs out there (like rinetd) which are designed for
TCP tunnelling.  tinyproxy should be a good HTTP proxy, nothing more,
and nothing less; therefore, the tunnelling code is gone.
2002-11-03 17:10:33 +00:00
Robert James Kaes 69be2b84d7 (relay_connection): Ivan pointed out a bug with the code to send any
remaining data to the server when the connections are being closed.
It was a one line fix.
2002-10-17 19:27:08 +00:00
Robert James Kaes 1d39f204ca Fixed up the storing and sending of the internal tinyproxy logs prior
to when the log file is created.  Also, the log file is created with
the proper owner permissions.
2002-10-03 20:53:11 +00:00
Robert James Kaes 745c40650b #Style formatting change. 2002-10-03 20:50:59 +00:00
Robert James Kaes 942f22989a The internal log structure now uses a vector rather than a hash. This
change was required to actually display all the logs in the correct
order.  Also, all log lines are stored internally while tinyproxy is
starting.  At the appropriate point all the logs are written to the
log file.
2002-10-03 20:49:57 +00:00
Robert James Kaes 7fd291f407 Filtering is now case insensitive. 2002-10-03 20:40:39 +00:00
Robert James Kaes 2b44dbd7e4 #(makedaemon): Commented out the closing of the standard file
descriptors since we need them to display error messages.
2002-10-03 20:38:06 +00:00
Robert James Kaes ac881909bf (child_main): Check to make sure memory could be allocated to handle
the child request.
(child_main_loop): Added a call to truncate_log_file() when the log
file is to be rotated.
2002-10-03 20:33:09 +00:00
Robert James Kaes ef0656db3e # Added the release not to the changelog 2002-08-09 20:30:16 +00:00
Robert James Kaes e30971a76c # Updated the version number to be 1.5.1 2002-08-09 20:28:16 +00:00
Robert James Kaes f8b5fe53e7 (main): Fixed up a bug reported by Oswald Buddenha where the log file was being initially created with the initial user's permissions, which is obviously a problem if tinyproxy is not running as the initial user. This is now fixed by delaying the creation of the log file until _after_ tinyproxy has been switched to the user it will run as. Confused yet? 2002-07-12 17:02:02 +00:00
Robert James Kaes 632f689209 # Bumped up the version number (rc4) 2002-07-11 18:47:00 +00:00
Robert James Kaes 8a95d10be2 # Updated the ChangeLog 2002-07-11 18:46:34 +00:00
Robert James Kaes ab574cbec0 (create_file_safely):
(pidfile_create): Changed all the error logging to write to standard error and then exit the program.  This will prevent segmentation fault problems from occurring because the log file could not be created properly.
2002-07-09 19:02:57 +00:00
Robert James Kaes 4932b87fc9 (malloc_shared_memory): Changed the static character array to include the ".XXXXXX" string already. This saves one system call when creating a temporary file name. 2002-07-09 18:52:32 +00:00
Robert James Kaes 01d2966cb8 Updated the "Support" section to include a link to the tinyproxy Bug Tracker system hosted by SourceForge. 2002-07-08 20:10:42 +00:00
Robert James Kaes bf0709cd98 Removed the -D_REENTRANT C flag since tinyproxy is no longer a multi-threaded program. 2002-07-05 03:55:27 +00:00
Robert James Kaes 96c5ee9065 Updated the ChangeLog. 2002-06-27 16:30:53 +00:00
Robert James Kaes dad3bb043a Updated the version number. 2002-06-27 16:30:38 +00:00
Robert James Kaes e50d0c4072 (child_make): Reset the various signals to the default signal handler so that the children can be properly destroyed. 2002-06-27 16:29:21 +00:00
Robert James Kaes 0a1885deb0 Updated the ChangeLog 2002-06-18 20:10:23 +00:00
Robert James Kaes cae69592be Updated the version number. 2002-06-18 20:08:36 +00:00
Robert James Kaes f0d7992765 (log_message): Changed the code so that the log is opened, written, and closed whenever a message is submitted. This allows the log file to be moved away, for example a rotating the log, and yet still have the information written to the correct file name by all the children. 2002-06-15 17:37:11 +00:00
Robert James Kaes ac5d67c11a Renamed the "log_rotation_request" boolean to "received_sighup".
(main): Removed the log file creation code because it has been moved into the log.c file.  Also, removed the explicit fclose() for the log file since it will be close when the program has exited.
2002-06-15 17:35:03 +00:00
Robert James Kaes 8a9db93977 (child_main_loop): Moved the filter re-initiation code into the loop. This code is activated whenever the SIGHUP signal is received. 2002-06-15 17:31:31 +00:00
Robert James Kaes fb688a2077 Removed the "logf" FILE structure from the config structure, and also renamed the "log_rotation_request" boolean to "received_sighup". 2002-06-15 17:29:59 +00:00
Robert James Kaes 2f84b170a6 Removed the rotate_log_files() function since I'm moving to an Apache style where the _user_ needs to move the log file themselves, and tinyproxy will continue to write to the original name. This allows more flexibility for users to determine their own log rotation scheme. 2002-06-15 17:28:19 +00:00
Robert James Kaes 1f2fe53c4b Added myself to the copyright since I've made a bunch of changes to this file. 2002-06-07 19:10:05 +00:00
Robert James Kaes 1c97f7224e Added the --enable-transparent-proxy switch to the list of supported switches. 2002-06-07 18:51:34 +00:00
Robert James Kaes 5a94b8e90d Updated the ChangeLog 2002-06-07 18:48:23 +00:00
Robert James Kaes d2de74a205 Increased the version number. 2002-06-07 18:45:58 +00:00
Robert James Kaes 7e1de2012c Added code to handle the "FilterDefaultDeny" directive. The filter_set_default_policy() function is used to select the default policy (either default allow or default deny) for the filtering code. Also, the two filtering functions now support the policy code. 2002-06-07 18:36:22 +00:00
Robert James Kaes ff56e32e8e Added the "FilterDefaultDeny" directive to allow the user to select whether the default policy of the filter is to allow everything which isn't denied, or to deny everything which isn't allowed. 2002-06-07 18:29:41 +00:00
Robert James Kaes f47685c861 A bunch of changes from Petr Lampa that add transparent proxy support to tinyproxy. The additional code is in process_request(), but Petr also had to change around some of the other functions (like process_client_headers and handle_connection.) Note: Right now this code has not been tested, but it is believed to work. To enable run ./configure --enable-transparent-proxy 2002-06-06 20:32:30 +00:00
Robert James Kaes 0242d89877 (filter_domain): Removed code which stripped of a port number from the host name. The "host" variable will _always_ be just the name by the time filter_domain() is called. 2002-06-06 20:30:04 +00:00
Robert James Kaes 06d38ce529 (display_usage): Added a message indicating whether transparent proxy support has been compiled in. 2002-06-06 20:28:02 +00:00
Robert James Kaes 51bbed6f76 Added the "--enable-transparent-proxy" flag and moved the AH_TEMPLATE() macros to _outside_ the "if" tests. 2002-06-06 20:27:01 +00:00
Robert James Kaes a72fc7ad09 Added a warning message to the Bind directive stating that it will be ignored if "transparent proxy" has been compiled into tinyproxy. 2002-06-06 20:26:13 +00:00
Robert James Kaes 2b5a3625bc (send_stored_logs): Actually included the code to output the stored logs. Plus, there was a bug with how I was calling the hashmap_is_end() function. This has now been fixed. 2002-06-06 20:24:21 +00:00
Robert James Kaes dfb83160f0 Updated ChangeLog 2002-06-05 17:24:40 +00:00
Robert James Kaes 38b2f73004 Bumped up the version number. 2002-06-05 17:06:05 +00:00
Robert James Kaes 22ffd04926 Added the "filter-howto.txt" file to the distribution. 2002-06-05 17:05:18 +00:00
Robert James Kaes 9eeaf260eb Added a short filtering HOWTO document from Patrick L. McGillan. 2002-06-05 17:04:12 +00:00
Robert James Kaes e440dee245 (child_main): Added a DEBUG call to let me know which process has accepted a connection. This is needed for debugging using "gdb". 2002-06-05 17:02:15 +00:00
Robert James Kaes 89dee022e5 (malloc_shared_memory): Removed the assert() call for shared_file since it's now a static variable. 2002-06-05 17:01:09 +00:00
Robert James Kaes b697ebf16b (acl_string_processing): Moved the string processing code out of check_acl() and into it's own function because it now does two (2) tests. If the ACL string is a complete host name, in other words doesn't start with a period, than a reverse DNS look-up is done on the host name and compared to the IP address of the client; otherwise, the normal text string comparison is done.
(check_acl): Moved the string text out of the function and removed some logging code by jumping to the "Deny" code at the end of the function.
2002-06-05 16:59:21 +00:00
Robert James Kaes 5e74b6e011 Updated the ChangeLog 2002-05-31 18:29:39 +00:00
Robert James Kaes 02f3bdf5ff Added a boolean "truncate_file" flag for the create_file_safely() function. 2002-05-31 18:27:13 +00:00
Robert James Kaes 833186b7be (create_file_safely): Added the "truncate_file" boolean flag. This is needed since I use this function for both the log file and the pid file, and they behave differently when tinyproxy is started.
(pidfile_create): Call create_file_safely() with a TRUE "truncate_file" flag so that the file is emptied whenever the pid file is needed.
2002-05-31 18:26:30 +00:00
Robert James Kaes e340b3371b The log file is now opened in "append" mode so that you can restart tinyproxy without losing the log file. 2002-05-31 18:24:36 +00:00
Robert James Kaes 65d8f175b4 Updated the version number. 2002-05-31 18:09:51 +00:00
Robert James Kaes 26a983b467 (process_server_headers): Since we're stripping off the carriage return and newline, we need to add them back on when sending the response header to the client. 2002-05-31 18:09:09 +00:00
Robert James Kaes f548ce72b2 (getpeer_information): Fixed a problem retrieving the FQDN of a host because I was passing in an incorrect parameter to gethostbyaddr(). D'oh. 2002-05-31 18:08:01 +00:00
Robert James Kaes f3989e64cf Updated the ChangeLog for the 1.5.1pre3 release. 2002-05-29 20:57:25 +00:00
Robert James Kaes e8de8a2e8e Updated the version number. 2002-05-29 20:55:47 +00:00
Robert James Kaes 12fc92828c (malloc_shared_memory): Removed the MMAP_ANON and open("/dev/zero") since they are not portable across a while enough spectrum of machines. Right now tinyproxy is using a "classic" temporary file method of sharing memory. This will likely be improved in the future. 2002-05-29 20:51:35 +00:00
Robert James Kaes 360deb4568 Changed the tests on the return value from malloc_shared_memory() to make tinyproxy more portable, since we can't be certain that "if (!ret_value)" would actually detect a mmap() error. 2002-05-29 20:49:55 +00:00
Robert James Kaes de782144bd Bumped up the version number. 2002-05-29 18:15:40 +00:00
Robert James Kaes 0ef46467ad Updated ChangeLog for the 1.5.1pre2 release. 2002-05-29 18:15:08 +00:00
Robert James Kaes 9b13e9bda8 (add_header_to_connection): Removed the "double_cgi" boolean, since tinyproxy now ignores all the headers after a "double CGI" situation has occurred.
(get_all_headers): Instead of dropping duplicate headers when the "double CGI" situation occurs, tinyproxy will now drop _all_ the headers from the "inner" HTTP response.
2002-05-29 18:11:57 +00:00
Robert James Kaes 5fcb8553da (init_stats): Fixed a spelling mistake where the number of bytes being allocated was incorrect. 2002-05-29 17:31:01 +00:00
Robert James Kaes e7fcb5fc7d (add_header_to_connection): Added a boolean to indicate that a "Double CGI" situation is in affect. This is needed to solve a problem with some sites (like cgi.ebay.com) where they are sending two HTTP response lines (and associated headers) with a response.
(get_all_headers): Detect if a "Double CGI" situation has occured.
2002-05-28 20:40:01 +00:00
Robert James Kaes cf2bd809fb (get_all_headers): Added code to ignore a "response" line in a header. This was pointed out as being a problem with eBay (cgi.ebay.com)
(process_server_headers): Added code to make skip blank lines before a response line.
2002-05-28 04:53:33 +00:00
Robert James Kaes 00bf9b0346 Fixed up a problem where the tinyproxy manual page was not getting included with the distribution. 2002-05-27 15:19:34 +00:00
Robert James Kaes 36d712dc64 Updated the ChangeLog to include new changes to various files. 2002-05-27 03:06:45 +00:00
Robert James Kaes c2712cb0bb Reformated the ChangeLog. 2002-05-27 02:01:06 +00:00
Robert James Kaes 4ce9674365 (process_request): Changed the filtering code around to handle both domains and URLs. 2002-05-27 02:00:22 +00:00
Robert James Kaes 35d3d79e92 Added into the config structure the filter_urls and filter_extended flags. 2002-05-27 01:59:28 +00:00
Robert James Kaes d64dfc5d77 Some spelling fixes. 2002-05-27 01:58:41 +00:00
Robert James Kaes 83a1a32f2a (opensock): Changed a comment around to better state what the code is actually doing. 2002-05-27 01:57:48 +00:00
Robert James Kaes b11015c2e1 Added a copyright for James E. Flemer since these are his changes.
(filter_init): Added code to handle both host and URLs.  Also include code to use extended regular expressions.
(filter_domain): The old filter_url function has been renamed filter_domain().
(filter_url): This function now actually filters complete URLs.
2002-05-27 01:56:22 +00:00
Robert James Kaes 026c7d9a3d Added support for the "FilterURLs" and "FilterExtended" directives.
These directives were submitted by James Flemer for use with the new
filtering code.
2002-05-27 01:52:44 +00:00
Robert James Kaes 4ba42369b9 Changes to tinyproxy relating to signals and the copyright dates. 2002-05-27 00:51:29 +00:00
Robert James Kaes df3d88ed4e Updated the version number (pre 1) 2002-05-27 00:49:06 +00:00
Robert James Kaes 514182a05f (display_license): Updated the copyright dates
(main): Moved the signals around so that the appropriate signal is assigned to either the children or just the parrent process.
Updated the copyright on the file.
2002-05-27 00:46:24 +00:00
Robert James Kaes 8506b4ba33 Updated the ChangeLog. This was pulled from the CVS logs using Emacs.
First time I've done this, but it seemed to work pretty well.
2002-05-26 19:07:04 +00:00
Robert James Kaes a892febac3 Removed the "DNSserver" directives since they're no longer needed. 2002-05-26 18:59:10 +00:00
Robert James Kaes 9c28c7dfe2 Removed the pthread related tests and added a test for the sys/mman.h
header (needed for shared memory.)
2002-05-26 18:58:19 +00:00
Robert James Kaes 9910c06bd2 Removed the "dnsserver" program all together, and changed the names of
some of the files.
2002-05-26 18:56:43 +00:00
Robert James Kaes 2e6ab58f37 Added the malloc_shared_memory() and calloc_shared_memory() function to
allow the use of shared memory between all the children.
2002-05-26 18:56:06 +00:00
Robert James Kaes 63f481c61a Spelling changes (from thread to child.) 2002-05-26 18:55:19 +00:00
Robert James Kaes 6cc0dce1b4 Removed the directives for the old DNSserver process. 2002-05-26 18:54:27 +00:00
Robert James Kaes 49b21c7e2f The stats structure has been moved into a shared memory block since it
needs to be shared by all the children.
2002-05-26 18:53:14 +00:00
Robert James Kaes a67fb30bdf Removed all the code relating to the DNS API (dnsclient.h) as it's no
longer needed with the new pre-forked model.
2002-05-26 18:52:23 +00:00
Robert James Kaes 523f2003fa Removed the DNS API calls and replaced them with the standard
gethostbyname() and gethostbyaddr() functions.  This is possible
because tinyproxy now uses a standard pre-forked() method.
2002-05-26 18:51:17 +00:00
Robert James Kaes 71046cd407 Removed the "pthread" related includes. 2002-05-26 18:49:19 +00:00
Robert James Kaes c35e56ae66 No longer using a threading model; so these files have been replaced by
the child.c/child.h files (which use a pre-forked model.)
2002-05-26 18:48:32 +00:00
Robert James Kaes 1fda8899b1 I didn't like the DNS co-process design so I changed tinyproxy from a
threading model to a standard pre-forked model.  This means I don't need
the DNS co-process files.  Gone.
2002-05-26 18:47:11 +00:00
Robert James Kaes b3e657a00e Changed from using a threading model to a standard pre-forked model.
Therefore the thread.c file has been removed and this file replaces it.
These files are really just the thread.c and thread.h files with all the
threading stuff replaced with fork() code.  Most of the code is identical.
2002-05-26 18:45:26 +00:00
Robert James Kaes 391a408eee Fixed a tonne of spelling mistakes. 2002-05-24 04:45:32 +00:00
Robert James Kaes a34db10d65 Fixed some spelling mistakes, and removed the getpeer_ip() and
getpeer_string() functions as they've been replaced by the
getpeer_information() function.
2002-05-24 04:44:36 +00:00
Robert James Kaes e55c4263a8 Added the "DNSserverLocation" and "DNSserverSocket" directives
(including their comments.)  These directives are _required_ by the
dnsserver DNS resolver.
2002-05-23 21:32:54 +00:00
Robert James Kaes e7b9b558e9 Moved the AC_SUBST macros all together at the end of the file. 2002-05-23 18:29:34 +00:00
Robert James Kaes 196d86fdcf A whole list of changes relating to the new "dnsserver" process and the
reorganization of the source files.
2002-05-23 18:29:00 +00:00
Robert James Kaes b77fc5c860 Moved most of the function into separate files: the heap debugging
functions are in "heap.c"; the daemon functions are in "daemon.c"; and,
the string/text functions are in "text.c".
2002-05-23 18:28:12 +00:00
Robert James Kaes 52c15029d1 Moved all the system header includes into the common.h file. 2002-05-23 18:27:19 +00:00
Robert James Kaes 16386fbb70 Added a new signal handler to handle SIGCHLD signals because of the new
dnsserver child process.

Changed the set signal calls to use our new set_signal_handler() function.

Added code to start the "dnsserver" child process.
2002-05-23 18:27:01 +00:00
Robert James Kaes 478030c6ff Changed the lookup_domain() function to use the new "dnsserver" API.
Also moved safe_write(), safe_read(), readline(), and write_message()
functions into their own file.
2002-05-23 18:25:55 +00:00
Robert James Kaes 47ab97a347 Fixed up a spelling mistake and changed various bits of code to take
advantage of the fact that the peer's socket information is now stored
inside the connection structure.
2002-05-23 18:24:46 +00:00
Robert James Kaes 1f9085cef2 Added the "DNSserverLocation" and "DNSserverSocket" directives for use
with the "dnsserver" resolver.
2002-05-23 18:24:02 +00:00
Robert James Kaes 09b1b9b925 Added the peer's socket information to the connection structure. The
information is passed along during the initialization of the structure.
2002-05-23 18:23:29 +00:00
Robert James Kaes 9d0c65ad86 Fixed up the header includes for the new layout.
Changed one line of code to make it explicit how the pointers are to be
updated.
2002-05-23 18:22:48 +00:00
Robert James Kaes 451fad1ed2 Changed the header includes around to reflect the new source layout. 2002-05-23 18:20:27 +00:00
Robert James Kaes e633b97957 Added code to create the "dnsserver" program, and also reorganized to
include the various new source files.
2002-05-23 04:43:06 +00:00
Robert James Kaes 1690c05075 Initial addition to CVS. Moved the three "text" related functions into a
separate file.
2002-05-23 04:42:30 +00:00
Robert James Kaes fd3e6e84fb Initial addition to CVS. Moved the network related functions into a
separate module.
2002-05-23 04:41:48 +00:00
Robert James Kaes c667952861 Initial addition to CVS. Moved all the debugging heap related functions. 2002-05-23 04:41:10 +00:00
Robert James Kaes 0b0e03fa39 Initial addition to CVS. The dnsserver process is a child executable that
handle DNS resolving.
2002-05-23 04:40:42 +00:00
Robert James Kaes d22d6d181b Initial addition to CVS. These functions create an API for accessing the
dnsserver child process.
2002-05-23 04:40:06 +00:00
Robert James Kaes 2ee61db6af Initial addition into CVS. Moves various functions relating the daemon
processes.  Added a portable signal handler setting function.
2002-05-23 04:39:32 +00:00
Robert James Kaes 65cf5ea290 Initial addition to CVS. This header moves all the system includes from
the tinyproxy.h file to here.
2002-05-23 04:37:54 +00:00
Robert James Kaes 92f11c15aa Added "releases.txt" to the list of files which need to be included in the
tarball.  "releases.txt" is created by a script which searches through the
ChangeLog for release information.
2002-05-17 20:11:26 +00:00
Robert James Kaes 15ac6d24a1 Added release information for version 1.3.1 and 1.3.0 2002-05-17 20:07:49 +00:00
Robert James Kaes 44bd80e100 Added more release information. 2002-05-17 20:03:13 +00:00
Robert James Kaes b3af1a8740 Fixed on inaccurate entry (the variable was made _signed_ to preserve the
negative value.)  Also, added in "Released tinyproxy ..." information so
that changes between versions can be better determined.
2002-05-17 19:32:23 +00:00
Robert James Kaes 700f129750 Set the pointer to NULL after it's been freed() 2002-05-17 16:39:35 +00:00
Robert James Kaes e4e78e0f1b request->host might have been freed by the time we get to
free_request_struct(), so make sure it's pointing to memory.
2002-05-17 16:34:42 +00:00
Robert James Kaes bb9f206529 Moved the definition of the struct buffer_s into the buffer.c file and out
of the buffer.h file.  This also required the removal of the BUFFER_SIZE
macro, and replace it with the buffer_size() function.
2002-05-14 00:43:38 +00:00
Robert James Kaes d46cba8a0b Added a "tail" pointer to the vector to make insertions more efficient. 2002-05-13 23:32:16 +00:00
Robert James Kaes 16e96c79e8 Thanks to Justin Guyett for making the hashmap_insert() function use a
constant time insert.  Explanation: new enteries are added to the _front_
of the chain, rather than search to the end.
2002-05-13 20:02:23 +00:00
Robert James Kaes 73e3b495e0 Fixed up a potential SEGFAULT if memory for an entry could not be
allocated.  Also, thanks to Justin Guyett for finding a problem the
hashmap_remove() function.  There was a problem where an entry's "prev"
pointer could be pointing to freed memory.

Finally, renamed all "maps" to bucket to make the source more
understandable.
2002-05-13 18:47:46 +00:00
Robert James Kaes f0b0990612 Fixed up the installation of the tinyproxy.conf file. The file is only
installed if it doesn't already exist (rather than giving a make error.)
2002-05-10 19:53:03 +00:00
Robert James Kaes 8e9fee2e10 Changed the version number to 1.5.0 2002-05-09 17:36:31 +00:00
Robert James Kaes 924b6192c1 Blocking ports has been added as well as the selective binding. 2002-05-09 16:25:32 +00:00
Robert James Kaes a25e0a608e bumped up version number 2002-05-08 19:57:02 +00:00
Robert James Kaes f58a34ed34 --with-config now supports absolute paths as per James Flemer's request. 2002-05-08 18:42:44 +00:00
Robert James Kaes 3138b239f6 Removed the NEWS file from the CVS since it's really a distribution file,
not a source file.
2002-05-08 15:55:46 +00:00
Robert James Kaes cf2ecb83b8 Removed the request logging in the tunnel because it breaks the tunnel
concept since it blocks waiting for information from the client before any
data from the remote is relayed.
2002-05-08 03:29:23 +00:00
Robert James Kaes 14f83aec55 Fixed up the usage of the CFLAGS 2002-05-02 18:22:15 +00:00
Robert James Kaes 50058c1cab Proper handling of the tinyproxy.conf location within the source tree
(needed for make distcheck.)
2002-05-02 18:12:32 +00:00
Robert James Kaes 42ef3b86b6 Bumped up the version number. 2002-05-02 17:36:46 +00:00
Robert James Kaes 6004eca8c6 Improved the code to install all the files into their properly locations. 2002-05-02 17:35:27 +00:00
Robert James Kaes 0a1f83bbe5 tinyproxy should be installed into the /sbin directory rather than the
/bin directory since it's a network daemon.
2002-05-02 17:34:58 +00:00
Robert James Kaes 82f7a5cba6 Added code to figure out and install the configuration file. 2002-05-02 04:44:03 +00:00
Robert James Kaes c89813d5d7 Bumped up the version number. 2002-04-29 16:32:20 +00:00
Robert James Kaes fefedea577 Added the reason why servers_waiting needs to be a signed integer. 2002-04-29 16:31:16 +00:00
Robert James Kaes 3284f365b2 Check the return value of the write_message() function. 2002-04-28 20:03:53 +00:00
Robert James Kaes ed90a4676f Added more error checking in process_client_headers() and
process_server_headers() functions.

Also, better reporting of errors back to the client.
2002-04-28 20:03:18 +00:00
Robert James Kaes f79807ac11 Added extra logging information, and made sure that locks were being
released properly.
2002-04-28 18:32:16 +00:00
Robert James Kaes e4fe04cbaf Clear the total array of threads before any of the threads are created. 2002-04-28 03:09:52 +00:00
Robert James Kaes 577f3cebbf Fixed up the error detection code when relating the pthread functions.
They return 0 if OK, and a positive error code.

Cleaned up the status setting code in thread_main().

Thanks to Hans-Georg Bork for fixing the problem in thread_pool_create()
where the status wasn't set early enough to allow all the threads to be
created.

Added additional logging information to let the admin know what is
happening with the thread creation.
2002-04-28 02:37:01 +00:00
Robert James Kaes 1a8c914dd2 Changed the len type to ssize_t because we need to detect errors in the
recv() call.  Thanks to Tom Cross for discovering this bug.
2002-04-26 19:33:09 +00:00
Robert James Kaes 9554989110 Bumped up the version number. 2002-04-26 16:59:44 +00:00
Robert James Kaes 1d78e63233 Added an assert in hashmap_first() 2002-04-26 16:51:29 +00:00
Robert James Kaes e9f5b2e75f Check the return value of hashmap_first() 2002-04-26 16:50:55 +00:00
Robert James Kaes 0e7182533c Need to check the return value of hashmap_first() since it could be
negative.
2002-04-26 16:43:20 +00:00
Robert James Kaes 6992c74bba Check to see if request->path is actually allocated before trying to free
it.
2002-04-25 19:20:56 +00:00
Robert James Kaes 284def7321 Fixed up the test for the c_r library. Also, added the -D_REENTRANT
define _always_.
2002-04-25 19:00:03 +00:00
Robert James Kaes 7fe567da94 Changed to the hashmap module, and to the remove_connection_headers()
function.
2002-04-25 18:58:55 +00:00
Robert James Kaes b4ef24844f First change all the hashmap related calls to use the new API.
The remove_connection_headers() function now handles both the Connection
header _and_ the Proxy-Connection header.
2002-04-25 18:58:08 +00:00
Robert James Kaes d1031e2c8f The hashmap API changed, so this function needs to be changed as well. 2002-04-25 18:56:43 +00:00
Robert James Kaes ce51a74045 Removed the hashmap_keys() function and added the "iterator" concept.
This required a bunch of changes to the source (like the inclusion of the
end_iterator member variable.)  All this was required by sites like Yahoo
which send out multiple "Set-Cookie" headers.  tinyproxy needs to handle
this situation correctly.
2002-04-25 18:55:56 +00:00
Robert James Kaes b5df4f1cf0 hashmap_search() only takes two arguments, so removed the unneeded NULL. 2002-04-25 18:52:09 +00:00
Robert James Kaes d7c3f23610 bind_address has been moved inside the config structure. Fixed up a
problem where "data" was being freed even if it had not been allocated
(because of an error condition.)
2002-04-24 16:48:34 +00:00
Robert James Kaes 335d787018 Fixed a couple of problems where tinyproxy was trying to free a memory
block which had not been allocated.

Also, the "proxy-connection" to the list of headers we don't pass.
2002-04-24 16:47:19 +00:00
Robert James Kaes 89ada2df28 Moved bind_address inside the config structure. 2002-04-24 16:45:45 +00:00
Robert James Kaes e7c7c91d71 Added the "Bind" directive. 2002-04-22 19:49:40 +00:00
Robert James Kaes c5b9ec889e Renamed the LOCKing macros and added assert debugging code. Also, moved
the mutex initialization into a function call so that I can use an
error checking mutex once I figure out how to get it to work on my
computer.
2002-04-22 19:41:17 +00:00
Robert James Kaes c648ed1bc5 Added the "Bind" directive.
Fixed up the log_message function to store messages until the log file has
been created.
"Proxy-Connection" is not sent along to the remote message.
2002-04-22 19:37:15 +00:00
Robert James Kaes 08077cc9e1 The "Bind" directive sets a binding address which the outgoing connections
will use.
2002-04-22 19:35:24 +00:00
Robert James Kaes 1953348c90 Added the "Proxy-Connection" header to the list of client headers which
are not passed along.
2002-04-22 19:34:50 +00:00
Robert James Kaes 2ec7a4dd72 The log_message() function now stores the messages if the configuration
file has not been read yet.  The reason for this is that we don't know
where to log the messgaes until _after_ the config file has been
processed.
2002-04-22 19:34:20 +00:00
Robert James Kaes 60f61c8f0c Added the "Bind" directive. 2002-04-22 19:33:01 +00:00
Robert James Kaes aa68eb8540 Whoops. The previous include only had the code conditionally removed.
Remove for real this time.
2002-04-18 21:54:50 +00:00
Robert James Kaes 1db154464e Removed the call to inet_aton() since the gethostbyname() function handles
the dotted-decimal case itself.
2002-04-18 21:53:33 +00:00
Robert James Kaes 60f0a86c75 The stats now wait until after the client has finished sending all its
headers before sending the HTTP response back.  This should be more
standards compliant.
2002-04-18 21:43:53 +00:00
Robert James Kaes 1691feb9bb Bumped the version number to 1.5.0rc4 2002-04-18 18:48:57 +00:00
Robert James Kaes 73a53daf38 Removed the call to hstrerror() in the getpeer_string() function. It's
not available on all machines.
2002-04-18 18:48:22 +00:00
Robert James Kaes 09c7acf9fc Memory leak in the hashmap_delete() function has been fixed. 2002-04-18 18:41:27 +00:00
Robert James Kaes d14b612e13 Fixed a memory leak in the hashmap_delete function. The array of maps was
not being deleted.
2002-04-18 18:40:38 +00:00
Robert James Kaes 45a96fde12 Changed to vector.c and hashmap.c
Added the debugging_strdup() function.
Fixed a memory leak in get_all_headers.
2002-04-18 18:00:35 +00:00
Robert James Kaes 9a8d732a13 Changed all calls to strdup to safestrdup. This should provide better
memory usage tracking.
2002-04-18 17:59:21 +00:00
Robert James Kaes a66aae880c Fixed a memory leak in reading in headers from the client or server. 2002-04-18 17:58:52 +00:00
Robert James Kaes 3b5a4b7362 Replaced the explicit header includes with one call to tinyproxy.h. Also,
added the utils.h header and changed all the malloc, calloc, free, and
strdup to the appropriate safe variety.
2002-04-18 17:57:20 +00:00
Robert James Kaes ce4687fbf9 Added the debuggin_strdup() function and the associated safestrdup()
macro.  Also, added asserts to the other debugging_* functions.
2002-04-18 17:49:14 +00:00
Robert James Kaes dc18888c83 Bumped up the version number to 1.5.0rc3 2002-04-18 17:04:38 +00:00
Robert James Kaes 43860d2469 Moved the filter_destroy() logic from inside the signal handler. It's now
been moved to inside the main() function.
2002-04-18 17:04:04 +00:00
Robert James Kaes 5822ec3d44 Moved the log rotation code out of the signal handler and into it's own
function.  The signal handler now simply sets a flag which is monitored
inside the thread_main_loop() function.  The log rotation code has also
been tightened to handle any error conditions better.  Credit to Petr
Lampa for suggesting that system functions inside of a signal handler is
bad magic.
2002-04-18 16:57:06 +00:00
Robert James Kaes 6a588826c1 Changes to configure.ac, src/sock.c, src/reqs.c, src/acl.c, src/acl.h,
and src/thread.c
2002-04-17 20:57:58 +00:00
Robert James Kaes 9fd6a9eaa9 Added a test for pthread_cancel() since it's not available on all
platforms.
2002-04-17 20:56:35 +00:00
Robert James Kaes 3e60a5b819 Removed the LOOKUP_LOCK() and LOOKUP_UNLOCK() macros since I believe I
need locking around both gethostbyname() and gethostbyaddr() at the same
time.
2002-04-17 20:56:13 +00:00
Robert James Kaes 1d85484c3a If the initialize_conn() function fails, close the socket and return.
Also, changed the call to check_acl() to include the peer's IP and string
addresses.
2002-04-17 20:55:21 +00:00
Robert James Kaes 42098699db Removed the close(connfd) call since the socket has already been closed
from within the handle_connection() function.

Added tests to make sure pthread_create() succeeds.

Added defined tests for pthread_cancel() since it's not available on all
platforms.
2002-04-17 20:54:26 +00:00
Robert James Kaes 44bbdb2623 Changed the check_acl() function to require the peer IP address and string
address from the calling function.
2002-04-17 20:52:45 +00:00
Robert James Kaes 795f4f2fe7 More spelling fixes. 2002-04-16 04:58:51 +00:00
Robert James Kaes 8defcc6225 Just general spell checking. 2002-04-16 04:14:59 +00:00
Robert James Kaes 0fb2fa7393 Various changes in the src/anonymous.c and src/reqs.c files. 2002-04-16 03:22:44 +00:00
Robert James Kaes 04da777bed Removed the duplicate calls to strlen(). 2002-04-16 03:22:16 +00:00
Robert James Kaes 0e4436a070 Tightened the lookup_domain() function. 2002-04-16 03:21:46 +00:00
Robert James Kaes ca10b1353d Various code clean up. There is nothing new here, just mechanical changes
to the source to either remove code which is not needed, or consolidate
common code into a common section.
2002-04-16 03:20:43 +00:00
Robert James Kaes c722851bce Cleaned up the return values of the two anonymous functions to make the
code cleaner and smaller.
2002-04-16 03:19:19 +00:00
Robert James Kaes bdfad7a2dd Bumped up version number 2002-04-16 00:23:23 +00:00
Robert James Kaes 17ea28ccc6 Changes for chomp(), read_request_line(), and readline() 2002-04-15 04:17:17 +00:00
Robert James Kaes 4b7de22999 Added a test to make sure the "whole_buffer" could be allocated. 2002-04-15 04:16:01 +00:00
Robert James Kaes 550145d49e Changed the variable type in read_request_line() to an unsigned variable
in order to detect negative returns.
2002-04-15 04:14:03 +00:00
Robert James Kaes f0b6861998 Added an assert() call to detect design errors. 2002-04-15 04:13:14 +00:00
Robert James Kaes a5d3212751 Changed the error boolean flag into a pointer to an error string and an
error code.  We're storing this information because tinyproxy doesn't
output the error information until _after_ the client has sent it's
information.
2002-04-15 02:07:27 +00:00
Robert James Kaes c86d22226f Added additional error handling for the bind() and listen() system calls
when setting up the listening socket.
2002-04-13 19:03:18 +00:00
Robert James Kaes 6c2d7ebaa4 Bumped up version number. 2002-04-13 17:53:55 +00:00
Robert James Kaes be47c1791d Modified the opensock() function to respect the Listen directive. If it's
set, bind all outgoing addresses to this local address.
2002-04-13 05:20:19 +00:00
Robert James Kaes 1685e9ca66 Changes regarding the new ConnectPort directive. 2002-04-12 17:01:07 +00:00
Robert James Kaes ecb249f424 Added code to support the new ConnectPort directive which is needed to
improve security of the tinyproxy system.  This new directive allows the
admin to block CONNECT methods to illegal ports.
2002-04-12 17:00:42 +00:00
Robert James Kaes 660e4d5687 Added the support code to process a ConnectPort configuration directive. 2002-04-12 16:59:37 +00:00
Robert James Kaes eb1230e841 Added the description and intial settings for the ConnectPort directive. 2002-04-12 16:59:06 +00:00
Robert James Kaes f1a451faea Added a write_via_header() function which is now used in both header
processing functions.  Also, added a list of headers to drop in the
process server header functions.
2002-04-12 03:09:04 +00:00
Robert James Kaes 604785be66 Bumped up the pre-version number. 2002-04-11 20:45:56 +00:00
Robert James Kaes b18070b268 Changes to remove_connection_headers(), relay_connection(),
process_client_headers(), and process_server_headeers().

Added the get_content_length() function.
2002-04-11 20:45:10 +00:00
Robert James Kaes 85a82af5f5 Did a bit of consolidation by moving code into remove_connection_headers()
and added the get_content_length() function.

The process_server_headers() function was rewritten to remove the
Connection header correctly, and also retrieve the Content-Length value.
This value is needed in the relay_connection() function since there are
some remote machines which do not properly close down the connection once
the body has been retrieved.  Thanks to James Flemer for finding a test
case for this problem.
2002-04-11 20:44:15 +00:00
Robert James Kaes ce06f27a35 Added the remote_content_length variable to store the number of bytes the
remote server is supposed to be transmiting to the client.
2002-04-11 20:27:51 +00:00
Robert James Kaes 52fa476b21 Replaced calls to AC_LIBOBJ to an ADDITIONAL_OBJECTS variable (since it's
not being used with src/Makefile.am).  Also, rewrote the REGEX test to
better confirm to the autoconf standard.
2002-04-11 02:57:20 +00:00
Robert James Kaes ed30d9d329 Changed in src/Makefile.am 2002-04-10 21:52:07 +00:00
Robert James Kaes abdfa8b2da Removed the dependency on LIBOBJS and instead use the ADDITIONAL_OBJECTS
variable in conjunction with _DEPENDENCIES and _LDADD.  The change here
makes filter a "required" module in the sense that it will always be
compiled (to make sure it doesn't get out of date), but it will
conditionally included in the object file.
2002-04-10 21:51:01 +00:00
Robert James Kaes 448a1b222d Bumped up the pre-version release number and removed the AC_FUNC_MEMCMP
macro.
2002-04-10 19:10:07 +00:00
Robert James Kaes e3e3020c00 Removed the test for lstat() since it wants to add a lstat.o dependancy.
I really need to got through the configure.ac file and figure out what
_really_ needs to be tested for.
2002-04-10 17:30:08 +00:00
Robert James Kaes a903b6d997 Added an extra new line at the end of the file to quiet picky compilers.
:)
2002-04-10 17:29:18 +00:00
Robert James Kaes 4fa5cef491 The malloc/free functions should be in stdlib.h, but if we can't find
stdlib.h then try including malloc.h.  Maybe this will allow clean
compiling on some platforms.
2002-04-09 22:02:05 +00:00
Robert James Kaes fb616011ef More changes in the ChangeLog :) 2002-04-09 20:07:10 +00:00
Robert James Kaes eef4559783 Removed the compare_header() function since it's been replaced by a call
the anonymous_search().

Added a few more log_message() calls to better explain error conditions.

Fixed up a problem with X-Tinyproxy sending logic.
2002-04-09 20:06:24 +00:00
Robert James Kaes 0c5bd57698 Added more include logic code to be more portable. 2002-04-09 20:05:15 +00:00
Robert James Kaes 7409281e34 Replaced the internally used linked list with a call to the hashmap
module.  Code reuse is a good thing.
2002-04-09 20:04:39 +00:00
Robert James Kaes 607e4c4c6c Fixed up the problem with the "-lc_r" inclusion code.
_Really_ fixed up the problem with compiling under OpenBSD.
Bumped up the version number.
2002-04-09 20:04:05 +00:00
Robert James Kaes 3c631c6e5c James Flemer cleaned up the make_netmask() function to remove the static
table.  Very nice.
2002-04-09 19:11:09 +00:00
Robert James Kaes b3a5b17b7d Bumped up the version number. 2002-04-09 16:32:39 +00:00
Robert James Kaes 7e6d2bf451 New changes to configure.ac, hashmap.c, and vector.c 2002-04-09 16:32:22 +00:00
Robert James Kaes 2f54303d98 Cleaned up the include lines to be slightly more portable (I hope.) 2002-04-09 16:28:13 +00:00
Robert James Kaes 3a787ecbfa Small changes to conform to the new Autoconf standards. Also, added a
test for the OpenBSD system which prevents the inclusion of the malloc.h
header (the functions are actually defined in stdlib.h)

I might even remove the malloc.h header altogether since the malloc/free
functions _should_ be in stdlib.h
2002-04-09 16:27:34 +00:00
Robert James Kaes 54a84434fc Changed the version number to reflect the 1.5.0 pre-releases 2002-04-09 01:45:37 +00:00
Robert James Kaes 64e28312dc New news for the 1.5.0 release. 2002-04-09 01:45:07 +00:00
Robert James Kaes 6f06485dbd Updated the description to include the "SSL" fact. 2002-04-09 01:44:42 +00:00
Robert James Kaes eb78e5e1f4 Added the cancelation setting to make sure the thread stops immediately. 2002-04-09 00:37:43 +00:00
Robert James Kaes 0d66719c5a Just moved the looping code from main() into thread_main_loop(). 2002-04-08 21:35:10 +00:00
Robert James Kaes bf82c863bc Just a variable name change to make it easier to read. 2002-04-07 21:37:07 +00:00
Robert James Kaes 1d52d9d510 Updated the copyright notice. 2002-04-07 21:36:39 +00:00
Robert James Kaes fb736ec3fb A _tonne_ of changes. It would almost be easier to just read the source
itself to find out all the changes.  Changed the process_client_header()
function to use the hashmap and vector modules.  I've made this change to
better handle the Connection header.  The Connection header, it it's
present, lists all the headers which should _not_ be transmitted any
further along.  An HTTP/1.1 proxy must respect this.

Other changes are basically cosmetic.
2002-04-07 21:35:59 +00:00
Robert James Kaes 5e9aa90009 Update the list of source code files to include the vector and hashmap
files.
2002-04-07 21:33:38 +00:00
Robert James Kaes 97a72783f5 Cleaned up some of the code to handle errors better. Also, a little bit
easier to read in the variable department.
2002-04-07 21:32:01 +00:00
Robert James Kaes c654bc14d9 Changed the version number down to 1.4.4pre1 (from the more ambitious
1.5.0pre1)
2002-04-07 21:31:15 +00:00
Robert James Kaes 6edba0dfa6 Updated the changelog information. 2002-04-07 21:30:30 +00:00
Robert James Kaes 5b3658b122 A hashmap implementation. I use this for storing the headers from the
client.
2002-04-07 21:30:02 +00:00
Robert James Kaes 54f369a734 Added the vector module which is a vector implementation. I use it in the
hashmap implementation.
2002-04-07 21:29:23 +00:00
Robert James Kaes e70b98252a Added define check for XTINYPROXY_ENABLE. Although, I'm not sure if this
is the correct way to do this, since grammar.c probably doesn't get
recomplied even if config.h is changed.  Must look into this more.
2002-04-02 17:17:30 +00:00
Robert James Kaes daf90db115 Update to reflect changes to configure.ac 2002-04-02 17:00:29 +00:00
Robert James Kaes 194435acc1 Patch from James Flemer which:
* allows the --disable-* options to work
 * prevents -lc_r from being included on FreeBSD machines
2002-04-02 16:58:36 +00:00
Robert James Kaes 1819c0f818 Added code to check for "errors" from the accept call in thread_main() and
also a new thread_kill_threads() function which should cancel all threads
when the main thread is being closed.
2002-01-25 00:01:45 +00:00
Robert James Kaes 388920bc53 Added code which checks to see if the user has signalled that tinyproxy
should be closed.
2002-01-08 02:02:25 +00:00
Robert James Kaes ea0d956a57 Removed an unused header. 2001-12-28 22:31:12 +00:00
Robert James Kaes a0dee6c57f Check for errors returned by the accept() function. 2001-12-28 22:29:11 +00:00
Robert James Kaes 8cfe33fc4a more changes to utils.c, reqs.c, and sock.c 2001-12-24 00:03:00 +00:00
Robert James Kaes 9520866ab3 Changed send_http_message() to use the write_message() function.
Changed httperr() to use the same concept as the write_message() function.
Still haven't figured out how to combine the code.
2001-12-24 00:02:32 +00:00
Robert James Kaes b10221fa07 Added the write_message() function (from reqs.c) 2001-12-24 00:01:32 +00:00
Robert James Kaes 475e526a48 Moved write_message() into sock.c because I'm using it in other places. 2001-12-24 00:01:02 +00:00
Robert James Kaes 831b00dc7a Made the error message regarding the Idle timeout more verbose, and
changed the level to WARNING.
2001-12-23 22:00:36 +00:00
Robert James Kaes c3124815a1 Cleaned up the code which sends the "Via" header. It now uses
write_message().
2001-12-23 21:55:08 +00:00
Robert James Kaes b68354a9da Add a pre-processor test around the sys/types.h header file, to make sure
it's available before we try to include it.
2001-12-23 18:44:02 +00:00
Robert James Kaes 4ed73b6f07 Fixed up the order of some of the includes to cope with OpenBSD. Also,
test for the MSG_NOSIGNAL define.
2001-12-23 03:28:03 +00:00
Robert James Kaes d6e5285e95 Updated the copyright notice. 2001-12-20 04:48:52 +00:00
Robert James Kaes 93f0406b7e Created the CHECK_CRLF() macro to handle the tests for the appropriate
control characters in a string.
2001-12-20 04:48:32 +00:00
Robert James Kaes 7240af4333 Changed the calls to write() to send() so that we can use send(...,
MSG_NOSIGNAL) and not get signals sent to the process. (easier for
debugging and the system doesn't need to worry about signals.)
2001-12-19 20:41:28 +00:00
Robert James Kaes 63a1fa96cc Removed duplicate code from process_server_headers() and removed the calls
to strlen(); readline() already returns the length of the string, so use
that instead.
2001-12-19 20:40:23 +00:00
Robert James Kaes e964cf0d35 Damn---removed the debugging code from write_message(). 2001-12-19 05:20:01 +00:00
Robert James Kaes 5140f01d5c Opps! Fixed a problem with negative numbers. :) 2001-12-19 05:19:03 +00:00
Robert James Kaes 56b541d76b Redefined HTTP_LINE_LENGTH to be based on MAXBUFFSIZE (and set to around
16 KB.)

Added the TUNNEL_CONFIGURED() macro to help with testing for the tunnel
support code.

Create the write_message() function to encapsulate the code which sends
the information to the file descriptor.

Moved the tunnel code into it's own function.
2001-12-19 05:13:40 +00:00
Robert James Kaes 4a257edd0a Update the reqs.c file. 2001-12-19 05:10:46 +00:00
Robert James Kaes 17103bf8fe Updated the list of headers to ignore. 2001-12-18 05:01:03 +00:00
Robert James Kaes faf655c5db Added the code to log the request when in tunnelling mode. 2001-12-17 19:10:56 +00:00
Robert James Kaes a62834808a Added the code the log the request when in tunnelling mode. 2001-12-17 19:10:37 +00:00
Robert James Kaes 4916c78ad5 Removed the version test for the bison. 2001-12-17 19:10:06 +00:00
Robert James Kaes 71ad9f439f Bumped the version number. 2001-12-17 00:28:28 +00:00
Robert James Kaes 15a7581e30 Updated the changelog. 2001-12-17 00:12:15 +00:00
Robert James Kaes 9448787ff2 Added UPSTREAM_CONFIGURED() macro to help clean up the code.
Ignore any blank lines when tinyproxy is expecting a request line.

Instead of sending the request line to the remote server in pieces,
tinyproxy nows sends it in once go. This was done to fix a problem with
some sites like www.heise.de.

Changed all calls to connptr->ssl to connptr->connect_method.

Changed all calls to connptr->send_message to
connptr->send_response_message.

Moved the call to Via header code to inside to the tests to handle if
tinyproxy is sending an error message (don't need to send any headers.)
2001-12-17 00:11:32 +00:00
Robert James Kaes fdb4952e5f Added the assert() calls to safe_write() to make sure the arguments are
sane.
2001-12-17 00:00:24 +00:00
Robert James Kaes 6919faea77 Removed reference to ternary.h 2001-12-15 20:08:24 +00:00
Robert James Kaes 997d3daa65 No longer need this system since it was only being used in the DNS caching
section and the anonymous header section. Once I had removed the DNS
caching, the ternary tree system was overkill for the anonymous header
code. Replaced in the anonymous header section with a simple linked list.
2001-12-15 20:07:45 +00:00
Robert James Kaes b969ed4302 Changed safe_write() to fully send all the data in the buffer it was
passed. Also safe_write() and safe_read() now use char pointer buffers
rather than the void pointer style.
2001-12-15 20:04:04 +00:00
Robert James Kaes cad9a5d11b Switched from using the ternary tree to a simple linked list. 2001-12-15 20:02:59 +00:00
Robert James Kaes b811c2fbf8 Removed the references to ternary.c and ternary.h 2001-12-15 20:02:26 +00:00
Robert James Kaes 3f4a052c85 Addtional function checks. 2001-12-15 20:02:03 +00:00
Robert James Kaes 70970e832a Updates for safe_write() and anonymous section. 2001-12-15 20:01:42 +00:00
Robert James Kaes 75ab2c8de3 Removed the include "dnscache.h" header file. 2001-12-15 06:02:16 +00:00
Robert James Kaes e10d005f81 Added the lookup_domain() function which replaces the DNS caching system. 2001-12-15 06:00:03 +00:00
Robert James Kaes a4934e2232 Added the host name lookup code (which use to be in the DNS caching
system.)
2001-12-15 05:58:30 +00:00
Robert James Kaes b15be9de3e Removed the references to dnscache.c and dnscache.h 2001-12-15 05:57:40 +00:00
Robert James Kaes bf18ec5adc Removed the DNS caching system because tinyproxy did not determine the TTL
of the host names being resolved, which is not recommended by RFC2616.
Basically, if a HTTP client doesn't respect the TTL is should not be
caching the address since it leaves itself open to DNS spoofing attacks.

Also, having a DNS caching system is an administater decision, and so
should not be included in the tinyproxy source.
2001-12-15 05:57:13 +00:00
Robert James Kaes e0694a8f6e Added support for the <pthreads.h> header. 2001-11-26 05:23:49 +00:00
Robert James Kaes 09fdf9af74 Increased the maximum buffer size to 96 KB 2001-11-26 01:39:53 +00:00
Robert James Kaes a03a1d3847 Fixed a problem with not buffering more than 2K (which is obviously a
problem. :)
2001-11-26 01:39:07 +00:00
Robert James Kaes 4a1b2d534a Fixed a problem with the quoting. 2001-11-26 01:38:28 +00:00
Robert James Kaes 7c4569624d Updates relating to the fixes to buffering code in read_buffer(). 2001-11-26 01:31:26 +00:00
Robert James Kaes fa193dcd22 send_message changed to send_response_message in the conn_s structure. 2001-11-25 22:08:11 +00:00
Robert James Kaes f8b61da4ae Added tests for _every_ header to make sure they are actually present on
the system.
2001-11-25 22:07:36 +00:00
Robert James Kaes 2f4ccc04ae Added an additional test to make sure the <regex.h> header is actually
present on the system.
2001-11-25 22:06:54 +00:00
Robert James Kaes 5e17d0736e Removed some of the members of the structures and renamed a few others. 2001-11-25 22:06:20 +00:00
Robert James Kaes e9cfd1f82e makenewline() now copies the data into the structure rather than just
storing the pointer to the data.
add_to_buffer() is now exported.
Renamed writebuff() and readbuff() to write_buffer() and read_buffer().
2001-11-25 22:05:42 +00:00
Robert James Kaes b0748328d7 More changes. 2001-11-25 22:03:52 +00:00
Robert James Kaes 6e054e4a72 Added a new error code. 2001-11-25 02:22:05 +00:00
Robert James Kaes 8dc7035fbc Add support to limit the maximum size of the input line (to 128KB which
should be _more_ than enough for any header line. :)
2001-11-25 02:21:46 +00:00
Robert James Kaes 09dbdbc3d7 Change the C code to match the new style. 2001-11-25 02:20:54 +00:00
Robert James Kaes c8b2c614f9 More updates. 2001-11-25 02:20:00 +00:00
Robert James Kaes 57cb7ea3ae Updated to match the new coding standard for autoconf2.5x 2001-11-25 02:19:19 +00:00
Robert James Kaes 3a67f6a326 Updated the configure.in file to be compliant with the new macros (and
coding standard) of autoconf2.5x
2001-11-25 02:18:47 +00:00
Robert James Kaes 5259984e73 Moved this file to configure.ac which is the new extension for
autoconf2.5x
2001-11-25 02:18:16 +00:00
Robert James Kaes 1ab0aa143b Don't need this file anymore, since the new autoconf2.5x standard requires
the information to be in the AH_TEMPLATE macro.
2001-11-25 02:16:36 +00:00
Robert James Kaes 8bfa01cab1 Explictly add the reference to the GPL since people could be downloading
this from the CVS.
2001-11-23 22:25:28 +00:00
Robert James Kaes 5c8369e758 Added a reminder to include selective binding for the listening socket. 2001-11-23 22:23:26 +00:00
Robert James Kaes d909c841fa Removed these two files since they're only required for distibution.
autoconf automatically includes symlinks on the Debian system.
2001-11-23 22:22:40 +00:00
Robert James Kaes e007df7723 Don't include this file with tinyproxy anymore since it's more of a
"local" script which I use.
2001-11-23 16:57:57 +00:00
Robert James Kaes af53747181 Fixed a problem with testing numbers using the x"$string" format.
Added a default case for libnsl ("no" if not found.)
2001-11-23 16:56:59 +00:00
Robert James Kaes 4aa5e79cdf Added the chomp() function (to replace the trim() function reqs.c) 2001-11-23 01:19:15 +00:00
Robert James Kaes fd3b313e9f Style changes. Also replaces all mallocs with safemalloc, etc. 2001-11-23 01:18:43 +00:00
Robert James Kaes c6c7427e8d Removed the trim() function and move it into chomp()/utils.c 2001-11-23 01:17:19 +00:00
Robert James Kaes 6de3bf2f6d Use AC_HELP_STRING() in all the ARG_ENABLE and ARG_WITH strings.
Added --enable-profiling option.
Changed all if test "$string" = "anotherstring" to
if test x"$string" = x"anotherstring".
2001-11-23 01:15:01 +00:00
Robert James Kaes bcb54a8a67 Changes relating to chomp() 2001-11-23 01:11:58 +00:00
Robert James Kaes 787ece6c01 Reformated text. 2001-11-22 00:31:10 +00:00
Robert James Kaes bcb7c68911 Updated readline() function. 2001-11-22 00:20:53 +00:00
Robert James Kaes 1fa9d257c2 Replaced the calls to the old readline() function with calls to the new
version.
2001-11-22 00:19:45 +00:00
Robert James Kaes d08d088d4a Replaced the readline() function with a new version which has no
restrictions on the length of a line (unless you fill memory of course.)
Reformated the source.
2001-11-22 00:19:18 +00:00
Robert James Kaes 757d341d96 Bumped the version number to release status. 2001-11-21 19:35:51 +00:00
Robert James Kaes b92e2fc457 New NEWS file read for release. 2001-11-21 19:35:22 +00:00
Robert James Kaes a30eb425e3 #if 0'd the code handling the "Via" header in the process_client_headers()
function since I'm not completely happy with the code.
2001-11-21 19:19:46 +00:00
Robert James Kaes bc8c3ff399 Include the protocol variables in the conn_s structure. 2001-11-21 01:00:09 +00:00
Robert James Kaes 90ee7e01ca Extract the version from the request line and store it in the conn_s
structure.
Don't send a Connection header to the remote connection.
Handle the Via header correctly.
2001-11-21 00:59:33 +00:00
Robert James Kaes dde4e9adcc Changed the read() call into a recv() call with a flag of NOSIGNAL since I
don't want signals messing up my calling conventions.
2001-11-12 21:10:51 +00:00
Robert James Kaes 99488cbd5e Added profiling flags to the DEBUG version of CFLAGS. 2001-11-05 15:25:39 +00:00
Robert James Kaes fffdc76681 Made is_anonymous_enabled() an inline function. 2001-11-05 15:24:42 +00:00
Robert James Kaes d2f2750a37 Added a clean rule to remove the gprof files. 2001-11-05 15:24:01 +00:00
Robert James Kaes ddb002d57e Replaced all calls to buffer_size() with the macro BUFFER_SIZE(). 2001-11-05 15:23:34 +00:00
Robert James Kaes 270af08171 Removed the buffer_size() function and turned it into BUFFER_SIZE() macro.
Moved the struct buffer_s into the header file. Added more assert() calls
to better document the assumptions the functions make. Removed incorrect
code in remove_from_buffer() which was never actually called anyway.
2001-11-05 15:23:05 +00:00
Robert James Kaes 3d9a64d54e ACL fixes. Use a better differentiation between string and numeric
addresses.
2001-11-03 06:10:08 +00:00
Robert James Kaes 9f0c8f18fb Tightened the string/numeric ACL checks. 2001-11-03 06:08:37 +00:00
Robert James Kaes e61424a7bf Informing the user of the connection to the tunnel is a INFO type message,
not a CONN level message.
2001-11-02 21:19:46 +00:00
Robert James Kaes 4680546c65 Removed all the aclocal.m4, acconfig.h, etc. files since they are included
automatically by the autoconf scripts.
2001-10-26 03:09:18 +00:00
Robert James Kaes 84ff99013a No longer needs the file. When somebody helps with tinyproxy they will be
thanked in the ChangeLog entry relating to the problem solved.
2001-10-26 03:04:30 +00:00
Robert James Kaes 4ecb6d1a3d Changes reflecting the new conns.* files and the organization of the
header files.
2001-10-25 17:39:52 +00:00
Robert James Kaes 4ac03908fc Header reorganization. Basically all system headers are now included in
tinyproxy.h and all the other files include the tinyproxy.h header. This
moves all the dependancy issues into one file.
2001-10-25 17:27:39 +00:00
Robert James Kaes 722a7d2142 Changed the included headers to be only the "tinyproxy.h" since it
contains all the code for properly bringing in the system headers (in the
correct order and with proper dependancies.)
2001-10-25 17:02:50 +00:00
Robert James Kaes d3b099140f Some code clean up due to the creation of the conns.{c,h} files which now
store the creation/destruction and definition of the connection structure.
2001-10-25 16:58:50 +00:00
Robert James Kaes f8ad0dced3 Moved the connection creation/destruction and definition into it's own
files.
2001-10-25 16:58:09 +00:00
Robert James Kaes ecbcc332cc Updated the news file. 2001-10-25 16:35:27 +00:00
Robert James Kaes e820fecf53 Fixed a few spelling problems and added additional information regarding
the new configure arguments and information about the mailing lists.
2001-10-25 16:28:24 +00:00
Robert James Kaes ff95117d9d Moved the code to include the TODO file into the top level Makefile.am 2001-10-25 16:17:14 +00:00
Robert James Kaes 70ce1cda1f Moving the TODO list from the doc directory to the root directory so that
it's more visible.
2001-10-25 16:16:32 +00:00
Robert James Kaes 274d7730ca Bumped up the pre-version. 2001-10-25 05:13:46 +00:00
Robert James Kaes 2da1378f53 Changes to reflect the various fixes to have CONNECT upstream proxying
work.
2001-10-25 05:13:18 +00:00
Robert James Kaes 1bbf32f04c Fixed the problems with sending/not sending headers so that the CONNECT
(SSL) method would work with upstream proxying!
2001-10-25 05:12:46 +00:00
Robert James Kaes 28b4477f48 Added the upstream flag to the conn_s structure. 2001-10-25 05:10:57 +00:00
Robert James Kaes 5f8ee4fae3 Bit of source code clean up. 2001-10-25 05:10:32 +00:00
Robert James Kaes 3e91392c8a More changes to reqs.c and buffer.c 2001-10-25 04:42:32 +00:00
Robert James Kaes 6afa56ba09 Changed the way relay_connection() works by having the both buffers
emptied when either socket is closed. This should be better for the tunnel
connections.
Change the connect_to_upstream() function to better utilize the
establish_http_connection() function. Code re-use is cool. :)
2001-10-25 04:40:48 +00:00
Robert James Kaes f8d43bd423 Lowered the size of the read buffer to 2K since Ethernet seems to work
with 1400 byte segments.
2001-10-25 04:39:10 +00:00
Robert James Kaes b7b4d08758 Error message cleanup to make the information more informative. 2001-10-24 00:37:23 +00:00
Robert James Kaes 7d7958b0d7 Fixed a spelling problem in a log message. 2001-10-23 16:43:08 +00:00
Robert James Kaes 98ffd0a3fe Update to reflect the current maintainer (Robert) again. 2001-10-23 15:46:43 +00:00
Robert James Kaes d090c02476 New changes to getpeer_string(). 2001-10-23 03:58:40 +00:00
Robert James Kaes a746b9d0b2 Moved the zero-length string setting to outside the tests in getpeer_*()
functions. Also added a more robust error reporting for DNS errors.
2001-10-23 03:57:34 +00:00
Robert James Kaes 56a9766529 Hopefully cleaned up the source a bit. 2001-10-23 03:55:39 +00:00
Robert James Kaes 1abc300112 Cleaned up the file and added the request for a more consistent error
system.
2001-10-23 03:55:01 +00:00
Robert James Kaes ce8b94bd73 Bumped the version number. 2001-10-22 21:30:18 +00:00
Robert James Kaes db1ccab0bc New TODO entry for handling potential security problems. 2001-10-22 18:31:44 +00:00
Robert James Kaes a6a026cb9e Changed the getpeer_*() functions to return the reason why the name or IP
address could not be looked up.
2001-10-22 16:52:34 +00:00
Robert James Kaes 358b2781af Cleaned up the code in handle_connection() and added a NULL pointer test
in the free request function.
2001-10-22 16:08:29 +00:00
Robert James Kaes ad743c1e41 Fixed a problem where a user's variable would be uninitialized if a DNS
lookup failed.
2001-10-22 15:56:11 +00:00
Robert James Kaes b40e382e5a More moving around of the source code. Still can't get CONNECT to work
with an upstream proxy.
2001-10-19 18:03:49 +00:00
Robert James Kaes 26587ef1e7 Fixed a problem where a full buffer on the read side would cause the
connection to be closed.
2001-10-18 21:45:54 +00:00
Robert James Kaes ac111ee8c6 Added netinet/in.h so that tinyproxy will compile on OpenBSD. 2001-10-18 03:44:06 +00:00
Robert James Kaes 7a613287ee Trying to allow CONNECT methods through an Upstream proxy. 2001-10-17 04:15:35 +00:00
Robert James Kaes af1246c78b Added the ability to compile tinyproxy with static linking. 2001-10-01 04:01:10 +00:00
Robert James Kaes 7c6cc24b1d Did a couple of TODOs and added a few new ones. :) 2001-09-28 20:38:07 +00:00
Robert James Kaes f869dfabdf More changes, mostly related to the support for an upstream proxy. 2001-09-16 20:15:06 +00:00
Robert James Kaes 6ab7ebcb31 send_http_message() doesn't create a memory block and store it in the
connection's output_message variable. Instead the error is sent to the
client right away. Once we finish processing the client's headers it will
automatically accept the error message. So we get the same result, but
less memory is used.
2001-09-16 20:13:52 +00:00
Robert James Kaes 606c8196a0 Added the configure variables to support the upstream proxy. 2001-09-16 20:12:29 +00:00
Robert James Kaes 490754594e Added a check to make sure the Upstream and Tunnel directives are not both
set in the configuration file.
2001-09-16 20:11:54 +00:00
Robert James Kaes 2a566d194d Fixed a spelling mistake. 2001-09-16 20:11:24 +00:00
Robert James Kaes b9c4c480d2 Moved the safe_write() and safe_read() functions here. 2001-09-16 20:11:07 +00:00
Robert James Kaes 08baf6b01b Moved the safe_read() and safe_write() functions into the sock.c file
since they're now used in other places.

Added support for a true upstream proxy connection. This involved some
rewriting of the handle_connection() function and some of the support
functions so that they do perform the domain filtering and anonymous
filtering while still connecting to the upstream proxy. I think the code
should be cleaned up further.
2001-09-16 20:10:19 +00:00
Robert James Kaes a8f0272ace Added the token for Upstream and the code the handle the upstream
directive in the configuration file.
2001-09-16 20:08:24 +00:00
Robert James Kaes ec9068fae8 Added the example for the upstream proxy directive. 2001-09-16 20:07:50 +00:00
Robert James Kaes 4e2b0d5b83 Added a configure option for upstream proxy support.
Bumped the version number.
2001-09-16 20:07:24 +00:00
Robert James Kaes 319a1c65b1 Added upstream proxy support. 2001-09-16 20:06:51 +00:00
Robert James Kaes 4619035cd2 Fixed a problem where log messages could be missed during a rotate. 2001-09-16 05:38:27 +00:00
Robert James Kaes 8df2fba997 More changes. 2001-09-15 21:32:24 +00:00
Robert James Kaes 9860222979 Added the send_http_message() function to handle sending messages back to
the client. It's used by httperr() and showstats().
2001-09-15 21:29:59 +00:00
Robert James Kaes d3213f193c Changed to rotating the log file instead of truncating it. Also using the
create_file_safely() function to eliminate potential security problems.
2001-09-15 21:29:22 +00:00
Robert James Kaes d2ddca583e Removed the memory allocation log messages. 2001-09-15 21:28:25 +00:00
Robert James Kaes 7615024f27 Changed to using the send_http_message() function so that the HTTP headers
are sent properly.
2001-09-15 21:27:58 +00:00
Robert James Kaes b7fc58333b Removed the log messages related to memory allocation.
Move the SSL response header into into own function.
Added support for the status host.
2001-09-15 21:26:14 +00:00
Robert James Kaes 1c8dcecf82 Removed the log message when unable to allocate memory. 2001-09-15 21:24:18 +00:00
Robert James Kaes 48ddb827a7 Updated the authorization string. 2001-09-15 21:21:01 +00:00
Robert James Kaes 13c1e97beb The biggest change is the added support for SSL. 2001-09-14 23:45:15 +00:00
Robert James Kaes 0689226ba6 Bumped up version number. 2001-09-14 23:44:47 +00:00
Robert James Kaes 9d61e1fd4b Removed these files since their functionality has been replaced. 2001-09-14 23:43:59 +00:00
Robert James Kaes ea4d707d12 Finally got the SSL problem fixed. We can not send _any_ client headers
(including the new line) to the origin server when in tunnelling mode. SSL
now works correctly. Yeah.
2001-09-14 21:16:56 +00:00
Robert James Kaes 9c520c7a50 Changed the buffer pointer in safe_write() to be const void* since we're
not changing the values.

Instead of building a new request and memory, simply send each part
separately. Actually uses less memory _and_ less code.
2001-09-14 19:50:45 +00:00
Robert James Kaes dab361f764 When logging an error indicate the file descriptor and the error number. 2001-09-14 19:49:10 +00:00
Robert James Kaes 7bfb5527ff Include the SSL field in the connection structure since we're going to
handle SSL connections.
2001-09-14 04:56:58 +00:00
Robert James Kaes c6d2e0f7ff Massive changes. Split process_method() into a bunch of smaller files and
changed the parsing code from REGEX and uri.c to a simplier sscanf()
method. Also, include code to handle SSL connections, but that's not quite
working yet.
2001-09-14 04:56:29 +00:00
Robert James Kaes bce9e6601e Removed the reference to uri.c and uri.h since the new reqs.c doesn't use
them.
2001-09-14 04:55:06 +00:00
Robert James Kaes 6f6730c28d Fixed a memory leak in process_method(). 2001-09-12 03:33:43 +00:00
Robert James Kaes c48aea165d Fixed memory leak. 2001-09-12 03:33:15 +00:00
Robert James Kaes 25457361c7 Changed mallocs to callocs. 2001-09-12 03:32:54 +00:00
Robert James Kaes ac4bbe6bd6 Increased the number of "insertions" before the free memory. 2001-09-12 03:32:24 +00:00
Robert James Kaes cbe19e29c7 More changes. These all relate to the switch from stack memory to heap
memory.
2001-09-11 19:28:00 +00:00
Robert James Kaes e2f10bc2ea Added the debugging realloc() function. 2001-09-11 19:27:27 +00:00
Robert James Kaes 2c3cc9185d Set the stack size of threads to 32KB from 128KB. 2001-09-11 19:27:09 +00:00
Robert James Kaes f8edd2d8b4 Switched the memory allocation for the large strings to heap based instead
of stack based.
2001-09-11 19:26:49 +00:00
Robert James Kaes 5dd98ac658 Bumped up the preversion number 2001-09-11 19:24:44 +00:00
Robert James Kaes 8aca9455b2 Style stuff. 2001-09-11 04:38:23 +00:00
Robert James Kaes 04ea116e8e Updated version number. 2001-09-11 04:21:18 +00:00
Robert James Kaes 1bc68cc41d Fixed a memory leak. 2001-09-11 04:14:43 +00:00
Robert James Kaes 365df5b5be Used safecalloc() instead of malloc() and memset(). Fixed a potential
memory leak with the regular expression engine.
2001-09-11 04:13:58 +00:00
Robert James Kaes c04ffd3913 Comment cleanup. 2001-09-11 04:12:47 +00:00
Robert James Kaes 07bcd97961 More changes. 2001-09-08 18:59:13 +00:00
Robert James Kaes 80fc4a8b94 New pre version 2001-09-08 18:58:57 +00:00
Robert James Kaes 0668e42e8f Changed all the mallocs and callocs to use the new safemalloc and
safecalloc.
2001-09-08 18:58:37 +00:00
Robert James Kaes d5253ec5f4 Lowered the number BUFARRAY and BUFSIZE constants to reduce the maximum
memory usage of a ternary tree. It now should not exceed 4MB of memory.
2001-09-08 18:58:02 +00:00
Robert James Kaes 78bc90cd07 Lowered the number of insertions before the ternary tree is rebuilt. 2001-09-08 18:56:30 +00:00
Robert James Kaes 4923dd22a7 Added the debugging_(malloc|calloc|free) functions to help track memory
usage. There are also now defines for safe(malloc|calloc|free) which allow
for debugging code to be enabled or not.
2001-09-08 18:55:58 +00:00
Robert James Kaes b8a694e7a3 Fixed a memory leak in thread_main(). 2001-09-08 06:29:04 +00:00
Robert James Kaes 28d955a3c8 Explictly added the DETACHED creation method on threads. 2001-09-07 18:19:39 +00:00
Robert James Kaes 2b781f537c Updates. 2001-09-07 04:21:53 +00:00
Robert James Kaes 1a9dc4e7e8 Error message cleanup. 2001-09-07 04:21:07 +00:00
Robert James Kaes f5b9bdb93d Fixed up return types. 2001-09-07 04:20:04 +00:00
Robert James Kaes ea1309bf73 Error message cleanup.
Include locking around access to the servers_waiting variable.
2001-09-07 04:19:05 +00:00
Robert James Kaes 4dd64f873e Updates 2001-09-07 00:45:32 +00:00
Robert James Kaes aa9e05430a Added the ability to clear out the DNS cache after a certain number of
insertions.
2001-09-07 00:40:34 +00:00
Robert James Kaes c24cace1d1 Fixed the ternary_destroy() function which causes segfaults. 2001-09-07 00:38:03 +00:00
Robert James Kaes 32ce57a6f6 Still need to fix a problem with tinproxy segfaulting when we try to
delete the ternary tree.
2001-09-06 21:53:16 +00:00
Robert James Kaes 4670eb5194 Make sure that freeptr actually points to something before we try to
invoke it.
2001-09-06 21:52:31 +00:00
Robert James Kaes f2312262c7 Try moving the kill thread code into the thread_main() function so it can
check if there are too many thread after it's finished with it's request.
Needs to be cleaned up further (if this is the right idea) because of the
locking around the servers_waiting variable.
2001-09-06 21:16:35 +00:00
Robert James Kaes 445aaca53e Initialzed the servers_waiting explictly. Added debugging code to find out
why the threads are not being closed.
2001-09-06 19:00:47 +00:00
Robert James Kaes 05cc60042e New news. :) 2001-09-04 18:31:43 +00:00
Robert James Kaes 11cbe6cb5b More updates. 2001-09-04 18:22:12 +00:00
Robert James Kaes c937858ec1 Moved the compare_header() test after the skip header test. 2001-09-04 18:22:00 +00:00
Robert James Kaes 667b9d5d53 Switched to a case insensitive search method. 2001-09-04 17:53:41 +00:00
Robert James Kaes 0094d2755b Bumped the version number. 2001-09-04 16:52:04 +00:00
Robert James Kaes b095c7a84d Updates. 2001-09-04 16:50:45 +00:00
Robert James Kaes 45a021a18b Fixed a format string bug with the syslog function. 2001-09-04 16:50:22 +00:00
Robert James Kaes aac5f60602 Headers MUST have quotes around them. 2001-08-31 15:20:56 +00:00
Robert James Kaes 2857b4be36 Spelling and grammar fixes. 2001-08-30 22:00:36 +00:00
Robert James Kaes 2577811738 New information for Thursday, August 30, 2001 2001-08-30 16:58:41 +00:00
Robert James Kaes 66012c4e8e Another new version. 2001-08-30 16:54:04 +00:00
Robert James Kaes c825db8d56 More fixes. 2001-08-30 16:53:36 +00:00
Robert James Kaes fc94a56f56 Removed the xstrstr() function since it is no longer used. reqs.c was the
only place it was called from, and strstr() will do the same work.
2001-08-30 16:52:56 +00:00
Robert James Kaes a328cefbf0 Renamed ternary_insert() to ternary_insert_replace() and added the ability
to replace existing data (without a memory leak.) Added two DEFINES
ternary_insert() and ternary_replace() to aid in coding.
2001-08-30 16:52:09 +00:00
Robert James Kaes 22bdb8123d Replaced the call to xstrstr() with strstr(). 2001-08-30 16:51:10 +00:00
Robert James Kaes c83c92a0d1 Removed the insert_data() function and made the LOCKing go around the
entire dnscache() function. Replaced the "replace" code in dns_insert()
with a call to ternary_replace().
2001-08-30 16:50:42 +00:00
Robert James Kaes f68f30c7aa New style and new information. 2001-08-29 15:56:48 +00:00
Robert James Kaes c165c83f55 New minor version number. 2001-08-29 15:29:29 +00:00
Robert James Kaes 5584d30eed More change logs. 2001-08-29 04:06:00 +00:00
Robert James Kaes 551e7cf39f Fixed a problem where the REGEX library was included even if the system
already had a working library.
2001-08-29 04:05:33 +00:00
Robert James Kaes 51e4ebb293 Text clean up. 2001-08-29 04:04:01 +00:00
Robert James Kaes d06ddc50ab Removed the new_dnscache() call. 2001-08-29 04:01:05 +00:00
Robert James Kaes fcff398f31 Cleaned up the locking code to make it more fine grained. Did this since
dncache.c has locking itself now.
2001-08-29 04:00:22 +00:00
Robert James Kaes 9bdfa623ba Changed how we handle when compiled with debug code. 2001-08-29 03:59:12 +00:00
Robert James Kaes 4c24890f17 Removed the new_dnscache() function and the ternary.h include. 2001-08-29 03:58:39 +00:00
Robert James Kaes c9a772e36b Added a more fine grained locking system for multiple threads.
Removed the new_dnscache() function and moved it into dnscache().
Fixed a memory leak in dns_insert().
2001-08-29 03:57:51 +00:00
Robert James Kaes f864ff281f Update regarding the log level problems. 2001-08-28 15:54:52 +00:00
Robert James Kaes 1dd459c9ec New version number. 2001-08-28 15:52:53 +00:00
Robert James Kaes 42849c7d66 Fixed a problem in log.c 2001-08-28 15:52:40 +00:00
Robert James Kaes 9a61faa716 The logging levels _now_ output the correct information depending on where
the config file sets it.
2001-08-28 15:51:58 +00:00
Robert James Kaes 4dbc4a637b More changes. 2001-08-28 04:35:03 +00:00
Robert James Kaes ee892c109b Added an extra CRNL to the end of the HTML body. 2001-08-28 04:33:54 +00:00
Robert James Kaes fd65072f1f Changed the default stack size to 128 KB. 2001-08-28 04:33:21 +00:00
Robert James Kaes f9d0fcd1a2 Moved the strip new line/carriage return from the end of a line into a
separate function.
2001-08-28 04:32:14 +00:00
Robert James Kaes 298784d80e Fixed a problem with the POSIX threading on FreeBSD systems. 2001-08-27 19:57:24 +00:00
Robert James Kaes 88e4aed397 More news of course. 2001-08-27 17:51:40 +00:00
Robert James Kaes 1c2a42af9c Stop CVS from giving me an error. 2001-08-27 17:48:27 +00:00
Robert James Kaes f61c275395 More changes as per usual. :) 2001-08-27 17:47:40 +00:00
Robert James Kaes 23b44e67df Bumped up the version number.
Added a test for FreeBSD so that it can set GCC to compile with POSIX
threading.
2001-08-27 17:47:25 +00:00
Robert James Kaes f7d0ea8784 Changed the MIME type to text/html rather than the incorrect text/mime. 2001-08-27 17:46:50 +00:00
Robert James Kaes be9ce3ad26 Moved some of the includes around so that FreeBSD can compile correctly. 2001-08-27 17:46:20 +00:00
Robert James Kaes e88c426966 Changed the default stack size since some OS's have a stack size which is
too small.
2001-08-27 17:45:50 +00:00
Robert James Kaes bf7a671d87 Fixed a problem where the connect messages were not getting logged if the
log level was set to INFO.
2001-08-27 17:44:55 +00:00
Robert James Kaes f72ebfe0d8 More information regarding the various changes. 2001-08-27 03:52:05 +00:00
Robert James Kaes c25c7a947f Updated the version number. 2001-08-27 03:47:47 +00:00
Robert James Kaes 194e1ad9cc New change log entries. 2001-08-27 03:46:51 +00:00
Robert James Kaes 3b5e17d579 Split the headers from the message body. Also now include proper headers
like Date, Server, Content-Length, etc. Also, fixed the type for an error
message to be const char*.
2001-08-27 03:45:34 +00:00
Robert James Kaes 771425700d Fixed a SEGV problem with invalid requests. 2001-08-27 03:44:22 +00:00
Robert James Kaes 7be408859d Update the items which still need to be worked on. 2001-08-27 01:05:32 +00:00
Robert James Kaes 7889aa4951 Don't include ./reconf in the tarball. 2001-08-27 01:05:06 +00:00
Robert James Kaes f590a7d738 More changes. 2001-08-27 01:04:48 +00:00
Robert James Kaes cc70fc6f43 Fixed a problem with the new LOG_CONN log level. 2001-08-26 23:37:26 +00:00
Robert James Kaes e19889ff5b Added the NDEBUG define in the optimized builds. 2001-08-26 23:36:48 +00:00
Robert James Kaes 0ca3a710da Updated the Change Log 2001-08-26 23:36:18 +00:00
Robert James Kaes d30ca6f3db Spelling fix. 2001-08-26 22:10:18 +00:00
Robert James Kaes 7a251ed492 New version, so new NEWS :) 2001-08-26 22:09:53 +00:00
Robert James Kaes bb42ea2edb Added the TARGET_SYSTEM define. 2001-08-26 21:24:34 +00:00
Robert James Kaes af2d81ed71 Updated the Change Log information. 2001-08-26 21:24:01 +00:00
Robert James Kaes 181f6845fb Added Hans-Georg Brok to the list of people who have helped with tinyproxy 2001-08-26 21:23:32 +00:00
Robert James Kaes 0f6f9669ae Updated the version information and added the TARGET_SYSTEM define. 2001-08-26 21:22:09 +00:00
Robert James Kaes e24a5fcf14 Added the Connect log level to the comments for LogLevel. 2001-08-26 21:21:13 +00:00
Robert James Kaes 073822fa3e Added the '-l' option to the list of information. 2001-08-26 21:20:49 +00:00
Robert James Kaes cebda5913d Removed the config.anonymous entry since we've moved the information into
anonymous.c file.
2001-08-26 21:18:04 +00:00
Robert James Kaes 5530451545 Renamed versiondisp() to display_version() and added the PACKAGE, VERSION,
and TARGET_SYSTEM into the version list. Also moved the license into a
separate function. Renamed usagedisp() to display_usage(). Fixed a problem
where the anonymous search tree was being created _after_ it was being
accessed.
2001-08-26 21:17:30 +00:00
Robert James Kaes 7fe7ee2828 Fixed a problem where child threads would not be closed if they had been
created after the initial creation. Also fixed a problem where the status
of the threads were not going back to T_WAITING if MaxRequestsPerChild was
0.
2001-08-26 21:14:30 +00:00
Robert James Kaes af10311eaf Fixed a problem with the Anonymous filtering. Basically, anonymous
filtering was not working in the previous version.
2001-08-26 21:11:55 +00:00
Robert James Kaes e5819ebe1c Added the Connect log level. 2001-08-26 21:10:04 +00:00
Robert James Kaes 849345e88b Removed the anon_new() function and moved it's functionality into
anonymous_insert(). Also renamed all the anon_* functions to anonymous_*
function.
2001-08-26 21:07:27 +00:00
Robert James Kaes 99dfce8f49 Updated the email address. 2001-06-24 18:20:36 +00:00
Robert James Kaes 7e6ab1cb19 Fixed up the configuration options listed and also my email address. 2001-06-24 18:19:12 +00:00
Robert James Kaes 7ec6f8c512 Renumbered to the full 1.4.0 version (no more pre-versions.) 2001-06-24 18:12:37 +00:00
Robert James Kaes ace480bb65 Fixed the include order to better handle the sys/time.h and time.h
headers.
2001-06-06 19:33:26 +00:00
Robert James Kaes ff97b38603 Explictly cast getpid() to a long int to remove the compiler warnings on
various machines.
2001-06-06 19:32:51 +00:00
Robert James Kaes f64578eef1 Changed in configure.in 2001-06-06 19:32:23 +00:00
Robert James Kaes 91af06dd1a Completely reorganized the file. I'm trying to follow the layout specified
in the Autoconf manual.
2001-06-06 19:32:09 +00:00
Robert James Kaes 883d4f5062 Misspelled the sysexits.h header in the header test. 2001-06-05 16:08:45 +00:00
Robert James Kaes 540e33000b Changed the format type in the printf() to remove the compiler error (I
hope.)
2001-06-05 16:08:15 +00:00
Robert James Kaes 58c31c5514 Had a problem where we test for the libraries, but not actually included
then in the linking.
2001-06-05 03:56:52 +00:00
Robert James Kaes 56960edd72 New changelog listings... 2001-06-05 03:56:22 +00:00
Robert James Kaes 8c269c96bc Reflect the changes made to the source. 2001-06-04 23:33:52 +00:00
Robert James Kaes c256744327 Removed the -with-{user,port,logfile} and added the -with-config for the
default location of the configuation file.
2001-06-04 23:33:11 +00:00
Robert James Kaes 135d4f5080 Remove the DEFAULT_LOG, DEFAULT_USER, and DEFAULT_PORT 2001-06-04 23:31:39 +00:00
Robert James Kaes f43404aeef Removed the DEFAULT_LOG, DEFAULT_PORT, and DEFAULT_USER directives since
these MUST be set in the configuration file.
2001-06-04 23:30:34 +00:00
Robert James Kaes 93d352853b Added the change for the LogLevel directive in doc/tinyproxy.conf 2001-06-02 17:34:27 +00:00
Robert James Kaes 8f0258a635 Improved the clarity of the LogLevel directive (in the comments.) 2001-06-02 17:30:48 +00:00
Robert James Kaes f8932cf4ee Looked at the file a bit more and cleaned up some of the style problems. 2001-06-02 17:26:19 +00:00
Robert James Kaes 477d0984a3 Added J.D. Bronson to the list of helpful people. :) 2001-06-02 17:24:54 +00:00
Robert James Kaes 5afba764bb Fixed the tests for libsocket, libnsl, and libresolv. Improved the tests
for the yacc program since bison 1.25 was originally used to write the
scanner. Updated the list of headers to look for when configuring. Bumped
up the prerelease number.
2001-06-02 17:23:16 +00:00
Robert James Kaes 3dfc5e84cc Fixed a type problem with fprintf in log_message() when logging the PID. 2001-06-02 03:38:02 +00:00
Robert James Kaes 118f4fd9dd Fixed a problem with --with-port= configuration option. 2001-06-02 03:33:17 +00:00
Robert James Kaes 164717b336 Include the LogLevel switch and comments to describe the settings. 2001-06-02 03:12:33 +00:00
Robert James Kaes 65a41578ad New version (reflects changes to add the LogLevel switch) 2001-06-02 03:11:14 +00:00
Robert James Kaes e45c95fa97 LOG_EMERG doesn't exist anymore, so replace it with LOG_CRIT. 2001-06-02 03:10:34 +00:00
Robert James Kaes a9720e85f6 Include LogLevel and it's settings into the grammar of the config file. 2001-06-02 03:10:09 +00:00
Robert James Kaes 2925b18412 Added the code for handling selective logging. 2001-06-02 03:09:27 +00:00
Robert James Kaes cce7ca652c Added a test for the resolv library for the gethostby* functions. 2001-06-02 02:12:47 +00:00
Robert James Kaes 0a5b82cd97 Fixed up the names of the DEFINES. 2001-06-02 02:07:34 +00:00
Robert James Kaes ebdec66eda Fixed Steve's email address and other "minor" cleanups. 2001-06-01 20:35:33 +00:00
Robert James Kaes 20c419a486 Update the email address where the report is sent. 2001-05-30 16:12:34 +00:00
Robert James Kaes 0b98f16c61 Added a few points for future work on tinyproxy. 2001-05-30 16:11:13 +00:00
Robert James Kaes 86bbc9764f Moved the information into the doc/TODO file. 2001-05-30 16:09:39 +00:00
Robert James Kaes abbdec5ca9 Updated to reflect the 1.4.0 release. 2001-05-30 16:02:41 +00:00
Robert James Kaes b5584c243a Fixed Steve's email address. 2001-05-30 16:01:33 +00:00
Robert James Kaes 4d6e753caf This file no longer needs to be part of the distrubution. I'm trying to
not release buggy software. :)
2001-05-30 15:48:33 +00:00
Robert James Kaes 5b11a1e2c9 Formating changes. Also, explictly close the client_fd when the
connections are destroyed.
2001-05-30 15:45:14 +00:00
Robert James Kaes 101cf497d5 Updated ChangeLog 2001-05-27 02:40:43 +00:00
Robert James Kaes 35a8e54bbe Bumped up the version number. Added a test for the ftruncate() and
setrlimit() functions.
2001-05-27 02:40:23 +00:00
Robert James Kaes 7febdd028c Changed all references to log() to log_message(). 2001-05-27 02:38:46 +00:00
Robert James Kaes 154a2e0880 Changed the references to log() to log_message(). Also changed some of the
data types for the variables.
2001-05-27 02:37:18 +00:00
Robert James Kaes 1cd4d6d440 Added code to stop the creation of core files.
Changed all references to log() to log_message().
2001-05-27 02:36:22 +00:00
Robert James Kaes b242a2896e Changed the thread_main() function to only deal with the connections per
thread if the user has actually requested it.
Also changed some of the data types for the variables.
2001-05-27 02:33:35 +00:00
Robert James Kaes 42b09e5441 Removed the SA define.
Made the sock_mutex static since it's not referenced outside the file.
Changed the data types for some of the variables.
Cleaned up the readline function (changed data types and removed
variables.)
2001-05-27 02:31:20 +00:00
Robert James Kaes 981adafb5d Changed some of the types to Posix data types.
Changed any reference to log() to log_message().
Fixed a potential memory leak in process_method().
Removed redundant code and variables in relay_connection().
2001-05-27 02:29:06 +00:00
Robert James Kaes 91ba2103d1 Changed the reference from log() to log_message(). 2001-05-27 02:26:53 +00:00
Robert James Kaes f89272be35 Changed the log() function to log_message(). 2001-05-27 02:26:11 +00:00
Robert James Kaes 627c88c736 Changed all the references to log() to log_message(). 2001-05-27 02:25:21 +00:00
Robert James Kaes 69617f6d56 Just a bit of a cleanup. Nothing major. 2001-05-27 02:24:40 +00:00
Robert James Kaes 938b7e7f21 Fixed the return type for new_dnscache(). 2001-05-27 02:24:00 +00:00
Robert James Kaes 23c08ca3ee Changed the types for various variables. Some the functions had the
variable types changed as well.
2001-05-27 02:23:08 +00:00
Robert James Kaes df52296674 Updated the return type for new_anonymous(). 2001-05-27 02:21:37 +00:00
Robert James Kaes bf477e9dff Renamed the access member of struct acl_s to acl_access.
Changed some of the types for the various variables to better reflect what
they are actually being used for.
2001-05-27 02:20:54 +00:00
Robert James Kaes 8045684c69 Maintain a list of things which still need to be addressed. 2001-05-25 21:50:05 +00:00
Robert James Kaes b33e41eff1 Updated the change log 2001-05-23 18:19:47 +00:00
Robert James Kaes d32e0d1ccb Added ASSERT statements. 2001-05-23 18:01:23 +00:00
Robert James Kaes 86313eb6f5 Made the safefree() macro enabled all the time. 2001-05-23 18:00:54 +00:00
Robert James Kaes b1d942c22a Removed a debugging aid. 2001-05-23 17:59:53 +00:00
Robert James Kaes 3f8b219210 Removed a DEBUG line in the "can't happen" case. 2001-05-23 17:59:08 +00:00
Robert James Kaes 03ffa590b7 Just a formatting change. 2001-05-23 17:58:19 +00:00
Robert James Kaes 36d84f4bc1 Make the netmask static and include the asserts. 2001-05-23 17:57:22 +00:00
Robert James Kaes fedbe888e8 Fixed a potential problem with not zeroing the number of connections when
the threads are emptied.
2001-05-23 17:56:35 +00:00
Robert James Kaes bd9f75edf8 Bumped up the pre version number 2001-01-15 17:13:37 +00:00
Robert James Kaes 93b201d23b Fixed more potential overflow bugs. 2001-01-15 17:11:57 +00:00
Robert James Kaes 2f2d74e9f2 Fixed a potential security bug in http_err. There was a possibility of a
heap overflow exploit.
2001-01-15 17:06:19 +00:00
Robert James Kaes cc704ae7a7 Fixed a bug where the ':' character was not being properly detected. 2001-01-02 19:30:40 +00:00
Robert James Kaes 7d0dcc9781 Rolling out the first pre to 1.4.0 2000-12-09 20:03:40 +00:00
Robert James Kaes d5467e404b Implimented the MaxRequestsPerChild directive. 2000-12-09 02:35:30 +00:00
Robert James Kaes da7a96a2e4 Updated changelog 2000-12-08 03:35:58 +00:00
Robert James Kaes 0051208777 Fixed a problem with polling for the number of active threads. No longer
polls. :)
2000-12-08 03:35:07 +00:00
Robert James Kaes 068b0337c5 Fixed MACRO error. 2000-11-23 04:49:26 +00:00
Robert James Kaes c01af94a1c Fixed spelling mistake. 2000-11-23 04:46:48 +00:00
Robert James Kaes b023ff577f Changed the filter_host command to filter_url. 2000-11-23 04:46:25 +00:00
Robert James Kaes 1a2b20af5b Updated Information. 2000-10-23 21:47:39 +00:00
Robert James Kaes b6c6939e0a In the Key Found code, don't display the string in the debug code since it
doesn't exist anymore when we display it. Doh!
2000-10-23 21:46:38 +00:00
Robert James Kaes 1de608ec5c Added the initialization section for the DNS and Anonymous sub systems. 2000-10-23 21:44:43 +00:00
Robert James Kaes 5a5c2adcd8 Added the new_anonymous initialize routine 2000-10-23 21:43:52 +00:00
Robert James Kaes 670fad4a41 Added the new_dnscache routine to initialize the Ternary tree. Also,
removed the garbage collection routine.
2000-10-23 21:42:31 +00:00
Robert James Kaes 21e4d8a9bd Updated documentation. 2000-09-26 05:00:13 +00:00
Robert James Kaes 91b7c55972 Fixed the insert function to handle a failed insert properly. 2000-09-26 04:59:48 +00:00
Robert James Kaes ba5e5fc109 Added the TE_EXISTS return code, and cleaned up the ternary_destroy
function.
2000-09-26 04:59:20 +00:00
Robert James Kaes a2c3e5ecc9 Moved the safefree() macro to the tinyproxy.h header. 2000-09-26 04:58:35 +00:00
Robert James Kaes fd61e791b5 Updated the free() calls to the safefree() calls. 2000-09-26 04:57:46 +00:00
Robert James Kaes 1ad48fd906 Updated documentation. 2000-09-21 16:58:57 +00:00
Robert James Kaes 8398c7337d There is no LOG_EMERG level, so changed to LOG_CRIT. 2000-09-21 16:57:10 +00:00
Robert James Kaes 30f36f3aa6 Added the LOG_NOTICE level. 2000-09-21 16:53:51 +00:00
Robert James Kaes 1deed67e1f These are generated by grammar.y and scanner.l respectively, don't include
them in the CVS.
2000-09-15 20:58:57 +00:00
Robert James Kaes 955eb4b966 Automatically generated file. 2000-09-15 20:57:08 +00:00
Robert James Kaes 0b7488babe Don't include automatically generated files. 2000-09-15 20:55:29 +00:00
Robert James Kaes ee06d51e1a Don't included automatically generated files. 2000-09-15 20:53:59 +00:00
Robert James Kaes 573266fe44 Flipping again. :) Don't include any of the automatically generated stuff. 2000-09-15 20:52:28 +00:00
Robert James Kaes d0b36a6673 Need to do a check for the <stdint.h> header since it's not a standard
header available on all systems.
2000-09-14 16:41:20 +00:00
Robert James Kaes a5fbf4ea4b Again, needed for configure script. Automatically built by ./reconf 2000-09-12 18:10:30 +00:00
Robert James Kaes 5d42e65883 Needed for running configure. Automatically built with reconf 2000-09-12 00:45:39 +00:00
Robert James Kaes d8cc991bb3 Can be made from configure.in (and should be), but I want to be able to
check out the source and immediately configure it.
2000-09-12 00:43:50 +00:00
Robert James Kaes 15ea792c42 We don't use ADNS anymore so get rid of the tree. 2000-09-12 00:38:47 +00:00
Robert James Kaes 7a949c9470 Example tinyproxy configuration file. 2000-09-12 00:22:49 +00:00
Robert James Kaes d070239c53 We all know what this is. :) 2000-09-12 00:21:59 +00:00
Robert James Kaes da3301f01f A M4 macro for finding the various types on the system (typedefs, etc.) 2000-09-12 00:20:23 +00:00
Robert James Kaes 95ac302b8f New defaults, and better checking for various features needed by
tinyproxy. Looks like fun! :)
2000-09-12 00:18:17 +00:00
Robert James Kaes 0e7a2192cf Just updating the documentation. 2000-09-12 00:16:57 +00:00
Robert James Kaes dc18c065b7 These all handle reading the tinyproxy configuration file. 2000-09-12 00:12:52 +00:00
Robert James Kaes 2b5c6be1d5 Generalized the ternary code which was already being used in anonymous.*
now it can be used (and is used) in both anonymous and dnscache
2000-09-12 00:10:28 +00:00
Robert James Kaes de6f42d9fa Improvied access control semantics. Allows for a finger control for
allowing and denying hosts.
2000-09-12 00:08:48 +00:00
Robert James Kaes 322a53eb56 tinyproxy now uses a pool of threads to handle connections. All the work
for creating new threads, deleting old thread, and generally managing the
pool is done here.
2000-09-12 00:07:44 +00:00
Robert James Kaes bb32293415 This module handles the various stats relating to tinyproxy's
funcationality.
2000-09-12 00:06:09 +00:00
Robert James Kaes 392c97e3d1 MAJOR RE-WRITE! Read the ChangeLog and look at the source. It's shorter
than redocumenting the changes here. :)
2000-09-12 00:04:42 +00:00
Robert James Kaes 9f080da488 Fixed the change user/group ability.
Log when tinyproxy is using default values rather than specific ones.
Cleaned up the command line arguments since tinyproxy now uses a
configuration file.
Removed the USR1 signal and added the thread creation code.
2000-09-12 00:03:53 +00:00
Robert James Kaes 1efe0265de Removed the xmalloc() and xstrdup() functions.
Added the pidfile_create() function.
Added the OpenBSD style strlcat() and strlcpy() functions.
2000-09-12 00:01:29 +00:00
Robert James Kaes 04fc081e6d Switched to the new logging style and replaced the xmalloc() with straight
malloc().
2000-09-11 23:57:43 +00:00
Robert James Kaes f6b7fe3f5c Needed locking in getpeer_string().
Added mutex locking around the dnscache() call.
Removed the global sockaddr and setup_fd variables.
Added the socket_blocking() and socket_nonblocking() functions.
Gutted the readling() function and replaced it with something similar to
the 1.0 version. :)
2000-09-11 23:56:32 +00:00
Robert James Kaes c0ff35dd22 Moved back to the <config.h> for autoconf defines. 2000-09-11 23:50:07 +00:00
Robert James Kaes 4f4f91f76f Cleaned up the logging format, and also included logging levels (which are
similar to the syslogd format.)
2000-09-11 23:47:52 +00:00
Robert James Kaes 5d7063a79e Not using <defines.h> for autoconf anymore, so move back to the <config.h>
format.
2000-09-11 23:46:42 +00:00
Robert James Kaes f807f4b96c Just using standard malloc() since the xmalloc() didn't really add
anything useful to the command.
2000-09-11 23:43:59 +00:00
Robert James Kaes df030a075f Removed the custom hash routines. Using the ternary module instead. 2000-09-11 23:42:43 +00:00
Robert James Kaes b7f7599d76 Cleaned up the source so that the internal structure is no exposed by the
buffer.h header.
2000-09-11 23:41:32 +00:00
Robert James Kaes 55185db499 Removed the ternary tree code from these files and made it a separate
module.
2000-09-11 23:38:36 +00:00
Robert James Kaes 06281b7898 Modified to include all the files needed to build tinyproxy, plus the
special targets for building the LEX and YACC files. (Also included the
GNU license.)
2000-09-11 23:37:01 +00:00
Robert James Kaes ad28ae027a Since the tinyproxy program has changed, the manual had to change as well.
Documents all the command line arguments, though I think I need to
document the configuration file as well.
2000-09-11 23:33:37 +00:00
Robert James Kaes 864e955bbd Updated to reflect the new reality of the tinyproxy source code. 2000-09-11 23:32:43 +00:00
Robert James Kaes b00b4158f2 This was the layout for the purposed config file. This is no more. 2000-09-11 23:31:05 +00:00
Robert James Kaes cb3de97e56 This was the generic INSTALL file, but the INSTALL file itself is again the generic file. :) 2000-09-11 23:27:39 +00:00
Robert James Kaes 2d9d164034 These files are no longer used within tinyproxy. 2000-09-11 23:24:59 +00:00
Robert James Kaes 1227e88bfd Reflect changes made in source. 2000-06-06 17:58:30 +00:00
Robert James Kaes 3ba5d76120 Fixed the links for finding tinyproxy. Thanks to Simon Baker for pointing
this out.
2000-06-06 17:56:44 +00:00
Robert James Kaes 73b1ff1b1a Reorganized (or added) the #include <sys/types.h> line so tinyproxy would
compile cleanly on FreeBSD systems.
2000-04-26 16:31:29 +00:00
Robert James Kaes d0a05357a1 Fixed a bug with the path in clientreq. If the path was empty it caused a
malformed request to be sent.
2000-03-31 22:55:22 +00:00
Robert James Kaes 770c71969e A whole whack of changes and bug fixes. 2000-03-31 20:15:13 +00:00
Robert James Kaes 8a563800e4 Added a line for the anonymous.* files. 2000-03-31 20:14:45 +00:00
Robert James Kaes b841f484aa Changed the socket time out to 10 secs. 2000-03-31 20:14:26 +00:00
Robert James Kaes dede5f36a8 Updated the anonheader function to use the new anonymous API. Removed the
hack for the POST method in clientreq.
2000-03-31 20:13:36 +00:00
Robert James Kaes 2562d28129 Completely rewrote the readline function. 2000-03-31 20:10:13 +00:00
Robert James Kaes ae347fc87a Added the working_* fields as a scratch pad for readline(). 2000-03-31 20:09:19 +00:00
Robert James Kaes 0edeabbd63 Removed the allowedhdr_s structure since it is now accessed through
anonymous.*
2000-03-31 20:08:19 +00:00
Robert James Kaes b1e97bd24f Moved the anonymous header code into it's own file to make it easier to
update.
2000-03-31 19:56:55 +00:00
Robert James Kaes 6a1c2dde79 Updated to list changes in src/reqs.c and src/dnscache.c 2000-03-29 16:19:05 +00:00
Robert James Kaes 477dacb5fa Included the <sys/types.h> header. 2000-03-29 16:18:05 +00:00
Robert James Kaes 0d421b5c39 Fixed a bug with the clientreq function which was incorrectly setting the
clientheader flag and causing _all_ headers to be sent even in anonymous
mode.
2000-03-29 16:17:37 +00:00
Robert James Kaes 85a7ebdacb Updated ChangeLog entry for new fix. 2000-03-28 16:44:38 +00:00
Robert James Kaes 46076808fb Fixed another NULL bug with the uri->authority. If an badly formed request
was made in the form of http:\\www.somewhere.com/ tinyproxy would SEGV.
This has been corrected.
2000-03-28 16:41:45 +00:00
Robert James Kaes add003fd0c Updated to reflect changes in src/reqs.c 2000-03-28 16:21:58 +00:00
Robert James Kaes d222c7725b Fixed a NULL pointer bug in clientreq. If the SCHEME in the URL was NULL
the program would SEGV. This was caused by the error logging code.
2000-03-28 16:19:12 +00:00
Robert James Kaes c2ef08202b Remove the defines for DEFAULT_* and UPSTREAM (they've been moved into
acconfig.h and configure).
2000-03-13 00:56:21 +00:00
Robert James Kaes c5bfeb33ac List all the changes which has occured on the program. 2000-03-13 00:55:29 +00:00
Robert James Kaes a6a6591f7c Added the support for the upstream proxy and also made the defaults for the
LOGFILE, USER, and PORT.
2000-03-11 20:43:25 +00:00
Robert James Kaes 10317d6701 Included the changes needed to re-add the upstream proxy option. 2000-03-11 20:37:44 +00:00
Robert James Kaes e5b99e549d Updated the manual to reflect all the options, plus provide additional
information concerning the changes made to some of the options.
2000-03-11 20:36:48 +00:00
Robert James Kaes 1784fac73e Re-ordered some of the arguments.
Included the support for the Upstream Proxy.
2000-03-11 20:35:52 +00:00
Robert James Kaes 3d6ee12d89 Once again, these files are made automatically, don't include them. 2000-03-11 20:34:44 +00:00
Robert James Kaes cccc44c701 Again, the file is generated automatically, so don't include it. 2000-03-11 20:33:38 +00:00
Robert James Kaes 2d8e8cecb0 These files are generated by reconf, so don't include them in the CVS. 2000-03-11 20:32:26 +00:00
Steven Young 37e63909c0 This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
2000-02-16 17:32:49 +00:00
cvs2svn a094587fb0 New repository initialized by cvs2svn. 2000-02-16 17:32:49 +00:00
313 changed files with 14216 additions and 44799 deletions

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
INSTALL
Makefile
Makefile.in
aclocal.m4
config.cache
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
depcomp
install-sh
libtool
missing
stamp-h1
autom4te.cache
cscope.files
cscope.out
*~
tags
+18 -5
View File
@@ -1,6 +1,19 @@
tinyproxy is a collaborative work between Steven Young
<sdyoung@well.com> and Robert James Kaes <rjkaes@flarenet.com>.
Early History
-------------
From versions 0-1.1, Steven Young was the primary maintainer.
From 1.2 to 1.3.0, Robert James Kaes was the primary maintainer.
As of 1.3.1, Steven Young will once again be the primary maintainer.
Steven Young is the original author and was the primary maintainer of
tinyproxy until version 1.1. He also maintained the project from
version 1.3.1 until 1.4.0.
Robert James Kaes is the current maintainer and lead programmer. He
also maintained the project between versions 1.2 and 1.3.0, and again
starting with version 1.4.0.
Major Additions/Improvements
----------------------------
James E. Flemer <jflemer@acm.jhu.edu> - URL/domain filtering
Kim Holviala <kim@holviala.com> - Reverse proxy support
Petr Lampa <lampa@fit.vutbr.cz> - Transparent proxy support
George Talusan <gstalusan@uwaterloo.ca> - URL/domain filtering
-9
View File
@@ -1,9 +0,0 @@
KNOWN BUGS
==========
There is exactly one known bug at the time of 1.3.2's release - when compiling
under some Linux distributions (notably, Debian), the compile process will
generate a number of warnings regarding __underflow. However, tinyproxy still
compiles and runs perfectly.
Patches welcome!
+12 -13
View File
@@ -1,8 +1,8 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
@@ -55,7 +55,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
@@ -278,7 +278,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
@@ -303,10 +303,9 @@ the "copyright" line and a pointer to where the full notice is found.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
@@ -336,5 +335,5 @@ necessary. Here is a sample; alter the names:
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
+2140 -107
View File
File diff suppressed because it is too large. Load diff
-24
View File
@@ -1,24 +0,0 @@
Installing tinyproxy 1.3.2
==========================
As of 1.3.2, tinyproxy uses Ian Jackson's adns library to perform non-blocking
DNS lookups. As such, before you can do anything to install tinyproxy, you must
go into the adns-0.6/ subdirectory off the root tinyproxy distribution directory
and follow the INSTALL directions therein. Once you have libadns installed,
follow these steps:
(1) Run the tinyproxy 'configure' script, found in the root distribution
directory. If you're unsure of exactly what arguments to use, please
consult the output of 'configure --help'. Additional documentation can
be found for configure in the text file INSTALL.configure.
(2) Run 'make install'. This will build all of tinyproxy and install it
in the default directory. You may also wish to peruse src/config.h
to be sure everything is configured to your liking.
(3) Read the tinyproxy manpage - it will explain what commandline arguments
and parameters are available. More experienced users will probably
be able to get all the information they need from the output of
'tinyproxy -h'.
Enjoy! Please read the documentation carefully, especially the COPYING
file which should have been included in this archive explaining the licensing
terms of tinyproxy.
-182
View File
@@ -1,182 +0,0 @@
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.
+21 -2
View File
@@ -1,2 +1,21 @@
EXTRA_DIST = configure acconfig.h reconf
SUBDIRS = src doc
SUBDIRS = \
src \
data \
etc \
docs \
m4macros \
tests
# tools want this on a single line
ACLOCAL_AMFLAGS = -I m4macros
EXTRA_DIST = \
autogen.sh \
tinyproxy-indent.sh \
TODO
test: all
./tests/scripts/run_tests.sh
valgrind-test: all
./tests/scripts/run_tests_valgrind.sh
-354
View File
@@ -1,354 +0,0 @@
# Makefile.in generated automatically by automake 1.4a from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_FLAG =
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
CC = @CC@
CFLAGS = @CFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
VERSION = @VERSION@
EXTRA_DIST = configure acconfig.h reconf
SUBDIRS = src doc
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ./src/defines.h
CONFIG_CLEAN_FILES =
DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
Makefile.in NEWS THANKS acconfig.h aclocal.m4 configure configure.in \
install-sh missing mkinstalldirs src/defines.h.in src/stamp-h.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
$(ACLOCAL_M4): configure.in
cd $(srcdir) && $(ACLOCAL)
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)
src/defines.h: src/stamp-h
@if test ! -f $@; then \
rm -f src/stamp-h; \
$(MAKE) src/stamp-h; \
else :; fi
src/stamp-h: $(srcdir)/src/defines.h.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES= CONFIG_HEADERS=src/defines.h \
$(SHELL) ./config.status
@echo timestamp > src/stamp-h 2> /dev/null
$(srcdir)/src/defines.h.in: $(srcdir)/src/stamp-h.in
@if test ! -f $@; then \
rm -f $(srcdir)/src/stamp-h.in; \
$(MAKE) $(srcdir)/src/stamp-h.in; \
else :; fi
$(srcdir)/src/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
cd $(top_srcdir) && $(AUTOHEADER)
@echo timestamp > $(srcdir)/src/stamp-h.in 2> /dev/null
mostlyclean-hdr:
clean-hdr:
distclean-hdr:
-rm -f src/defines.h
maintainer-clean-hdr:
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
@SET_MAKE@
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive info-recursive dvi-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
test "$$subdir" = "." && dot_seen=yes; \
done; \
test "$$dot_seen" = "no" && rev=". $$rev"; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
cd $(distdir)/=build \
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) dist
-rm -rf $(distdir)
@banner="$(distdir).tar.gz is ready for distribution"; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
dist-all: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod 777 $(distdir)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
for subdir in $(SUBDIRS); do \
if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
chmod 777 $(distdir)/$$subdir; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|| exit 1; \
fi; \
done
info-am:
info: info-recursive
dvi-am:
dvi: dvi-recursive
check-am: all-am
check: check-recursive
installcheck-am:
installcheck: installcheck-recursive
install-exec-am:
install-exec: install-exec-recursive
install-data-am:
install-data: install-data-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-recursive
uninstall-am:
uninstall: uninstall-recursive
all-am: Makefile
all-redirect: all-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
installdirs: installdirs-recursive
installdirs-am:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
mostlyclean: mostlyclean-recursive
clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
clean: clean-recursive
distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
distclean: distclean-recursive
-rm -f config.status
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-recursive
-rm -f config.status
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
install-data-recursive uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
install-exec install-data-am install-data install-am install \
uninstall-am uninstall all-redirect all-am all installdirs-am \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
+69 -29
View File
@@ -1,41 +1,81 @@
Tinyproxy NEWS
==============
NEWS
====
Version 1.8.0
-------------
This is another interim release of tinyproxy that fixes a few more bugs,
and adds a feature or two (notably: non-blocking DNS lookups). It was
decided to move back what was previously going to be released as 1.3.2 and
release it as 1.4.0, as these bug fixes and patches were determined to be
too high-priority to wait on.
* Tinyproxy now reloads its configuration upon SIGHUP signal.
* Tinyproxy reopens its log file (instead of truncation) upon SIGHUP
signal. This is to play more nicely with logrotate.
* File logging is now the default.
Syslog is chosen if and only if "SysLog Yes" is in the config,
i.e., a present "SysLog Yes" in the config file now overrides
any LogFile setting.
* The XTinyProxy option is now documented as a global boolean.
Before it was documented to build a list of sites to add a
X-Tinyproxy header for, but it was implemented as global boolean.
* A new config option AddHeader allows the user to configure a list of
custom headers to send in outgoing HTTP requests.
* A new config option DisableViaHeader allows the user to disable
sending of the "Via:" header.
* Tinyproxy is now IPv6 capable.
* The config option PidFile now has a compiled in default.
In this version of 1.3.2, the are the following new features:
Bugs fixed since version 1.7.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Non-blocking DNS lookups.
* BB#9: Add support for the IPv6 protocol
* BB#17: Add support for custom headers
* BB#55: Error message response omits body when request has a body
* BB#60: Add config option to disable Via header
* BB#61: SIGHUP does not refresh filter list
* BB#62: Make tinyproxy reload the config upon SIGHUP
* BB#64: Config parsing error with reverse proxy option
* BB#65: Format string compile warnings
* BB#67: ACL processing error with multiple Allow statements
And the following bug fixes:
Contributors
~~~~~~~~~~~~
- A bug where connptr was not correctly being set before httperr was being
called in reqs.c.
- A bug where the system would crash if an empty request was received.
- A file descriptor leak where an fd would not be properly closed in
event of a bad HTTP request.
David Shanks, Mathew Mrosko, Michael Adam, Mukund Sivaraman.
Here is some information on the upcoming 1.4.0 release:
Version 1.7.1
-------------
1.4.0
=====
* Fixed all warnings reported by GCC.
* The tinyproxy manpage has been extended and converted to asciidoc.
* There is a new tinyproxy.conf manpage that describes all the options.
* The build system has been considerably cleaned up.
* Various other bugs have been fixed.
1.4.0 is in the works. Some features you can expect:
Bugs fixed since version 1.7.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ability to listen on >1 port.
- Ability to set up more than one access list for the allowed
IP subnets.
- Ability to listen on multiple interfaces specified on the command-line.
- Simple caching.
* BB#2: Fix Tinyproxy for requests like www.site.com:8001
* BB#5: Move templates from the doc directory to its own directory
* BB#8: Update README, INSTALL, NEWS and the manpage
* BB#10: Do not filter out transfer-encoding header
* BB#18: Fix pointer aliasing issues
* BB#53: Add a GPLv2 COPYING file
Under the hood, 1.4.0 should be a bit more modular than 1.3.2. This
will hopefully lend itself towards making it easier for third parties to
develop new features for tinyproxy.
Contributors
~~~~~~~~~~~~
Please note that as of 1.3.1, Steven Young <sdyoung@well.com> is once
again the primary maintainer of tinyproxy.
Andrew Stribblehill, Jeremy Hinegardner, Matthew Dempsky, Michael Adam,
Mukund Sivaraman, Robert James Kaes.
Version 1.7.0
-------------
* There is now support for reverse proxying.
* Tinyproxy does not bundle a vendor regular expressions library
anymore. It uses the system installed regular expressions library.
* The documentation has been updated.
* Tinyproxy now contains some code optimizations such as the use of a
hashmap internally for looking up error pages.
* Various other bugs have been fixed.
Contributors
~~~~~~~~~~~~
Kim Holviala, Marc Silver, Robert James Kaes, Steven Young.
+68 -70
View File
@@ -1,99 +1,97 @@
This is tinyproxy-adns, tinyproxy with support for GNU adns asynchronous
resolver library.
Tinyproxy
=========
DESCRIPTION
-----------
tinyproxy is a small, efficient HTTP proxy daemon. tinyproxy is very
useful in a small network setting, where a larger proxy like Squid
would either be too resource intensive, or a security risk. One of
the key features of tinyproxy is the buffering connection concept.
In effect, tinyproxy will buffer a high speed response from a server,
and then relay it to a client at the highest speed the client will
accept. This feature greatly reduces the problems with sluggishness
on the Internet. If you are sharing an Internet connection with a
small network, and you only want to allow HTTP requests to be
allowed, then tinyproxy is a great tool for the network
Tinyproxy is a small, efficient HTTP/SSL proxy daemon released under the
GNU General Public License. Tinyproxy is very useful in a small network
setting, where a larger proxy would either be too resource intensive, or
a security risk. One of the key features of Tinyproxy is the buffering
connection concept. In effect, Tinyproxy will buffer a high speed
response from a server, and then relay it to a client at the highest
speed the client will accept. This feature greatly reduces the problems
with sluggishness on the Internet. If you are sharing an Internet
connection with a small network, and you only want to allow HTTP
requests to be allowed, then Tinyproxy is a great tool for the network
administrator.
This version of tinyproxy must be compiled with GNU adns, available from
http://www.chiark.greenend.org.uk/~ian/adns/.
For more info, please visit:
INSTALLATION
https://www.banu.com/tinyproxy/
Installation
------------
To install this package under a Unix derivative, read the INSTALL
file. tinyproxy uses a standard GNU configure script. There are
additional command line arguments you can supply to configure. They
To install this package under a UNIX derivative, read the INSTALL file.
Tinyproxy uses a standard GNU `configure` script. Basically you should
be able to do:
----
./configure
make
make install
----
in the top level directory to compile and install Tinyproxy. There are
additional command line arguments you can supply to `configure`. They
include:
--enable-debug If you would like to turn on full
debugging support
--enable-socks This turns on SOCKS support for using
tinyproxy across a fire wall.
--enable-xtinyproxy Compile in support for the XTinyproxy
header, which is sent to any web
server in your domain.
--enable-filter Allows Tinyproxy to filter out certain
domains and URLs.
--enable-upstream Enable support for proxying connections
through another proxy server.
--enable-transparent-proxy
Allow Tinyproxy to be used as a
transparent proxy daemon
--enable-static Compile a static version of Tinyproxy
Options for GNU adns
--with-adns-include=DIR Set the directory in which adns.h has
been installed. Required if this is in
a non-standard location.
--with-adns-lib=DIR Set the directory in which libadns.* have
been installed. Required if this is in
a non-standard location.
--with-stathost=HOST Set the default name of the stats host
Options for file locations etc.
--with-port=PORT Set the port on which tinyproxy listens,
by default 8080.
--with-log-file=FILE Set the default logfile location.
--with-user=USER Set the default user to which tinyproxy
will setuid() upon startup.
Once you have completed your installation, if you would like to
report your success please execute the report.sh script in the doc
directory. This will send an email to the authors reporting your
version, and a few bits of information concerning the memory usage of
tinyproxy. Alternatively, you could just send an email stating the
version. Which ever you prefer.
SUPPORT
Support
-------
If you are having problems with tinyproxy, please report the problem
to:
If you are having problems with Tinyproxy, please submit a bug report
using Tinyproxy as the product at:
Steven Young <sdyoung@well.com>
Robert James Kaes <rjkaes@flarenet.com>
https://www.banu.com/bugzilla/
If the problem seems to be to do with GNU adns support (or if I've done
something obviously wrong), please email
You may also wish to subscribe to the Tinyproxy mailing lists. To do so
please visit:
Chris Lightfoot <chris@ex-parrot.com>
https://www.banu.com/mailman/listinfo/tinyproxy-announce-list
https://www.banu.com/mailman/listinfo/tinyproxy-users-list
https://www.banu.com/mailman/listinfo/tinyproxy-developers-list
Please recompile tinyproxy with full debug support (--enable-debug)
and include a copy of the log file, and any assert errors reported by
tinyproxy. Also, if you feel up to it, try running tinyproxy under
your debugger and report the error your received and a context
listing of the location. Under gdb you would run tinyproxy like so:
for more information on how to subscribe and post messages to the lists.
gdb tinyproxy
(gdb) set args -p port_num -l log_file -d
(gdb) run
Contributing
------------
Now access the port tinyproxy is on until you receive a break in the
gdb. You can now type:
If you would like to contribute a feature, or a bug fix to the Tinyproxy
source, please send a patch (preferably as a unified diff. i.e. `diff
-u` against the "master" branch of the Tinyproxy source code git
repository to tinyproxy-developers-list. Please include a description
of what your patch does.
(gbd) l
Tinyproxy's git repository is git://www.banu.com/tinyproxy.git. The
following command creates a local copy:
to produce a context listing of the location of the error. Send a
copy to the authors.
----
git clone git://www.banu.com/tinyproxy.git
----
HOW TO CONTRIBUTE TO tinyproxy
------------------------------
The easiest and preferred way to create a patch for submission is to
check in your changes locally and use `git format-patch` to generate a
mbox-style commit file that contains the diff along with the commit
message and author information. Such a format-patch file can be
integrated into the upstream repository, automatically keeping the
commit message and author information.
If you would like to contribute a feature, or a bug fix to the
tinyproxy source, please send a diff (preferable a unified
diff. i.e. "diff -u") against the latest release of tinyproxy. Also,
if you could include a brief description of what your patch does.
You can also meet developers and discuss development issues and patches
in the #tinyproxy IRC channel on Freenode (irc.freenode.net).
-42
View File
@@ -1,42 +0,0 @@
Tinyproxy wouldn't be possible in its current form without the help of
the following people. Thanks a lot, guys (sorted in no particular
order). Note that in the case of entries listed under 'numerous others',
only the first person to report it is listed.
Steven Young - Wrote version 1.0 - 1.1
Robert James Kaes - Wrote versions from 1.2 to 1.3 and
autoconf enabled the source tree.
Albert Ragnarsson - Made an RPM out of the 1.0d .tar.gz archive.
Alan W Black - Misc. bug reports and fixes.
Ed Boraas - Various suggestions, helped beta test 1.0d.
Abhijit Menon-Sen - Beta tested 1.1, numerous bugs fixed
and features improved. Also helped
establish world peace and eliminate
hunger and poverty. Generally
credited with the singlehanded
abolition of all crime and dishonesty.
Jay Kominek - Made the 1.1 DEB.
Eran Tromer - Provided webspace at attacca.com.
Bruno Viaris - Found and provided initial fix for
bug in the clientreq() routine when
dealing with broken requests from clients.
Alexander Loehr - Found and provided fix for a bug in
the listen_sock routine.
Bob Grabau - Added additional logging of URLs to
incoming connections.
Mitsuru Yoshida - Made the FreeBSD port
Ian Holsman - Suggested the selective listening option
Peter Meerwald - Portability suggests and improvements
Shaun Johnson - Fixed a problem with compiling with
syslog enabled on a SunOS box. Should
help other systems too.
Timothy E. Newsome - SOCKS firewall enabled tinyproxy
George Talusan - Bug testing
Chris Lightfoot - Provided patches to give tinyproxy adns
support.
Michael Pearson,
numerous others - Reported connptr bug with patch.
Raja Subramanian - Reported fd leak bug, with patch.
Raja Subramanian,
numerous others - Reported null requests bug.
+58
View File
@@ -0,0 +1,58 @@
TODO List
---------
The following are features that I would like to add to tinyproxy in the
future. Where possible, I've listed the person who suggested it. This
list is in no particular order. And hey, if you want to implement one of
these, or another idea you have, go right ahead. Just mail me the diff
against the current tree and I'll integrate it if possible.
[ Actually, the ordering has become kind of important as of
late. Basically, I'm adding new ideas to the bottom of the list
as I go. ]
* Include hooks so other types of proxies can be modularly added to
the source tree. Then people can simply choose which types of
proxies (ftp, www, etc) they'd like enabled in tinyproxy.h
Suggested: Tarun Tuli.
* Include a function to rewrite the incoming requests. Should not be
much of a problem. Just need to modify the process_method() code
to look up the URL and rewrite it. If we want to go really fancy
with RegEx mapping this could get ugly. :)
* Have the ability to send the data from the connections through an
external filtering program. I kind of like this idea, but I don't
really have a good way of doing it yet.
Suggested: Ed Avis
* Include the ability to rewrite both incoming and outgoing headers.
* Enable an option for chroot() jailing tinyproxy.
* Come up with a more consistent (and elegant) way of logging errors
for the administrators. Right now it's more a hodge-podge
collections of error messages without a _real_ standard. I would
prefer a more uniform look.
* Include user authentication for accessing tinyproxy itself.
Administrators should be allowed to selectively allow certain users
access to tinyproxy via a user name/password pair. Check the
HTTP/1.1 RFC for more information. [Suggested: Tyrone Tranmer]
==> https://www.banu.com/bugzilla/show_bug.cgi?id=13
* Fix paths inside etc/tinyproxy.conf
* Finish manpages
* Move defaults handling to conf.c
* Remove common.h and fix order of headers
* Remove memory debugging functions (Valgrind is good enough)
* Make all functions return from one place (the end of the function)
* Move TODO items to Banu Bugzilla
-20
View File
@@ -1,20 +0,0 @@
/*
* Define if you want to have the peer's IP address to be included in a
* XTinyproxy header sent to the server.
*/
#undef XTINYPROXY
/* chris - undef'd here so that they can be set up in the configure script */
#undef DEFAULT_LOG
#undef DEFAULT_PORT
#undef DEFAULT_USER
/*
* Define if you would like to include filtering code.
*/
#undef FILTER_ENABLE
/*
* Define if you want to use the included GNU regex routine
*/
#undef USE_GNU_REGEX
Vendored
-129
View File
@@ -1,129 +0,0 @@
dnl aclocal.m4 generated automatically by aclocal 1.4a
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
# Do all the work for Automake. This macro actually does too much --
# some checks are only needed if your package does certain things.
# But this isn't really a big deal.
# serial 1
dnl Usage:
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
AC_DEFUN(AM_INIT_AUTOMAKE,
[AC_REQUIRE([AC_PROG_INSTALL])
dnl We require 2.13 because we rely on SHELL being computed by configure.
AC_PREREQ([2.13])
PACKAGE=[$1]
AC_SUBST(PACKAGE)
VERSION=[$2]
AC_SUBST(VERSION)
dnl test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
ifelse([$3],,
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
AC_REQUIRE([AM_SANITY_CHECK])
AC_REQUIRE([AC_ARG_PROGRAM])
dnl FIXME This is truly gross.
missing_dir=`cd $ac_aux_dir && pwd`
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AC_REQUIRE([AC_PROG_MAKE_SET])])
#
# Check to make sure that the build environment is sane.
#
AC_DEFUN(AM_SANITY_CHECK,
[AC_MSG_CHECKING([whether build environment is sane])
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
if test "[$]*" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftestfile`
fi
if test "[$]*" != "X $srcdir/configure conftestfile" \
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
alias in your environment])
fi
test "[$]2" = conftestfile
)
then
# Ok.
:
else
AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock])
fi
rm -f conftest*
AC_MSG_RESULT(yes)])
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
dnl The program must properly implement --version.
AC_DEFUN(AM_MISSING_PROG,
[AC_MSG_CHECKING(for working $2)
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if ($2 --version) < /dev/null > /dev/null 2>&1; then
$1=$2
AC_MSG_RESULT(found)
else
$1="$3/missing $2"
AC_MSG_RESULT(missing)
fi
AC_SUBST($1)])
# Like AC_CONFIG_HEADER, but automatically create stamp file.
AC_DEFUN(AM_CONFIG_HEADER,
[AC_PREREQ([2.12])
AC_CONFIG_HEADER([$1])
dnl When config.status generates a header, we must update the stamp-h file.
dnl This file resides in the same directory as the config header
dnl that is generated. We must strip everything past the first ":",
dnl and everything past the last "/".
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
<<am_indx=1
for am_file in <<$1>>; do
case " <<$>>CONFIG_HEADERS " in
*" <<$>>am_file "*<<)>>
echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
;;
esac
am_indx=`expr "<<$>>am_indx" + 1`
done<<>>dnl>>)
changequote([,]))])
-8
View File
@@ -1,8 +0,0 @@
Makefile
config.log
config.cache
config.status
dist_tmp
adns-*.tar.gz
settings.make
*.tmp*
-340
View File
@@ -1,340 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
-58
View File
@@ -1,58 +0,0 @@
INSTALLATION INSTRUCTIONS for ADNS
$ ./configure
$ make
# make install
Unfortunately, since this is a beta, there is no good documentation
yet. For now, use the comments in the public header file adns.h.
You will find that adns requires a reasonably standard and up to date
system.
In particular, the build system assumes that you have ELF shared
libraries. If you don't then please don't send me patches to support
your kind of shared libraries, and don't send me patches to use
libtool. I'm not interested in supporting non-ELF shared libraries.
However, if you send me an appropriate patch I'd be willing to make it
easy or automatic to disable the ELF shared library arrangements.
The adnsresfilter utility uses `tsearch' from the C library (a la SVID
and X/Open). If your C library doesn't have tsearch you will find
that configure arranges for adnsresfilter not to be built. To rectify
this, install a C library containing tsearch, such as the GNU C
library. It is best if tsearch uses an automatically-balancing tree
algorithm, like the glibc version does. Simple binary trees may
perform badly.
You will probably find that GNU Make is required.
COPYRIGHT
This file, INSTALL, contains installation instructions and other
details for adns.
adns is
Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
Copyright (C) 1999 Tony Finch <dot@dotat.at>
adns is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with userv as the file COPYING; if not, email me at the address
above or write to the Free Software Foundation, 59 Temple Place -
Suite 330, Boston, MA 02111-1307, USA.
# Local variables:
# mode: text
# End:
-68
View File
@@ -1,68 +0,0 @@
# Makefile - top-level Makefile
#
# This file is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
#
# It is part of adns, which is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
# Copyright (C) 1999 Tony Finch <dot@dotat.at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
DISTVERSION= 0.6
srcdir= @srcdir@
VPATH= @srcdir@
SUBDIRS= src dynamic client regress
all install uninstall clean distclean mostlyclean maintainer-clean distprep:
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
$(MAKE) $@-here
all-here install-here uninstall-here distprep-here: README
clean-here mostlyclean-here:
rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz
rm -rf dist_tmp
distclean-here maintainer-clean-here: clean-here
rm -f settings.make config.h config.cache config.log config.status
install-strip:
$(MAKE) INSTALL_PROGRAM_FLAGS=-s
dist_tmp=dist_tmp/adns-$(DISTVERSION)
dist: distprep
rm -rf dist_tmp*
mkdir dist_tmp $(dist_tmp)
find \( -name CVS -o -name dist_tmp* \) -prune -o -type d -print | \
sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
find \( -name CVS -o -name dist_tmp* \) -prune -o -type f -print | \
sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
$(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean
cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
gzip -9 $(dist_tmp).tar
mv $(dist_tmp).tar.gz .
check: all
$(MAKE) -C regress check
README README-update:
lynx -dump -number_links -cfg=/dev/null \
http://www.chiark.greenend.org.uk/~ian/adns/ >README.tmp
mv -f README.tmp README
TAGS info dvi:
# do nothing
-148
View File
@@ -1,148 +0,0 @@
GNU adns
Advanced, easy to use, asynchronous-capable DNS client library.
adns is a resolver library for C (and C++) programs. In contrast with
the existing interfaces, gethostbyname et al and libresolv, it has the
following features:
* It is reasonably easy to use for simple programs which just want
to translate names to addresses, look up MX records, etc.
* It can be used in an asynchronous, non-blocking, manner. Many
queries can be handled simultaneously.
* Responses are decoded automatically into a natural representation
for a C program - there is no need to deal with DNS packet
formats.
* Sanity checking (eg, name syntax checking, reverse/forward
correspondence, CNAME pointing to CNAME) is performed
automatically.
* Time-to-live, CNAME and other similar information is returned in
an easy-to-use form, without getting in the way.
* There is no global state in the library; resolver state is an
opaque data structure which the client creates explicitly. A
program can have several instances of the resolver.
* Errors are reported to the application in a way that distinguishes
the various causes of failure properly.
* Understands conventional resolv.conf, but this can overridden by
environment variables.
* Flexibility. For example, the application can tell adns to: ignore
environment variables (for setuid programs), disable sanity checks
eg to return arbitrary data, override or ignore resolv.conf in
favour of supplied configuration, etc.
* Believed to be correct ! For example, will correctly back off to
TCP in case of long replies or queries, or to other nameservers if
several are available. It has sensible handling of bad responses
etc.
Forthcoming:
I hope that future versions may also have the following features:
* The library should be useable by threads in a multithreaded
program in a natural way. It should multiplex many threads'
queries through a single query socket.
* IPv6 support.
* Some kind of awareness of DNSSEC.
* Possibly some very limited caching behaviour.
(Technical note: adns requires a real nameserver like [1]BIND or
[2]Dents running on the same system or a nearby one, which must be
willing to provide `recursive service'. I.e., adns is a `stub
resolver'. All properly configured UN*X and GNU systems will already
have such nameserver(s); they are usually listed in /etc/resolv.conf.)
Documentation
I'm afraid there is no manual yet. However, competent C programmers
should be able to use the library based on the commented [3]adns.h
header file (from version 0.4).
Feedback
I'd be pleased if you would let me know if you're using my library in
your project, and what you think of it.
If you are subscribed to adns-discuss please send feedback, including
bug reports, there; otherwise send mail to
adns-bugreports@chiark.greenend.org.uk. If you'd prefer that your
message wasn't forwarded to the adns-bugreports list, send it to
adns-maint@chiark.greendend.org.uk.
Mailinglists
I have set up mailinglists adns-announce and adns-discuss. The
announcements list is moderated and will contain only announcements of
important bugs, new versions, &c. The bug reports address mentioned
above is also a mailing list; feel free to subscribe to it.
There are [4]archives and subscription web pages, or you can subscribe
by sending mail containing the word `subscribe' to
adns-announce-REQUEST@chiark.greenend.org.uk or
adns-discuss-REQUEST@chiark.greenend.org.uk.
Download
Available for download from [5]chiark.greenend.org.uk are:
* The [6]current pre-release version as a gzipped tarfile.
* [7]adns.h API header file with comments (currently there is no
manual, sorry).
* All versions released so far are also available via [8]anonymous
FTP.
* A mirror of my CVS repository is available via rsync from
rsync.chiark.greenend.org.uk::ftp/users/ian/cvs-pub/adns (use FTP
first to find your way around).
adns is also available from the [9]GNU Project FTP servers and their
[10]mirrors.
Copyright and licensing
adns is Copyright 1997-1999 Ian Jackson.
adns is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program and documentation is distributed in the hope that it will
be useful, but without any warranty; without even the implied warranty
of merchantability or fitness for a particular purpose. See the
[11]GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with adns, or one should be available above; if not, write to
the [12]Free Software Foundation, 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA, or email adns-maint@chiark.greenend.org.uk.
_________________________________________________________________
[13]Ian Jackson / [14]adns-maint@chiark.greenend.org.uk; more [15]free
software by me.
[16]GNU home page; [17]chiark home page; [18]site or mirror home page
This web page is Copyright (C)1996-1999 Ian Jackson. See the
[19]Copyright/acknowledgements.
Use any browser - [20]Campaign for a non-browser-specific WWW
References
1. http://www.isc.org/view.cgi?/products/BIND/index.phtml
2. http://www.dents.org/
3. http://www.chiark.greenend.org.uk/~ian/adns/adns.h.0.4.txt
4. http://www.chiark.greenend.org.uk/mailman/listinfo
5. http://www.chiark.greenend.org.uk/~ian/adns/
6. http://www.chiark.greenend.org.uk/~ian/adns/adns.tar.gz
7. http://www.chiark.greenend.org.uk/~ian/adns/adns.h.0.5.txt
8. ftp://ftp.chiark.greenend.org.uk/users/ian/adns/
9. http://www.gnu.org/
10. http://www.gnu.org/order/ftp.html
11. http://www.chiark.greenend.org.uk/~ian/COPYING.txt
12. http://www.fsf.org/
13. http://www.chiark.greenend.org.uk/
14. mailto:adns-maint@chiark.greenend.org.uk
15. http://www.chiark.greenend.org.uk/~ian/software/
16. http://www.gnu.org/
17. http://www.chiark.greenend.org.uk/
18. http://www.chiark.greenend.org.uk/
19. http://www.chiark.greenend.org.uk/~ian/sw-www-copy.html
20. http://www.anybrowser.org/campaign/
-15
View File
@@ -1,15 +0,0 @@
INVESTIGATE:
* coredump in adnstest_s
BUGS:
* adns_qf_quoteok_cname should be the default.
WISHLIST:
* Easy way to make a reverse query.
* Make timeouts configurable.
* `fake' reverse queries (give nnn.nnn.nnn.nnn either always or on error)
* `fake' forward queries (allow nnn.nnn.nnn.nnn -> A)
* DNSSEC compatibility - be able to retreive KEY and SIG RRs
* DNSSEC minimum functionality - ignore Additional when AD set.
* DNSSEC functionality - provide security ?
* Easy-to-use scripting query tool
-109
View File
@@ -1,109 +0,0 @@
/*
* acconfig.h
* input file for autoheader/autoconf/configure: extra stuff for config.h
*/
/*
* This file is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* It is part of adns, which is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* Define if function attributes a la GCC 2.5 and higher are available. */
#undef HAVE_GNUC25_ATTRIB
/* Define if constant functions a la GCC 2.5 and higher are available. */
#undef HAVE_GNUC25_CONST
/* Define if nonreturning functions a la GCC 2.5 and higher are available. */
#undef HAVE_GNUC25_NORETURN
/* Define if printf-format argument lists a la GCC are available. */
#undef HAVE_GNUC25_PRINTFFORMAT
/* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
#undef HAVEUSE_RPCTYPES_H
@BOTTOM@
/* Use the definitions: */
#ifdef HAVE_POLL
#include <sys/poll.h>
#else
/* kludge it up */
struct pollfd { int fd; short events; short revents; };
#define POLLIN 1
#define POLLPRI 2
#define POLLOUT 4
#endif
/* GNU C attributes. */
#ifndef FUNCATTR
#ifdef HAVE_GNUC25_ATTRIB
#define FUNCATTR(x) __attribute__(x)
#else
#define FUNCATTR(x)
#endif
#endif
/* GNU C printf formats, or null. */
#ifndef ATTRPRINTF
#ifdef HAVE_GNUC25_PRINTFFORMAT
#define ATTRPRINTF(si,tc) format(printf,si,tc)
#else
#define ATTRPRINTF(si,tc)
#endif
#endif
#ifndef PRINTFFORMAT
#define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
#endif
/* GNU C nonreturning functions, or null. */
#ifndef ATTRNORETURN
#ifdef HAVE_GNUC25_NORETURN
#define ATTRNORETURN noreturn
#else
#define ATTRNORETURN
#endif
#endif
#ifndef NONRETURNING
#define NONRETURNING FUNCATTR((ATTRNORETURN))
#endif
/* Combination of both the above. */
#ifndef NONRETURNPRINTFFORMAT
#define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
#endif
/* GNU C constant functions, or null. */
#ifndef ATTRCONST
#ifdef HAVE_GNUC25_CONST
#define ATTRCONST const
#else
#define ATTRCONST
#endif
#endif
#ifndef CONSTANT
#define CONSTANT FUNCATTR((ATTRCONST))
#endif
#ifdef HAVEUSE_RPCTYPES_H
#include <rpc/types.h>
#endif
-70
View File
@@ -1,70 +0,0 @@
# aclocal.m4 - package-specific macros for autoconf
#
# This file is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
#
# It is part of adns, which is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
# Copyright (C) 1999 Tony Finch <dot@dotat.at>
#
# This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
dnl DPKG_CACHED_TRY_COMPILE(<description>,<cachevar>,<include>,<program>,<ifyes>,<ifno>)
define(DPKG_CACHED_TRY_COMPILE,[
AC_MSG_CHECKING($1)
AC_CACHE_VAL($2,[
AC_TRY_COMPILE([$3],[$4],[$2=yes],[$2=no])
])
if test "x$$2" = xyes; then
true
$5
else
true
$6
fi
])
define(ADNS_C_GCCATTRIB,[
DPKG_CACHED_TRY_COMPILE(__attribute__((,,)),adns_cv_c_attribute_supported,,
[extern int testfunction(int x) __attribute__((,,))],
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GNUC25_ATTRIB)
DPKG_CACHED_TRY_COMPILE(__attribute__((noreturn)),adns_cv_c_attribute_noreturn,,
[extern int testfunction(int x) __attribute__((noreturn))],
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GNUC25_NORETURN),
AC_MSG_RESULT(no))
DPKG_CACHED_TRY_COMPILE(__attribute__((const)),adns_cv_c_attribute_const,,
[extern int testfunction(int x) __attribute__((const))],
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GNUC25_CONST),
AC_MSG_RESULT(no))
DPKG_CACHED_TRY_COMPILE(__attribute__((format...)),adns_cv_attribute_format,,
[extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))],
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GNUC25_PRINTFFORMAT),
AC_MSG_RESULT(no)),
AC_MSG_RESULT(no))
])
define(ADNS_C_GETFUNC,[
AC_CHECK_FUNC([$1],,[
AC_CHECK_LIB([$2],[$1],[$3],[
AC_MSG_ERROR([cannot find library function $1])
])
])
])
-164
View File
@@ -1,164 +0,0 @@
adns (0.6) BETA; urgency=high
Core library bugfixes:
* Avoid infinite timeouts, causing lockup, when they should be zero !
* TCP handling revamped (avoids undefined behaviour due to reentrancy).
* Do not fail assertion if _qf_owner, _qf_search, domain ends in `.'.
* Many memory leaks fixed.
Cool new utility:
* adnsresfilter is like `cat' but converts addresses to names without
delaying the output. Pipe `netstat -n', `tcpdump -ln', etc. into it.
Test and client program bug and portability fixes:
* Dynamic library building works properly.
* adnshost prints somewhat better messages about some wrong usages.
* Include <stdlib.h> and <sys/types.h> in adnshost.h.
* adnslogres: parsing and error checking improved (Tony Finch).
* Regression tests can cope with zero-length reads.
* Regression tests check for memory leaks.
* adnstest copes with empty query type list.
* adnstest uninitialised memory bug fixed.
General improvements
* Better control of adnshost output and error messages (new -F options).
* New adns_if_logpid option (functionality suggested by Tony Finch).
* New fanftest test program from Tony Finch (ignored by `make install').
* Reads /etc/resolv-adns.conf if it exists.
* Declare flags parameters as enums again, not ints.
-- Ian Jackson <ian@davenant.greenend.org.uk> Wed, 24 Nov 1999 17:13:03 +0000
adns (0.5) unstable; urgency=high
New features:
* adnslogres, ~100x faster replacement for Apache logresolve;
Thanks to Tony Finch for the program and the performance figure.
* Internal consistency checking with assert if right options set.
* adns_wait_poll function like adns_wait but uses poll, not select.
* adns_reverse_submit function for easy in-addr queries.
* adns_errtypeabbrev funcion for getting eg "permfail" from _s_nodata.
* adnshost utility for scripts and the like (rather alpha).
Incompatible changes:
* RRs with mailboxes never rejected due to strange chars if _raw.
* Lack of a mailbox produces `.' not `<>'.
* Better usage messages (and no default query domain) for adnstest.
* Return EAGAIN from _check instead of EWOULDBLOCK.
* adns_rr_info on _r_mx etc. shows status type abbrev and status number.
Bugfixes:
* Do not invoke __autosys indirectly from __procdgram (result: coredump
usually in memmove, unless adns_if_noautosys was used).
* Do not scramble innards when a query on the output queue is cancelled.
* Do not close tcp socket twice.
* Mailboxes containing spaces in their names are quoted.
* Give ESRCH, not EAGAIN, if _check called with no queries outstanding.
* adns_rr_hostaddr naddrs is -1 on temporary failure (as documented).
* Reject TXT RRs with no strings.
* Correct error messages for qname CNAME foo, foo CNAME bar.
* adns_processany actually does something.
* Fixed typos in adns.h.
General improvements:
* Promise not to change fds in adns_beforepoll (if now is specified).
* Improved textual error string for _s_prohibitedcname.
* New comment in adns_processany and return 0 (not r which is 0).
* Documentation of resolv.conf directives and options, and of environment
variables understood, in adns.h
* Regression test scripts set EF_DISABLE_BANNER (for Electric Fence).
Portability and build improvements:
* Give install the '-c' flag (otherwise some delete the original !).
* Do not remove top-level Makefile on `make clean'.
* Don't complain so much about poll(2) tests if not available.
* Do not give -u 0 -g 0 options to install.
* Remove trailing , from some enums in adns.h.
* Dynamically linked clients now made with -l, so as to avoid rpath.
* Do not use $^ in make rules (should help with non-GNU make).
* Declare flags parameters as ints not enums because C++ is crap.
-- Ian Jackson <ian@davenant.greenend.org.uk> Wed, 13 Oct 1999 02:24:35 +0100
adns (0.4) unstable; urgency=high
General important bugfixes:
* make _qf_owner work if _qf_search not specified, and test it (oops!)
* ads->configerrno now initialised (in setup.c).
* timercmp(,,<=) doesn't work - use !timercmp(,,>).
* Changed memory semantics of internal queries to fix bugs.
* Restarting a TCP-using query (eg due to CNAME) doesn't abort.
Fixes for handling of broken kinds of reply:
* Only accept a reply from the subset of servers we sent the query.
* Ignore CNAME(s) in answer after RR(s) (and test).
Other bugfixes and improvements:
* adns_s_systemfail is in table of errors (for eg adns_strerror).
* Do not ship config.cache, Makefile, etc.
* Improvements to install instructions, TODO, etc.
* Regression tests compile on systems without poll(2).
* Do not install adnstest_s.
* _submit returns ENOSYS, not adns_s_unknownquery; documented, tested.
* <adns.h> includes <sys/types.h>, <sys/time.h>, <unistd.h>.
-- Ian Jackson <ian@davenant.greenend.org.uk> Thu, 5 Aug 1999 01:17:38 +0100
adns (0.3) unstable; urgency=low
Incompatible changes:
* Low adns_status values (below adns_s_max_tempfail) renumbered to make
room for future locally-induced and locally-detected errors.
* Event loop functions for use by select(2) renamed and tidied up.
Features / improvements:
* New adns_errabbrev() for getting status abbreviation strings.
* regress/checkall prints summary list of failed tests, if any.
* Event loop functions for poll(2), and some raw variants.
* adnstest has ability to use poll(2), and user can set initflags.
* checkall prints passed list as well as failed list, if any failed.
* You can iterate over outstanding queries (but only once at a time).
Bugfixes:
* Non-RFC822 mailbox `domain' formatting now works, and clarified.
* Rejection of bad characters in domains (without quoteok) works.
* Clean up parents from adns->childw (otherwise would abort/segfault).
* In adnstest, allocate enough space for, and terminate, query types.
* In adnstest, don't print errno values as adns_status values.
* Added TODO file.
* Made adnstest.c test context pointers.
-- Ian Jackson <ian@davenant.greenend.org.uk> Thu, 15 Jul 1999 00:23:12 +0100
adns (0.2) experimental; urgency=low
Portability fixes for compilation on various platforms:
* Include <sys/socket.h> and <netinet/in.h> in files with <arpa/inet.h>.
* Don't use GCC union assignment feature (.rrs=0 => .rrs.untyped=0).
* Explictly cast things to [const] struct sockaddr* in syscall args.
* Check whether we need -lsocket.
* Include <sys/times.h> in a few more files.
* Include <unistd.h> and <sys/time.h> for select.
* Look for inet_aton and inet_ntoa (in -lnsl and -lsocket).
* LDLIBS removed from dependency lists (some makes don't support this).
* An `ambiguous else' warning from some compilers in types.c is removed.
Other changes:
* Added COPYING (copy of the GPL).
* Regression test failure output improved.
* Missing targets in regress/Makefile.in added.
* Regression test doesn't rely on value of fcntl flags eg O_NONBLOCK.
-- Ian Jackson <ian@davenant.greenend.org.uk> Thu, 20 May 1999 00:27:32 +0100
adns (0.1) experimental; urgency=low
* Initial public alpha release.
-- Ian Jackson <ian@davenant.greenend.org.uk> Sat, 17 April 1999 17:42:19
Local variables:
mode: debian-changelog
fill-column: 75
End:
-11
View File
@@ -1,11 +0,0 @@
Makefile
adnstest
adnstest_s
adnslogres
adnslogres_s
adnshost
adnshost_s
adnsresfilter
adnsresfilter_s
fanftest
fanftest_s
-74
View File
@@ -1,74 +0,0 @@
# client/Makefile - client program(s) Makefile
#
# This file is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
#
# It is part of adns, which is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
# Copyright (C) 1999 Tony Finch <dot@dotat.at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
srcdir= @srcdir@
VPATH= @srcdir@
PROGS_SYSDEP= @PROGS_HAVE_TSEARCH@
PROGRAMS= adnstest adnslogres adnshost $(PROGS_SYSDEP)
PROGRAMS_LOCAL= fanftest
PROGRAMS_ALL= $(PROGRAMS) $(PROGRAMS_LOCAL)
TARG_INSTALL= $(PROGRAMS)
TARG_LOCAL= $(addsuffix _s, $(PROGRAMS_ALL))
TARGETS= $(TARG_LOCAL) $(TARG_INSTALL)
include $(srcdir)/../settings.make
DIRCFLAGS= -I$(srcdir)/../src
TARG_OBJS= $(addsuffix .o, $(PROGRAMS_ALL))
ADH_OBJS= adh-main.o adh-opts.o adh-query.o
ALL_OBJS= $(ADH_OBJS) $(TARG_OBJS)
ADNSDIR= $(srcdir)/../src/
STATIC_LIB= $(ADNSDIR)/libadns.a
DYNAMIC_DEP= $(srcdir)/../dynamic/$(SHLIBFILE)
DYNAMIC_LINK= -L$(srcdir)/../dynamic -ladns
all: $(TARGETS)
install: $(TARG_INSTALL)
set -xe; for f in $(TARG_INSTALL); \
do $(INSTALL_PROGRAM) $$f $(bin_dir)/$$f; done
uninstall:
for f in $(TARGETS); do rm -f $(bin_dir)/$$f; done
adnshost: $(ADH_OBJS) $(DYNAMIC_DEP)
$(CC) $(LDFLAGS) $(ADH_OBJS) $(DYNAMIC_LINK) -o $@ $(LDLIBS)
adnshost_s: $(ADH_OBJS) $(STATIC_LIB)
$(CC) $(LDFLAGS) $(ADH_OBJS) $(STATIC_LIB) -o $@ $(LDLIBS)
$(ADH_OBJS): adnshost.h
$(ALL_OBJS): $(ADNSDIR)/adns.h $(ADNSDIR)/config.h
adnsresfilter.o: $(ADNSDIR)/tvarith.h
%: %.o $(DYNAMIC_DEP)
$(CC) $(LDFLAGS) $< $(DYNAMIC_LINK) -o $@ $(LDLIBS)
%_s: %.o $(STATIC_LIB)
$(CC) $(LDFLAGS) $< $(STATIC_LIB) -o $@ $(LDLIBS)
-243
View File
@@ -1,243 +0,0 @@
/*
* adh-main.c
* - useful general-purpose resolver client program
* main program and useful subroutines
*/
/*
* This file is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* It is part of adns, which is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "adnshost.h"
void sysfail(const char *what, int errnoval) {
fprintf(stderr,"adnshost failed: %s: %s\n",what,strerror(errnoval));
exit(10);
}
void usageerr(const char *fmt, ...) {
va_list al;
fputs("adnshost usage error: ",stderr);
va_start(al,fmt);
vfprintf(stderr,fmt,al);
va_end(al);
putc('\n',stderr);
exit(11);
}
void outerr(void) {
sysfail("write to stdout",errno);
}
void *xmalloc(size_t sz) {
void *p;
p= malloc(sz); if (!p) sysfail("malloc",sz);
return p;
}
char *xstrsave(const char *str) {
char *p;
p= xmalloc(strlen(str)+1);
strcpy(p,str);
return p;
}
void of_type(const struct optioninfo *oi, const char *arg) {
static const struct typename {
adns_rrtype type;
const char *desc;
} typenames[]= {
/* enhanced versions */
{ adns_r_ns, "ns" },
{ adns_r_soa, "soa" },
{ adns_r_ptr, "ptr" },
{ adns_r_mx, "mx" },
{ adns_r_rp, "rp" },
{ adns_r_addr, "addr" },
/* types with only one version */
{ adns_r_cname, "cname" },
{ adns_r_hinfo, "hinfo" },
{ adns_r_txt, "txt" },
/* raw versions */
{ adns_r_a, "a" },
{ adns_r_ns_raw, "ns-" },
{ adns_r_soa_raw, "soa-" },
{ adns_r_ptr_raw, "ptr-" },
{ adns_r_mx_raw, "mx-" },
{ adns_r_rp_raw, "rp-" },
{ adns_r_none, 0 }
};
const struct typename *tnp;
for (tnp=typenames;
tnp->type && strcmp(arg,tnp->desc);
tnp++);
if (!tnp->type) usageerr("unknown RR type %s",arg);
ov_type= tnp->type;
}
int rcode;
static void process_optarg(const char *arg,
const char *const **argv_p,
const char *value) {
const struct optioninfo *oip;
int invert;
if (arg[0] == '-' || arg[0] == '+') {
if (arg[0] == '-' && arg[1] == '-') {
if (!strncmp(arg,"--no-",5)) {
invert= 1;
oip= opt_findl(arg+5);
} else {
invert= 0;
oip= opt_findl(arg+2);
}
if (oip->type == ot_funcarg) {
arg= argv_p ? *++(*argv_p) : value;
if (!arg) usageerr("option --%s requires a value argument",oip->lopt);
} else {
if (value) usageerr("option --%s does not take a value",oip->lopt);
arg= 0;
}
opt_do(oip,arg,invert);
} else if (arg[0] == '-' && arg[1] == 0) {
arg= argv_p ? *++(*argv_p) : value;
if (!arg) usageerr("option `-' must be followed by a domain");
query_do(arg);
} else { /* arg[1] != '-', != '\0' */
invert= (arg[0] == '+');
++arg;
while (*arg) {
oip= opt_finds(&arg);
if (oip->type == ot_funcarg) {
if (!*arg) {
arg= argv_p ? *++(*argv_p) : value;
if (!arg) usageerr("option -%s requires a value argument",oip->sopt);
} else {
if (value) usageerr("two values for option -%s given !",oip->sopt);
}
opt_do(oip,arg,invert);
arg= "";
} else {
if (value) usageerr("option -%s does not take a value",oip->sopt);
opt_do(oip,0,invert);
}
}
}
} else { /* arg[0] != '-' */
query_do(arg);
}
}
static void read_stdin(void) {
static int used, avail;
static char *buf;
int anydone, r;
char *newline, *space;
anydone= 0;
while (!anydone || used) {
while (!(newline= memchr(buf,'\n',used))) {
if (used == avail) {
avail += 20; avail <<= 1;
buf= realloc(buf,avail);
if (!buf) sysfail("realloc stdin buffer",errno);
}
do {
r= read(0,buf+used,avail-used);
} while (r < 0 && errno == EINTR);
if (r == 0) {
if (used) {
/* fake up final newline */
buf[used++]= '\n';
r= 1;
} else {
ov_pipe= 0;
return;
}
}
if (r < 0) sysfail("read stdin",errno);
used += r;
}
*newline++= 0;
space= strchr(buf,' ');
if (space) *space++= 0;
process_optarg(buf,0,space);
used -= (newline-buf);
memmove(buf,newline,used);
anydone= 1;
}
}
int main(int argc, const char *const *argv) {
struct timeval *tv, tvbuf;
adns_query qu;
void *qun_v;
adns_answer *answer;
int r, maxfd;
fd_set readfds, writefds, exceptfds;
const char *arg;
while ((arg= *++argv)) process_optarg(arg,&argv,0);
if (!ov_pipe && !ads) usageerr("no domains given, and -f/--pipe not used; try --help");
ensure_adns_init();
for (;;) {
for (;;) {
qu= ov_asynch ? 0 : outstanding.head ? outstanding.head->qu : 0;
r= adns_check(ads,&qu,&answer,&qun_v);
if (r == EAGAIN) break;
if (r == ESRCH) { if (!ov_pipe) goto x_quit; else break; }
assert(!r);
query_done(qun_v,answer);
}
maxfd= 0;
FD_ZERO(&readfds);
FD_ZERO(&writefds);
FD_ZERO(&exceptfds);
if (ov_pipe) {
maxfd= 1;
FD_SET(0,&readfds);
}
tv= 0;
adns_beforeselect(ads, &maxfd, &readfds,&writefds,&exceptfds, &tv,&tvbuf,0);
r= select(maxfd, &readfds,&writefds,&exceptfds, tv);
if (r == -1) {
if (errno == EINTR) continue;
sysfail("select",errno);
}
adns_afterselect(ads, maxfd, &readfds,&writefds,&exceptfds, 0);
if (ov_pipe && FD_ISSET(0,&readfds)) read_stdin();
}
x_quit:
if (fclose(stdout)) outerr();
exit(rcode);
}
-337
View File
@@ -1,337 +0,0 @@
/*
* adh-opts.c
* - useful general-purpose resolver client program
* option handling tables etc.
*/
/*
* This file is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* It is part of adns, which is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "adnshost.h"
int ov_env=1, ov_pipe=0, ov_asynch=0;
int ov_verbose= 0;
adns_rrtype ov_type= adns_r_none;
int ov_search=0, ov_qc_query=0, ov_qc_anshost=0, ov_qc_cname=1;
int ov_tcp=0, ov_cname=0, ov_format=fmt_default;
char *ov_id= 0;
struct perqueryflags_remember ov_pqfr = { 1,1,1, tm_none };
static const struct optioninfo global_options[]= {
{ ot_desconly, "global binary options:" },
{ ot_flag, "Do not look at environment variables at all",
"e", "env", &ov_env, 0 },
{ ot_flag, "Read queries on stdin instead of using args",
"f", "pipe", &ov_pipe, 1 },
{ ot_flag, "Allow answers to be reordered",
"a", "asynch", &ov_asynch, 1 },
{ ot_desconly, "answer/error output format and destination (see below):" },
{ ot_value, "Answers to stdout, errors as messages to stderr (default)",
"Fs", "fmt-simple", &ov_format, fmt_simple },
{ ot_value, "Answers and errors both to stdout in parseable format",
"Fi", "fmt-inline", &ov_format, fmt_inline },
{ ot_value, "Fully-parseable output format (default for --asynch)",
"Fa", "fmt-asynch", &ov_format, fmt_asynch },
{ ot_desconly, "global verbosity level:" },
{ ot_value, "Do not print anything to stderr",
"Vq", "quiet", &ov_verbose, adns_if_noerrprint },
{ ot_value, "Report unexpected kinds of problem only (default)",
"Vn", "no-quiet", &ov_verbose, 0 },
{ ot_value, "Debugging mode",
"Vd", "debug", &ov_verbose, adns_if_debug },
{ ot_desconly, "other global options:" },
{ ot_func, "Print usage information",
0, "help", 0,0, of_help },
{ ot_end }
};
static const struct optioninfo perquery_options[]= {
{ ot_desconly, "per-query options:" },
{ ot_funcarg, "Query type (see below)",
"t", "type", 0,0, &of_type, "type" },
{ ot_funcarg, "Do reverse query (address -> name lookup)",
"i", "ptr", 0,0, &of_ptr, "addr" },
{ ot_desconly, "per-query binary options:" },
{ ot_flag, "Use the search list",
"s", "search", &ov_search, 1 },
{ ot_flag, "Let query domains contain quote-requiring chars",
"Qq", "qc-query", &ov_qc_query, 1 },
{ ot_flag, "Let hostnames in answers contain ...",
"Qa", "qc-anshost", &ov_qc_anshost, 1 },
{ ot_flag, "Prevent CNAME target domains from containing ...",
"Qc", "qc-cname", &ov_qc_cname, 0 },
{ ot_flag, "Force use of a virtual circuit",
"u", "tcp", &ov_tcp, 1 },
{ ot_flag, "Do not display owner name in output",
"Do", "show-owner", &ov_pqfr.show_owner, 0 },
{ ot_flag, "Do not display RR type in output",
"Dt", "show-type", &ov_pqfr.show_type, 0 },
{ ot_flag, "Do not display CNAME target in output",
"Dc", "show-cname", &ov_pqfr.show_cname, 0 },
{ ot_desconly, "per-query TTL mode (NB TTL is minimum across all info in reply):" },
{ ot_value, "Show the TTL as a TTL",
"Tt", "ttl-ttl", &ov_pqfr.ttl, tm_rel },
{ ot_value, "Show the TTL as a time_t when the data might expire",
"Ta", "ttl-abs", &ov_pqfr.ttl, tm_abs },
{ ot_value, "Do not show the TTL (default)",
"Tn", "no-ttl", &ov_pqfr.ttl, tm_none },
{ ot_desconly, "per-query CNAME handling mode:" },
{ ot_value, "Call it an error if a CNAME is found",
"Cf", "cname-reject", &ov_cname, adns_qf_cname_forbid },
{ ot_value, "Allow references to CNAMEs in other RRs",
"Cl", "cname-loose", &ov_cname, adns_qf_cname_loose },
{ ot_value, "CNAME ok for query domain, but not in RRs (default)",
"Cs", "cname-ok", &ov_cname, 0 },
{ ot_desconly, "asynchronous/pipe mode options:" },
{ ot_funcarg, "Set <id>, default is decimal sequence starting 0",
0, "asynch-id", 0,0, &of_asynch_id, "id" },
{ ot_funcarg, "Cancel the query with id <id> (no error if not found)",
0, "cancel-id", 0,0, &of_cancel_id, "id" },
{ ot_end }
};
static void printusage(void) {
static const struct optioninfo *const all_optiontables[]= {
global_options, perquery_options, 0
};
const struct optioninfo *const *oiap, *oip=0;
int maxsopt, maxlopt, l;
maxsopt= maxlopt= 0;
for (oiap=all_optiontables; *oiap; oiap++) {
for (oip=*oiap; oip->type != ot_end; oip++) {
if (oip->type == ot_funcarg) continue;
if (oip->sopt) { l= strlen(oip->sopt); if (l>maxsopt) maxsopt= l; }
if (oip->lopt) {
l= strlen(oip->lopt);
if (oip->type == ot_flag && !oip->value) l+= 3;
if (l>maxlopt) maxlopt= l;
}
}
}
fputs("usage: adnshost [global-opts] [query-opts] query-domain\n"
" [[query-opts] query-domain ...]\n"
" adnshost [global-opts] [query-opts] -f|--pipe\n",
stdout);
for (oiap=all_optiontables; *oiap; oiap++) {
putchar('\n');
for (oip=*oiap; oip->type != ot_end; oip++) {
switch (oip->type) {
case ot_flag:
if (!oip->value) {
if (oip->sopt) {
printf(" +%-*s --no-%-*s %s\n",
maxsopt, oip->sopt,
maxlopt-2, oip->lopt,
oip->desc);
} else {
printf(" --no-%-*s %s\n",
maxlopt+maxsopt+1, oip->lopt,
oip->desc);
}
break;
}
case ot_value: case ot_func: /* fall through */
if (oip->sopt) {
printf(" -%-*s --%-*s %s\n",
maxsopt, oip->sopt,
maxlopt+1, oip->lopt,
oip->desc);
} else {
printf(" --%-*s %s\n",
maxlopt+maxsopt+3, oip->lopt,
oip->desc);
}
break;
case ot_funcarg:
if (oip->sopt) {
l= (maxlopt + maxsopt - 9 -
(strlen(oip->sopt) + strlen(oip->lopt) + 2*strlen(oip->argdesc)));
printf(" -%s<%s> / --%s <%s>%*s%s\n",
oip->sopt, oip->argdesc, oip->lopt, oip->argdesc,
l>2 ? l : 2, "",
oip->desc);
} else {
l= (maxlopt + maxsopt + 1 -
(strlen(oip->lopt) + strlen(oip->argdesc)));
printf(" --%s <%s>%*s%s\n",
oip->lopt, oip->argdesc,
l>2 ? l : 2, "",
oip->desc);
}
break;
case ot_desconly:
printf("%s\n", oip->desc);
break;
default:
abort();
}
}
}
printf("\nEscaping domains which might start with `-':\n"
" - %-*s Next argument is a domain, but more options may follow\n",
maxlopt+maxsopt+3, "<domain>");
fputs("\n"
"Query domains should always be quoted according to master file format.\n"
"\n"
"For binary options, --FOO and --no-FOO are opposites, as are\n"
"-X and +X. In each case the default is the one not listed.\n"
"Per query options stay set a particular way until they are reset,\n"
"whether they appear on the command line or on stdin.\n"
"All global options must preceed the first query domain.\n"
"\n"
"With -f, the input should be lines with either an option, possibly\n"
"with a value argument (separated from the option by a space if it's a long\n"
"option), or a domain (possibly preceded by a hyphen and a space to\n"
"distinguish it from an option).\n"
"\n"
"Output format is master file format without class or TTL by default:\n"
" [<owner>] [<ttl>] [<type>] <data>\n"
"or if the <owner> domain refers to a CNAME and --show-cname is on\n"
" [<owner>] [<ttl>] CNAME <cname>\n"
" [<cname>] [<ttl>] <type> <data>\n"
"When a query fails you get an error message to stderr (with --fmt-simple).\n"
"Specify --fmt-inline for lines like this (broken here for readability):\n"
" ; failed <statustype> <statusnum> <statusabbrev> \\\n"
" [<owner>] [<ttl>] [<cname>] \"<status string>\"\n"
"If you use --fmt-asynch, which is the default for --asynch,\n"
"each answer (success or failure) is preceded by a line\n"
" <id> <nrrs> <statustype> <statusnum> <statusabbrev> \\\n"
" [<owner>] [<ttl>] [<cname>] \"<status string>\"\n"
"where <nrrs> is the number of RRs that follow and <cname> will be `$' or\n"
"the CNAME target; the CNAME indirection and error formats above are not used.\n"
"\n"
"Exit status:\n"
" 0 all went well\n"
" 1-6 at least one query failed with statustype:\n"
" 1 localfail )\n"
" 2 remotefail ) temporary errors\n"
" 3 tempfail __)_________________\n"
" 4 misconfig )\n"
" 5 misquery ) permanent errors\n"
" 6 permfail )\n"
" 10 system trouble\n"
" 11 usage problems\n"
"\n"
"Query types (see adns.h; default is addr):\n"
" ns soa ptr mx rp addr - enhanced versions\n"
" cname hinfo txt - types with only one version\n"
" a ns- soa- ptr- mx- rp- - _raw versions\n"
"Default is addr, or ptr for -i/--ptr queries\n",
stdout);
if (ferror(stdout)) sysfail("write usage message",errno);
}
void of_help(const struct optioninfo *oi, const char *arg) {
printusage();
if (fclose(stdout)) sysfail("finish writing output",errno);
exit(0);
}
typedef int comparer_type(const char **optp, const struct optioninfo *entry);
static int oc_long(const char **optp, const struct optioninfo *entry) {
return entry->lopt && !strcmp(*optp,entry->lopt);
}
static int oc_short(const char **optp, const struct optioninfo *entry) {
const char *sopt;
int l;
sopt= entry->sopt;
if (!sopt) return 0;
l= strlen(sopt);
if (memcmp(*optp,sopt,l)) return 0;
(*optp) += l;
return 1;
}
static const struct optioninfo *find1(const char **optp,
const struct optioninfo *table,
comparer_type *comparer) {
for (;;) {
if (table->type == ot_end) return 0;
if (comparer(optp,table)) return table;
table++;
}
}
static const struct optioninfo *find(const char **optp,
const char *prefix,
comparer_type *comparer) {
const struct optioninfo *oip;
const char *opt;
opt= *optp;
oip= find1(optp,perquery_options,comparer);
if (oip) return oip;
oip= find1(optp,global_options,comparer);
if (!oip) usageerr("unknown option %s%s",prefix,opt);
if (ads) usageerr("global option %s%s specified after query domain(s)",prefix,opt);
return oip;
}
const struct optioninfo *opt_findl(const char *opt) { return find(&opt,"--",oc_long); }
const struct optioninfo *opt_finds(const char **optp) { return find(optp,"-",oc_short); }
static void noninvert(const struct optioninfo *oip) NONRETURNING;
static void noninvert(const struct optioninfo *oip) {
usageerr("option %s%s%s%s%s may not be inverted",
oip->sopt ? "-" : "", oip->sopt ? oip->sopt : "",
oip->lopt && oip->sopt ? " / " : "",
oip->lopt ? "--" : "", oip->lopt ? oip->lopt : "");
}
void opt_do(const struct optioninfo *oip, const char *arg, int invert) {
switch (oip->type) {
case ot_flag:
assert(!arg);
*oip->storep= !invert;
return;
case ot_value:
assert(!arg);
if (invert) noninvert(oip);
*oip->storep= oip->value;
return;
case ot_func: case ot_funcarg:
if (invert) noninvert(oip);
oip->func(oip,arg);
return;
default:
abort();
}
}
-274
View File
@@ -1,274 +0,0 @@
/*
* adh-query.c
* - useful general-purpose resolver client program
* make queries and print answers
*/
/*
* This file is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* It is part of adns, which is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "adnshost.h"
adns_state ads;
struct outstanding_list outstanding;
static unsigned long idcounter;
void ensure_adns_init(void) {
int r;
if (ads) return;
if (signal(SIGPIPE,SIG_IGN) == SIG_ERR) sysfail("ignore SIGPIPE",errno);
r= adns_init(&ads,
adns_if_noautosys|adns_if_nosigpipe |
(ov_env ? 0 : adns_if_noenv) |
ov_verbose,
0);
if (r) sysfail("adns_init",r);
if (ov_format == fmt_default)
ov_format= ov_asynch ? fmt_asynch : fmt_simple;
}
static void prep_query(struct query_node **qun_r, int *quflags_r) {
struct query_node *qun;
char idbuf[20];
if (ov_pipe && !ads) usageerr("-f/--pipe not consistent with domains on command line");
ensure_adns_init();
qun= malloc(sizeof(*qun));
qun->pqfr= ov_pqfr;
if (ov_id) {
qun->id= xstrsave(ov_id);
} else {
sprintf(idbuf,"%lu",idcounter++);
idcounter &= 0x0fffffffflu;
qun->id= xstrsave(idbuf);
}
*quflags_r=
(ov_search ? adns_qf_search : 0) |
(ov_tcp ? adns_qf_usevc : 0) |
((ov_pqfr.show_owner || ov_format == fmt_simple) ? adns_qf_owner : 0) |
(ov_qc_query ? adns_qf_quoteok_query : 0) |
(ov_qc_anshost ? adns_qf_quoteok_anshost : 0) |
(ov_qc_cname ? 0 : adns_qf_quoteok_cname) |
ov_cname,
*qun_r= qun;
}
void of_ptr(const struct optioninfo *oi, const char *arg) {
struct query_node *qun;
int quflags, r;
struct sockaddr_in sa;
memset(&sa,0,sizeof(sa));
sa.sin_family= AF_INET;
if (!inet_aton(arg,&sa.sin_addr)) usageerr("invalid IP address %s",arg);
prep_query(&qun,&quflags);
r= adns_submit_reverse(ads,
(struct sockaddr*)&sa,
ov_type == adns_r_none ? adns_r_ptr : ov_type,
quflags,
qun,
&qun->qu);
if (r) sysfail("adns_submit_reverse",r);
LIST_LINK_TAIL(outstanding,qun);
}
void query_do(const char *domain) {
struct query_node *qun;
int quflags, r;
prep_query(&qun,&quflags);
r= adns_submit(ads, domain,
ov_type == adns_r_none ? adns_r_addr : ov_type,
quflags,
qun,
&qun->qu);
if (r) sysfail("adns_submit",r);
LIST_LINK_TAIL(outstanding,qun);
}
static void dequeue_query(struct query_node *qun) {
LIST_UNLINK(outstanding,qun);
free(qun->id);
free(qun);
}
static void print_withspace(const char *str) {
if (printf("%s ", str) == EOF) outerr();
}
static void print_ttl(struct query_node *qun, adns_answer *answer) {
unsigned long ttl;
time_t now;
switch (qun->pqfr.ttl) {
case tm_none:
return;
case tm_rel:
if (time(&now) == (time_t)-1) sysfail("get current time",errno);
ttl= answer->expires < now ? 0 : answer->expires - now;
break;
case tm_abs:
ttl= answer->expires;
break;
default:
abort();
}
if (printf("%lu ",ttl) == EOF) outerr();
}
static void print_owner_ttl(struct query_node *qun, adns_answer *answer) {
if (qun->pqfr.show_owner) print_withspace(answer->owner);
print_ttl(qun,answer);
}
static void check_status(adns_status st) {
static const adns_status statuspoints[]= {
adns_s_ok,
adns_s_max_localfail, adns_s_max_remotefail, adns_s_max_tempfail,
adns_s_max_misconfig, adns_s_max_misquery
};
const adns_status *spp;
int minrcode;
for (minrcode=0, spp=statuspoints;
spp < statuspoints + (sizeof(statuspoints)/sizeof(statuspoints[0]));
spp++)
if (st > *spp) minrcode++;
if (rcode < minrcode) rcode= minrcode;
}
static void print_status(adns_status st, struct query_node *qun, adns_answer *answer) {
const char *statustypeabbrev, *statusabbrev, *statusstring;
statustypeabbrev= adns_errtypeabbrev(st);
statusabbrev= adns_errabbrev(st);
statusstring= adns_strerror(st);
assert(!strchr(statusstring,'"'));
if (printf("%s %d %s ", statustypeabbrev, st, statusabbrev)
== EOF) outerr();
print_owner_ttl(qun,answer);
if (qun->pqfr.show_cname)
print_withspace(answer->cname ? answer->cname : "$");
if (printf("\"%s\"\n", statusstring) == EOF) outerr();
}
static void print_dnsfail(adns_status st, struct query_node *qun, adns_answer *answer) {
int r;
const char *typename, *statusstring;
adns_status ist;
if (ov_format == fmt_inline) {
if (fputs("; failed ",stdout) == EOF) outerr();
print_status(st,qun,answer);
return;
}
assert(ov_format == fmt_simple);
if (st == adns_s_nxdomain) {
r= fprintf(stderr,"%s does not exist\n", answer->owner);
} else {
ist= adns_rr_info(answer->type, &typename, 0,0,0,0);
if (st == adns_s_nodata) {
r= fprintf(stderr,"%s has no %s record\n", answer->owner, typename);
} else {
statusstring= adns_strerror(st);
r= fprintf(stderr,"Error during DNS %s lookup for %s: %s\n",
typename, answer->owner, statusstring);
}
}
if (r == EOF) sysfail("write error message to stderr",errno);
}
void query_done(struct query_node *qun, adns_answer *answer) {
adns_status st, ist;
int rrn, nrrs;
const char *rrp, *realowner, *typename;
char *datastr;
st= answer->status;
nrrs= answer->nrrs;
if (ov_format == fmt_asynch) {
check_status(st);
if (printf("%s %d ", qun->id, nrrs) == EOF) outerr();
print_status(st,qun,answer);
} else {
if (qun->pqfr.show_cname && answer->cname) {
print_owner_ttl(qun,answer);
if (qun->pqfr.show_type) print_withspace("CNAME");
if (printf("%s\n", answer->cname) == EOF) outerr();
}
if (st) {
check_status(st);
print_dnsfail(st,qun,answer);
}
}
if (qun->pqfr.show_owner) {
realowner= answer->cname ? answer->cname : answer->owner;
assert(realowner);
} else {
realowner= 0;
}
if (nrrs) {
for (rrn=0, rrp = answer->rrs.untyped;
rrn < nrrs;
rrn++, rrp += answer->rrsz) {
if (realowner) print_withspace(realowner);
print_ttl(qun,answer);
ist= adns_rr_info(answer->type, &typename, 0, 0, rrp, &datastr);
if (ist == adns_s_nomemory) sysfail("adns_rr_info failed",ENOMEM);
assert(!ist);
if (qun->pqfr.show_type) print_withspace(typename);
if (printf("%s\n",datastr) == EOF) outerr();
free(datastr);
}
}
if (fflush(stdout)) outerr();
free(answer);
dequeue_query(qun);
}
void of_asynch_id(const struct optioninfo *oi, const char *arg) {
free(ov_id);
ov_id= xstrsave(arg);
}
void of_cancel_id(const struct optioninfo *oi, const char *arg) {
struct query_node *qun;
for (qun= outstanding.head;
qun && strcmp(qun->id,arg);
qun= qun->next);
if (!qun) return;
adns_cancel(qun->qu);
dequeue_query(qun);
}
-118
View File
@@ -1,118 +0,0 @@
/*
* adnshost.h
* - useful general-purpose resolver client program, header file
*/
/*
* This file is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* It is part of adns, which is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef ADNSHOST_H_INCLUDED
#define ADNSHOST_H_INCLUDED
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "config.h"
#include "adns.h"
#include "dlist.h"
/* declarations related to option processing */
struct optioninfo;
typedef void optfunc(const struct optioninfo *oi, const char *arg);
struct optioninfo {
enum oi_type {
ot_end, ot_desconly,
ot_flag, ot_value, ot_func, ot_funcarg
} type;
const char *desc;
const char *sopt, *lopt;
int *storep, value;
optfunc *func;
const char *argdesc;
};
enum ttlmode { tm_none, tm_rel, tm_abs };
enum outputformat { fmt_default, fmt_simple, fmt_inline, fmt_asynch };
struct perqueryflags_remember {
int show_owner, show_type, show_cname;
int ttl;
};
extern int ov_env, ov_pipe, ov_asynch;
extern int ov_verbose;
extern adns_rrtype ov_type;
extern int ov_search, ov_qc_query, ov_qc_anshost, ov_qc_cname;
extern int ov_tcp, ov_cname, ov_format;
extern char *ov_id;
extern struct perqueryflags_remember ov_pqfr;
extern optfunc of_help, of_type, of_ptr, of_asynch_id, of_cancel_id;
const struct optioninfo *opt_findl(const char *opt);
const struct optioninfo *opt_finds(const char **optp);
void opt_do(const struct optioninfo *oip, const char *arg, int invert);
/* declarations related to query processing */
struct query_node {
struct query_node *next, *back;
struct perqueryflags_remember pqfr;
char *id;
adns_query qu;
};
extern adns_state ads;
extern struct outstanding_list { struct query_node *head, *tail; } outstanding;
void ensure_adns_init(void);
void query_do(const char *domain);
void query_done(struct query_node *qun, adns_answer *answer);
void of_asynch_id(const struct optioninfo *oi, const char *arg);
void of_cancel_id(const struct optioninfo *oi, const char *arg);
/* declarations related to main program and useful utility functions */
void sysfail(const char *what, int errnoval) NONRETURNING;
void usageerr(const char *what, ...) NONRETURNPRINTFFORMAT(1,2);
void outerr(void) NONRETURNING;
void *xmalloc(size_t sz);
char *xstrsave(const char *str);
extern int rcode;
#endif
-239
View File
@@ -1,239 +0,0 @@
/*
* adnslogres.c
* - a replacement for the Apache logresolve program using adns
*/
/*
* This file is
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
* Copyright (C) 1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* It is part of adns, which is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* This version was originally supplied by Tony Finch, but has been
* modified by Ian Jackson as it was incorporated into adns.
*/
static const char * const cvsid =
"$Id: adnslogres.c,v 1.1.1.1 2000-02-16 17:32:28 sdyoung Exp $";
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include "adns.h"
/* maximum number of concurrent DNS queries */
#define MAXPENDING 1000
/* maximum length of a line */
#define MAXLINE 1024
/* option flags */
#define OPT_DEBUG 1
#define OPT_POLL 2
static const char *progname;
#define msg(fmt, args...) fprintf(stderr, "%s: " fmt "\n", progname, ##args)
static void aargh(const char *cause) {
const char *why = strerror(errno);
if (!why) why = "Unknown error";
msg("%s: %s (%d)", cause, why, errno);
exit(1);
}
/*
* Parse the IP address and convert to a reverse domain name.
*/
static char *ipaddr2domain(char *start, char **addr, char **rest) {
static char buf[30]; /* "123.123.123.123.in-addr.arpa.\0" */
char *ptrs[5];
int i;
ptrs[0]= start;
retry:
while (!isdigit(*ptrs[0]))
if (!*ptrs[0]++) {
strcpy(buf, "invalid.");
*addr= *rest= NULL;
return buf;
}
for (i= 1; i < 5; i++) {
ptrs[i]= ptrs[i-1];
while (isdigit(*ptrs[i]++));
if ((i == 4 && !isspace(ptrs[i][-1])) ||
(i != 4 && ptrs[i][-1] != '.') ||
(ptrs[i]-ptrs[i-1] > 4)) {
ptrs[0]= ptrs[i]-1;
goto retry;
}
}
sprintf(buf, "%.*s.%.*s.%.*s.%.*s.in-addr.arpa.",
ptrs[4]-ptrs[3]-1, ptrs[3],
ptrs[3]-ptrs[2]-1, ptrs[2],
ptrs[2]-ptrs[1]-1, ptrs[1],
ptrs[1]-ptrs[0]-1, ptrs[0]);
*addr= ptrs[0];
*rest= ptrs[4]-1;
return buf;
}
static void printline(FILE *outf, char *start, char *addr, char *rest, char *domain) {
if (domain)
fprintf(outf, "%.*s%s%s", addr - start, start, domain, rest);
else
fputs(start, outf);
if (ferror(outf)) aargh("write output");
}
typedef struct logline {
struct logline *next;
char *start, *addr, *rest;
adns_query query;
} logline;
static logline *readline(FILE *inf, adns_state adns, int opts) {
static char buf[MAXLINE];
char *str;
logline *line;
if (fgets(buf, MAXLINE, inf)) {
str= malloc(sizeof(*line) + strlen(buf) + 1);
if (!str) aargh("malloc");
line= (logline*)str;
line->next= NULL;
line->start= str+sizeof(logline);
strcpy(line->start, buf);
str= ipaddr2domain(line->start, &line->addr, &line->rest);
if (opts & OPT_DEBUG)
msg("submitting %.*s -> %s", line->rest-line->addr, line->addr, str);
if (adns_submit(adns, str, adns_r_ptr,
adns_qf_quoteok_cname|adns_qf_cname_loose,
NULL, &line->query))
aargh("adns_submit");
return line;
}
if (!feof(inf))
aargh("fgets");
return NULL;
}
static void proclog(FILE *inf, FILE *outf, int opts) {
int eof, err, len;
adns_state adns;
adns_answer *answer;
logline *head, *tail, *line;
errno= adns_init(&adns, (opts & OPT_DEBUG) ? adns_if_debug : 0, 0);
if (errno) aargh("adns_init");
head= tail= readline(inf, adns, opts);
len= 1; eof= 0;
while (head) {
if (opts & OPT_DEBUG)
msg("%d in queue; checking %.*s", len,
head->rest-head->addr, head->addr);
if (eof || len > MAXPENDING)
if (opts & OPT_POLL)
err= adns_wait_poll(adns, &head->query, &answer, NULL);
else
err= adns_wait(adns, &head->query, &answer, NULL);
else
err= adns_check(adns, &head->query, &answer, NULL);
if (err != EAGAIN) {
printline(outf, head->start, head->addr, head->rest,
answer->status == adns_s_ok ? *answer->rrs.str : NULL);
line= head; head= head->next;
free(line); free(answer);
len--;
}
if (!eof) {
line= readline(inf, adns, opts);
if (!line)
eof= 1;
else {
if (!head)
head= line;
else
tail->next= line;
tail= line;
len++;
}
}
}
adns_finish(adns);
}
static void usage(void) {
fprintf(stderr, "usage: %s [-d] [-p] [logfile]\n", progname);
exit(1);
}
int main(int argc, char *argv[]) {
int c, opts;
FILE *inf;
progname= strrchr(*argv, '/');
if (progname)
progname++;
else
progname= *argv;
opts= 0;
while ((c= getopt(argc, argv, "dp")) != -1)
switch (c) {
case 'd':
opts|= OPT_DEBUG;
break;
case 'p':
opts|= OPT_POLL;
break;
default:
usage();
}
argc-= optind;
argv+= optind;
inf= NULL;
if (argc == 0)
inf= stdin;
else if (argc == 1)
inf= fopen(*argv, "r");
else
usage();
if (!inf)
aargh("couldn't open input");
proclog(inf, stdout, opts);
if (fclose(inf))
aargh("fclose input");
if (fclose(stdout))
aargh("fclose output");
return 0;
}
-454
View File
@@ -1,454 +0,0 @@
/*
* adnsresfilter.c
* - filter which does resolving, not part of the library
*/
/*
* This file is
* Copyright (C) 1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* It is part of adns, which is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <search.h>
#include <assert.h>
#include <ctype.h>
#include <sys/fcntl.h>
#include "adns.h"
#include "config.h"
#include "dlist.h"
#include "tvarith.h"
struct outqueuenode {
struct outqueuenode *next, *back;
void *buffer;
char *textp;
int textlen;
struct timeval printbefore;
struct treething *addr;
};
static int bracket, forever, address;
static unsigned long timeout=100;
static adns_rrtype rrt= adns_r_ptr;
static int outblocked, inputeof;
static struct { struct outqueuenode *head, *tail; } outqueue;
static int peroutqueuenode, outqueuelen;
static struct sockaddr_in sa;
static adns_state ads;
static char addrtextbuf[14];
static int cbyte, inbyte, inbuf;
static unsigned char bytes[4];
static struct timeval printbefore;
struct treething {
unsigned char bytes[4];
adns_query qu;
adns_answer *ans;
};
static struct treething *newthing;
static void *treeroot;
static int nonblock(int fd, int isnonblock) {
int r;
r= fcntl(fd,F_GETFL);
if (r==-1) return -1;
r= fcntl(fd,F_SETFL, isnonblock ? r|O_NONBLOCK : r&~O_NONBLOCK);
if (r==-1) return -1;
return 0;
}
static void quit(int exitstatus) NONRETURNING;
static void quit(int exitstatus) {
nonblock(0,0);
nonblock(1,0);
exit(exitstatus);
}
static void sysfail(const char *what) NONRETURNING;
static void sysfail(const char *what) {
fprintf(stderr,"adnsresfilter: system call failed: %s: %s\n",what,strerror(errno));
quit(2);
}
static void *xmalloc(size_t sz) {
void *r;
r= malloc(sz); if (r) return r;
sysfail("malloc");
}
static void outputerr(void) NONRETURNING;
static void outputerr(void) { sysfail("write to stdout"); }
static void usage(void) {
if (printf("usage: adnsresfilter [<options ...>]\n"
" adnsresfilter -h|--help\n"
"options: -t<milliseconds>|--timeout <milliseconds>\n"
" -w|--wait (always wait for queries to time out or fail)\n"
" -b|--brackets (require [...] around IP addresses)\n"
" -a|--address (always include [address] in output)\n"
" -u|--unchecked (do not forward map for checking)\n"
"Timeout is the maximum amount to delay any particular bit of output for.\n"
"Lookups will go on in the background. Default timeout = 100 (ms).\n")
== EOF) outputerr();
}
static void usageerr(const char *why) NONRETURNING;
static void usageerr(const char *why) {
fprintf(stderr,"adnsresfilter: bad usage: %s\n",why);
usage();
quit(1);
}
static void adnsfail(const char *what, int e) NONRETURNING;
static void adnsfail(const char *what, int e) {
fprintf(stderr,"adnsresfilter: adns call failed: %s: %s\n",what,strerror(e));
quit(2);
}
static void settimeout(const char *arg) {
char *ep;
timeout= strtoul(arg,&ep,0);
if (*ep) usageerr("invalid timeout");
}
static void parseargs(const char *const *argv) {
const char *arg;
int c;
while ((arg= *++argv)) {
if (arg[0] != '-') usageerr("no non-option arguments are allowed");
if (arg[1] == '-') {
if (!strcmp(arg,"--brackets")) {
bracket= 1;
} else if (!strcmp(arg,"--unchecked")) {
rrt= adns_r_ptr_raw;
} else if (!strcmp(arg,"--wait")) {
forever= 1;
} else if (!strcmp(arg,"--address")) {
address= 1;
} else if (!strcmp(arg,"--help")) {
usage(); quit(0);
} else if (!strcmp(arg,"--timeout")) {
if (!(arg= *++argv)) usageerr("--timeout needs a value");
settimeout(arg);
forever= 0;
} else {
usageerr("unknown long option");
}
} else {
while ((c= *++arg)) {
switch (c) {
case 'b':
bracket= 1;
break;
case 'u':
rrt= adns_r_ptr_raw;
break;
case 'w':
forever= 1;
break;
case 'a':
address= 1;
break;
case 'h':
usage();
quit(0);
case 't':
if (*++arg) settimeout(arg);
else if ((arg= *++argv)) settimeout(arg);
else usageerr("-t needs a value");
forever= 0;
arg= "\0";
break;
default:
usageerr("unknown short option");
}
}
}
}
}
static void queueoutchar(int c) {
struct outqueuenode *entry;
entry= outqueue.tail;
if (!entry || entry->addr || entry->textlen >= peroutqueuenode) {
peroutqueuenode= !peroutqueuenode || !entry || entry->addr ? 128 :
peroutqueuenode >= 1024 ? 4096 : peroutqueuenode<<2;
entry= xmalloc(sizeof(*entry));
entry->buffer= xmalloc(peroutqueuenode);
entry->textp= entry->buffer;
entry->textlen= 0;
entry->addr= 0;
LIST_LINK_TAIL(outqueue,entry);
outqueuelen++;
}
entry->textp[entry->textlen++]= c;
}
static void queueoutstr(const char *str, int len) {
while (len-- > 0) queueoutchar(*str++);
}
static void writestdout(struct outqueuenode *entry) {
int r;
while (entry->textlen) {
r= write(1, entry->textp, entry->textlen);
if (r < 0) {
if (errno == EINTR) continue;
if (errno == EAGAIN) { outblocked= 1; break; }
sysfail("write stdout");
}
assert(r <= entry->textlen);
entry->textp += r;
entry->textlen -= r;
}
if (!entry->textlen) {
LIST_UNLINK(outqueue,entry);
free(entry->buffer);
free(entry);
outqueuelen--;
}
}
static void replacetextwithname(struct outqueuenode *entry) {
char *name, *newbuf;
int namelen, newlen;
name= entry->addr->ans->rrs.str[0];
namelen= strlen(name);
if (!address) {
free(entry->buffer);
entry->buffer= 0;
entry->textp= name;
entry->textlen= namelen;
} else {
newlen= entry->textlen + namelen + (bracket ? 0 : 2);
newbuf= xmalloc(newlen + 1);
sprintf(newbuf, bracket ? "%s%.*s" : "%s[%.*s]", name, entry->textlen, entry->textp);
free(entry->buffer);
entry->buffer= entry->textp= newbuf;
entry->textlen= newlen;
}
}
static void checkadnsqueries(void) {
adns_query qu;
adns_answer *ans;
void *context;
struct treething *foundthing;
int r;
for (;;) {
qu= 0; context= 0; ans= 0;
r= adns_check(ads,&qu,&ans,&context);
if (r == ESRCH || r == EAGAIN) break;
assert(!r);
foundthing= context;
foundthing->ans= ans;
foundthing->qu= 0;
}
}
static void restartbuf(void) {
if (inbuf>0) queueoutstr(addrtextbuf,inbuf);
inbuf= 0;
}
static int comparer(const void *a, const void *b) {
return memcmp(a,b,4);
}
static void procaddr(void) {
struct treething *foundthing;
void **searchfound;
struct outqueuenode *entry;
int r;
if (!newthing) {
newthing= xmalloc(sizeof(struct treething));
newthing->qu= 0;
newthing->ans= 0;
}
memcpy(newthing->bytes,bytes,4);
searchfound= tsearch(newthing,&treeroot,comparer);
if (!searchfound) sysfail("tsearch");
foundthing= *searchfound;
if (foundthing == newthing) {
newthing= 0;
memcpy(&sa.sin_addr,bytes,4);
r= adns_submit_reverse(ads, (const struct sockaddr*)&sa,
rrt,0,foundthing,&foundthing->qu);
if (r) adnsfail("submit",r);
}
entry= xmalloc(sizeof(*entry));
entry->buffer= xmalloc(inbuf);
entry->textp= entry->buffer;
memcpy(entry->textp,addrtextbuf,inbuf);
entry->textlen= inbuf;
entry->addr= foundthing;
entry->printbefore= printbefore;
LIST_LINK_TAIL(outqueue,entry);
outqueuelen++;
inbuf= 0;
cbyte= -1;
}
static void startaddr(void) {
bytes[cbyte=0]= 0;
inbyte= 0;
}
static void readstdin(void) {
char readbuf[512], *p;
int r, c, nbyte;
while ((r= read(0,readbuf,sizeof(readbuf))) <= 0) {
if (r == 0) { inputeof= 1; return; }
if (r == EAGAIN) return;
if (r != EINTR) sysfail("read stdin");
}
for (p=readbuf; r>0; r--,p++) {
c= *p;
if (cbyte==-1 && bracket && c=='[') {
addrtextbuf[inbuf++]= c;
startaddr();
} else if (cbyte==-1 && !bracket && !isalnum(c)) {
queueoutchar(c);
startaddr();
} else if (cbyte>=0 && inbyte<3 && c>='0' && c<='9' &&
(nbyte= bytes[cbyte]*10 + (c-'0')) <= 255) {
bytes[cbyte]= nbyte;
addrtextbuf[inbuf++]= c;
inbyte++;
} else if (cbyte>=0 && cbyte<3 && inbyte>0 && c=='.') {
bytes[++cbyte]= 0;
addrtextbuf[inbuf++]= c;
inbyte= 0;
} else if (cbyte==3 && inbyte>0 && bracket && c==']') {
addrtextbuf[inbuf++]= c;
procaddr();
} else if (cbyte==3 && inbyte>0 && !bracket && !isalnum(c)) {
procaddr();
queueoutchar(c);
startaddr();
} else {
restartbuf();
queueoutchar(c);
cbyte= -1;
if (!bracket && !isalnum(c)) startaddr();
}
}
if (cbyte==3 && inbyte>0 && !bracket) procaddr();
}
static void startup(void) {
int r;
if (nonblock(0,1)) sysfail("set stdin to nonblocking mode");
if (nonblock(1,1)) sysfail("set stdout to nonblocking mode");
memset(&sa,0,sizeof(sa));
sa.sin_family= AF_INET;
r= adns_init(&ads,0,0); if (r) adnsfail("init",r);
cbyte= -1;
inbyte= -1;
inbuf= 0;
if (!bracket) startaddr();
}
int main(int argc, const char *const *argv) {
int r, maxfd;
fd_set readfds, writefds, exceptfds;
struct outqueuenode *entry;
struct timeval *tv, tvbuf, now;
parseargs(argv);
startup();
while (!inputeof || outqueue.head) {
maxfd= 2;
tv= 0;
FD_ZERO(&readfds); FD_ZERO(&writefds); FD_ZERO(&exceptfds);
if ((entry= outqueue.head) && !outblocked) {
if (!entry->addr) {
writestdout(entry);
continue;
}
if (entry->addr->ans) {
if (entry->addr->ans->nrrs)
replacetextwithname(entry);
entry->addr= 0;
continue;
}
r= gettimeofday(&now,0); if (r) sysfail("gettimeofday");
if (forever) {
tv= 0;
} else if (!timercmp(&now,&entry->printbefore,<)) {
entry->addr= 0;
continue;
} else {
tvbuf.tv_sec= entry->printbefore.tv_sec - now.tv_sec - 1;
tvbuf.tv_usec= entry->printbefore.tv_usec - now.tv_usec + 1000000;
tvbuf.tv_sec += tvbuf.tv_usec / 1000000;
tvbuf.tv_usec %= 1000000;
tv= &tvbuf;
}
adns_beforeselect(ads,&maxfd,&readfds,&writefds,&exceptfds,
&tv,&tvbuf,&now);
}
if (outblocked) FD_SET(1,&writefds);
if (!inputeof && outqueuelen<1024) FD_SET(0,&readfds);
r= select(maxfd,&readfds,&writefds,&exceptfds,tv);
if (r < 0) { if (r == EINTR) continue; else sysfail("select"); }
r= gettimeofday(&now,0); if (r) sysfail("gettimeofday");
adns_afterselect(ads,maxfd,&readfds,&writefds,&exceptfds,&now);
checkadnsqueries();
if (FD_ISSET(0,&readfds)) {
if (!forever) {
printbefore= now;
timevaladd(&printbefore,timeout);
}
readstdin();
} else if (FD_ISSET(1,&writefds)) {
outblocked= 0;
}
}
if (nonblock(0,0)) sysfail("un-nonblock stdin");
if (nonblock(1,0)) sysfail("un-nonblock stdout");
if (ferror(stdin) || fclose(stdin)) sysfail("read stdin");
if (fclose(stdout)) sysfail("close stdout");
exit(0);
}
-337
View File
@@ -1,337 +0,0 @@
/*
* adnstest.c
* - simple test program, not part of the library
*/
/*
* This file is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* It is part of adns, which is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <stdio.h>
#include <sys/time.h>
#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "adns.h"
#include "config.h"
#ifndef OUTPUTSTREAM
# define OUTPUTSTREAM stdout
#endif
struct myctx {
adns_query qu;
int doneyet, found;
const char *fdom;
};
static struct myctx *mcs;
static adns_state ads;
static adns_rrtype *types_a;
static void quitnow(int rc) NONRETURNING;
static void quitnow(int rc) {
free(mcs);
free(types_a);
if (ads) adns_finish(ads);
exit(rc);
}
#ifndef HAVE_POLL
#undef poll
int poll(struct pollfd *ufds, int nfds, int timeout) {
fputs("poll(2) not supported on this system\n",stderr);
quitnow(5);
}
#define adns_beforepoll(a,b,c,d,e) 0
#define adns_afterpoll(a,b,c,d) 0
#endif
static void failure_status(const char *what, adns_status st) NONRETURNING;
static void failure_status(const char *what, adns_status st) {
fprintf(stderr,"adns failure: %s: %s\n",what,adns_strerror(st));
quitnow(2);
}
static void failure_errno(const char *what, int errnoval) NONRETURNING;
static void failure_errno(const char *what, int errnoval) {
fprintf(stderr,"adns failure: %s: errno=%d\n",what,errnoval);
quitnow(2);
}
static void usageerr(const char *why) NONRETURNING;
static void usageerr(const char *why) {
fprintf(stderr,
"bad usage: %s\n"
"usage: adnstest [-<initflagsnum>[,<owninitflags>]] [/<initstring>]\n"
" [ :<typenum>,... ]\n"
" [ [<queryflagsnum>[,<ownqueryflags>]/]<domain> ... ]\n"
"initflags: p use poll(2) instead of select(2)\n"
" s use adns_wait with specified query, instead of 0\n"
"queryflags: a print status abbrevs instead of strings\n"
"exit status: 0 ok (though some queries may have failed)\n"
" 1 used by test harness to indicate test failed\n"
" 2 unable to submit or init or some such\n"
" 3 unexpected failure\n"
" 4 usage error\n"
" 5 operation not supported on this system\n",
why);
quitnow(4);
}
static const adns_rrtype defaulttypes[]= {
adns_r_a,
adns_r_ns_raw,
adns_r_cname,
adns_r_soa_raw,
adns_r_ptr_raw,
adns_r_hinfo,
adns_r_mx_raw,
adns_r_txt,
adns_r_rp_raw,
adns_r_addr,
adns_r_ns,
adns_r_ptr,
adns_r_mx,
adns_r_soa,
adns_r_rp,
adns_r_none
};
static void dumptype(adns_status ri, const char *rrtn, const char *fmtn) {
fprintf(stdout, "%s(%s)%s%s",
ri ? "?" : rrtn, ri ? "?" : fmtn ? fmtn : "-",
ri ? " " : "", ri ? adns_strerror(ri) : "");
}
static void fdom_split(const char *fdom, const char **dom_r, int *qf_r,
char *ownflags, int ownflags_l) {
int qf;
char *ep;
qf= strtoul(fdom,&ep,0);
if (*ep == ',' && strchr(ep,'/')) {
ep++;
while (*ep != '/') {
if (--ownflags_l <= 0) { fputs("too many flags\n",stderr); quitnow(3); }
*ownflags++= *ep++;
}
}
if (*ep != '/') { *dom_r= fdom; *qf_r= 0; }
else { *dom_r= ep+1; *qf_r= qf; }
*ownflags= 0;
}
static int consistsof(const char *string, const char *accept) {
return strspn(string,accept) == strlen(string);
}
int main(int argc, char *const *argv) {
adns_query qu;
struct myctx *mc, *mcw;
void *mcr;
adns_answer *ans;
const char *initstring, *rrtn, *fmtn;
const char *const *fdomlist, *domain;
char *show, *cp;
int len, i, qc, qi, tc, ti, ch, qflags, initflagsnum;
adns_status ri;
int r;
const adns_rrtype *types;
struct timeval now;
char ownflags[10];
char *ep;
const char *initflags, *owninitflags;
if (argv[0] && argv[1] && argv[1][0] == '-') {
initflags= argv[1]+1;
argv++;
} else {
initflags= "";
}
if (argv[0] && argv[1] && argv[1][0] == '/') {
initstring= argv[1]+1;
argv++;
} else {
initstring= 0;
}
initflagsnum= strtoul(initflags,&ep,0);
if (*ep == ',') {
owninitflags= ep+1;
if (!consistsof(owninitflags,"ps")) usageerr("unknown owninitflag");
} else if (!*ep) {
owninitflags= "";
} else {
usageerr("bad <initflagsnum>[,<owninitflags>]");
}
if (argv[0] && argv[1] && argv[1][0] == ':') {
for (cp= argv[1]+1, tc=1; (ch= *cp); cp++)
if (ch==',') tc++;
types_a= malloc(sizeof(*types_a)*(tc+1));
if (!types_a) { perror("malloc types"); quitnow(3); }
for (cp= argv[1]+1, ti=0; ti<tc; ti++) {
types_a[ti]= strtoul(cp,&cp,10);
if ((ch= *cp)) {
if (ch != ',') usageerr("unexpected char (not comma) in or between types");
cp++;
}
}
types_a[ti]= adns_r_none;
types= types_a;
argv++;
} else {
types_a= 0;
types= defaulttypes;
}
if (!(argv[0] && argv[1])) usageerr("no query domains supplied");
fdomlist= (const char *const*)argv+1;
for (qc=0; fdomlist[qc]; qc++);
for (tc=0; types[tc] != adns_r_none; tc++);
mcs= malloc(tc ? sizeof(*mcs)*qc*tc : 1);
if (!mcs) { perror("malloc mcs"); quitnow(3); }
if (initstring) {
r= adns_init_strcfg(&ads,
(adns_if_debug|adns_if_noautosys|adns_if_checkc_freq)
^initflagsnum,
stdout,initstring);
} else {
r= adns_init(&ads,
(adns_if_debug|adns_if_noautosys)^initflagsnum,
0);
}
if (r) failure_errno("init",r);
for (qi=0; qi<qc; qi++) {
fdom_split(fdomlist[qi],&domain,&qflags,ownflags,sizeof(ownflags));
if (!consistsof(ownflags,"a")) usageerr("unknown ownqueryflag");
for (ti=0; ti<tc; ti++) {
mc= &mcs[qi*tc+ti];
mc->doneyet= 0;
mc->fdom= fdomlist[qi];
fprintf(stdout,"%s flags %d type %d",domain,qflags,types[ti]);
r= adns_submit(ads,domain,types[ti],qflags,mc,&mc->qu);
if (r == ENOSYS) {
fprintf(stdout," not implemented\n");
mc->qu= 0;
mc->doneyet= 1;
} else if (r) {
failure_errno("submit",r);
} else {
ri= adns_rr_info(types[ti], &rrtn,&fmtn,0, 0,0);
putc(' ',stdout);
dumptype(ri,rrtn,fmtn);
fprintf(stdout," submitted\n");
}
}
}
for (;;) {
for (qi=0; qi<qc; qi++) {
for (ti=0; ti<tc; ti++) {
mc= &mcs[qi*tc+ti];
mc->found= 0;
}
}
for (adns_forallqueries_begin(ads);
(qu= adns_forallqueries_next(ads,&mcr));
) {
mc= mcr;
assert(qu == mc->qu);
assert(!mc->doneyet);
mc->found= 1;
}
mcw= 0;
for (qi=0; qi<qc; qi++) {
for (ti=0; ti<tc; ti++) {
mc= &mcs[qi*tc+ti];
if (mc->doneyet) continue;
assert(mc->found);
if (!mcw) mcw= mc;
}
}
if (!mcw) break;
if (strchr(owninitflags,'s')) {
qu= mcw->qu;
mc= mcw;
} else {
qu= 0;
mc= 0;
}
if (strchr(owninitflags,'p')) {
r= adns_wait_poll(ads,&qu,&ans,&mcr);
} else {
r= adns_wait(ads,&qu,&ans,&mcr);
}
if (r) failure_errno("wait/check",r);
if (mc) assert(mcr==mc);
else mc= mcr;
assert(qu==mc->qu);
assert(!mc->doneyet);
fdom_split(mc->fdom,&domain,&qflags,ownflags,sizeof(ownflags));
if (gettimeofday(&now,0)) { perror("gettimeofday"); quitnow(3); }
ri= adns_rr_info(ans->type, &rrtn,&fmtn,&len, 0,0);
fprintf(stdout, "%s flags %d type ",domain,qflags);
dumptype(ri,rrtn,fmtn);
fprintf(stdout, "%s%s: %s; nrrs=%d; cname=%s; owner=%s; ttl=%ld\n",
ownflags[0] ? " ownflags=" : "", ownflags,
strchr(ownflags,'a')
? adns_errabbrev(ans->status)
: adns_strerror(ans->status),
ans->nrrs,
ans->cname ? ans->cname : "$",
ans->owner ? ans->owner : "$",
(long)ans->expires - (long)now.tv_sec);
if (ans->nrrs) {
assert(!ri);
for (i=0; i<ans->nrrs; i++) {
ri= adns_rr_info(ans->type, 0,0,0, ans->rrs.bytes + i*len, &show);
if (ri) failure_status("info",ri);
fprintf(stdout," %s\n",show);
free(show);
}
}
free(ans);
mc->doneyet= 1;
}
quitnow(0);
}
-85
View File
@@ -1,85 +0,0 @@
/*
* fanftest.c
* - a small test program from Tony Finch
*/
/*
* This file is
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
* Copyright (C) 1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* It is part of adns, which is
* Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
* Copyright (C) 1999 Tony Finch <dot@dotat.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* This version was originally supplied by Tony Finch, but has been
* modified by Ian Jackson as it was incorporated into adns.
*/
static const char * const cvsid =
"$Id: fanftest.c,v 1.1.1.1 2000-02-16 17:32:29 sdyoung Exp $";
#include <sys/types.h>
#include <sys/time.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include "adns.h"
static const char *progname;
static void aargh(const char *msg) {
fprintf(stderr, "%s: %s: %s (%d)\n", progname, msg,
strerror(errno) ? strerror(errno) : "Unknown error", errno);
exit(1);
}
int main(int argc, char *argv[]) {
adns_state adns;
adns_query query;
adns_answer *answer;
progname= strrchr(*argv, '/');
if (progname)
progname++;
else
progname= *argv;
if (argc != 2) {
fprintf(stderr, "usage: %s <domain>\n", progname);
exit(1);
}
errno= adns_init(&adns, adns_if_debug, 0);
if (errno) aargh("adns_init");
errno= adns_submit(adns, argv[1], adns_r_ptr,
adns_qf_quoteok_cname|adns_qf_cname_loose,
NULL, &query);
if (errno) aargh("adns_submit");
errno= adns_wait(adns, &query, &answer, NULL);
if (errno) aargh("adns_init");
printf("%s\n", answer->status == adns_s_ok ? *answer->rrs.str : "dunno");
adns_finish(adns);
return 0;
}
-2
View File
@@ -1,2 +0,0 @@
file adnsresfilter_s
set args <testinput -t2000
-1826
View File
File diff suppressed because it is too large. Load diff
-101
View File
@@ -1,101 +0,0 @@
# configure.in - input to autoconf
#
# This file is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
#
# It is part of adns, which is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
# Copyright (C) 1999 Tony Finch <dot@dotat.at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
AC_INIT(src/adns.h)
AC_CONFIG_HEADER(src/config.h)
AC_PROG_CC
AC_PROG_CPP
AC_PROG_RANLIB
AC_CHECK_FUNCS(poll)
ADNS_C_GETFUNC(socket,socket)
ADNS_C_GETFUNC(inet_ntoa,nsl)
PROGS_IF_TSEARCH=adnsresfilter
AC_SUBST(PROGS_HAVE_TSEARCH)
AC_CHECK_FUNC(tsearch,[
PROGS_HAVE_TSEARCH=$PROGS_IF_TSEARCH
],[
PROGS_HAVE_TSEARCH='';
AC_MSG_WARN([tsearch missing - not building client program(s) $PROGS_IF_TSEARCH])
])
AC_MSG_CHECKING(for INADDR_LOOPBACK)
AC_CACHE_VAL(adns_cv_decl_inaddrloopback,[
AC_TRY_COMPILE([
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
],[
INADDR_LOOPBACK;
],
adns_cv_decl_inaddrloopback=yes,
adns_cv_decl_inaddrloopback=no)])
if test "$adns_cv_decl_inaddrloopback" = yes; then
AC_MSG_RESULT(found)
else
AC_MSG_RESULT([not in standard headers, urgh...])
AC_CHECK_HEADER(rpc/types.h,[
AC_DEFINE(HAVEUSE_RPCTYPES_H)
],[
AC_MSG_ERROR([cannot find INADDR_LOOPBACK or rpc/types.h])
])
fi
ADNS_C_GETFUNC(inet_aton,resolv,[
LIBS="-lresolv $LIBS";
AC_MSG_WARN([inet_aton is in libresolv, urgh. Must use -lresolv.])
])
ADNS_C_GCCATTRIB
AC_SUBST(WARNS)
if test "${GCC-no}" = yes; then
WARNS="-Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith"
else
WARNS=
fi
AC_SUBST(SHLIBCC)
AC_SUBST(MKSHLIB_1)
AC_SUBST(MKSHLIB_2)
AC_SUBST(MKSHLIB_3)
AC_SUBST(SHLIBFORLINK)
AC_SUBST(SHLIBFILE)
AC_SUBST(SHLIBSONAME)
SHLIBFORLINK='libadns.so'
SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)'
SHLIBFILE='$(SHLIBSONAME).$(MINOR)'
SHLIBCC='$(CC) $(CFLAGS) -fpic'
MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o'
MKSHLIB_2=''
MKSHLIB_3='-lc'
AC_OUTPUT(
settings.make Makefile
src/Makefile client/Makefile dynamic/Makefile regress/Makefile
)
-2
View File
@@ -1,2 +0,0 @@
Makefile
libadns.so.*
-54
View File
@@ -1,54 +0,0 @@
# dynamic/Makefile - dynamic library Makefile
#
# This file is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
#
# It is part of adns, which is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
# Copyright (C) 1999 Tony Finch <dot@dotat.at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
srcdir= @srcdir@
VPATH= @srcdir@
TARGETS= $(SHLIBFILE) $(SHLIBSONAME) $(SHLIBFORLINK)
include $(srcdir)/../settings.make
include $(srcdir)/../src/adns.make
ALLOBJS= $(addsuffix _p.o, $(basename $(LIBOBJS)))
install: $(SHLIBFILE)
$(INSTALL_PROGRAM) $(SHLIBFILE) $(lib_dir)/$(SHLIBFILE)
ln -sf $(SHLIBFILE) $(lib_dir)/$(SHLIBSONAME)
uninstall:
rm -f $(lib_dir)/$(SHLIBFILE) $(lib_dir)/$(SHLIBSONAME)
$(SHLIBFORLINK):
ln -s $(SHLIBSONAME) $(SHLIBFORLINK)
$(SHLIBSONAME):
ln -s $(SHLIBFILE) $(SHLIBSONAME)
$(SHLIBFILE): $(ALLOBJS)
rm -f $@
$(MKSHLIB_1) $@ $(MKSHLIB_2) $(ALLOBJS) $(LDLIBS) $(MKSHLIB_3)
%_p.o: $(srcdir)/../src/%.c $(srcdir)/../src/adns.h \
$(srcdir)/../src/internal.h $(srcdir)/../src/config.h
$(SHLIBCC) -I$(srcdir)/../src -c -o $@ $<
$(LIBOBJS):
-8
View File
@@ -1,8 +0,0 @@
Makefile
harness.h
hcommon.c
hrecord
hrecord.c
hplayback
hplayback.c
output-*.*
-65
View File
@@ -1,65 +0,0 @@
# regress/Makefile - regression test Makefile
#
# This file is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
#
# It is part of adns, which is
# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
# Copyright (C) 1999 Tony Finch <dot@dotat.at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
srcdir= @srcdir@
VPATH= @srcdir@
TARGETS= hplayback hrecord
AUTOCSRCS= harness.h hrecord.c hplayback.c hcommon.c
include $(srcdir)/../settings.make
include $(srcdir)/../src/adns.make
DIRCFLAGS= -I$(srcdir)/../src
HCPPFLAGS:= $(foreach F, \
gettimeofday select poll \
socket fcntl connect close \
sendto recvfrom read write writev \
malloc realloc free exit \
, -D$F=H$F)
HARNLOBJS= $(addsuffix _d.o, $(basename $(LIBOBJS)))
ALLOBJS= $(HARNLOBJS) dtest.o hrecord.o hplayback.o hcommon.o
.PRECIOUS: $(AUTOCSRCS)
check: $(TARGETS)
./checkall
all install uninstall:
hrecord: adnstest_c.o hrecord.o hcommon.o $(HARNLOBJS)
hplayback: adnstest_c.o hplayback.o hcommon.o $(HARNLOBJS)
%_d.o: $(srcdir)/../src/%.c
$(CC) $(HCPPFLAGS) -c -g -o $@ $<
%_c.o: $(srcdir)/../client/%.c
$(CC) $(HCPPFLAGS) -I $(srcdir)/../src -c -g -o $@ $<
$(ALLOBJS): $(srcdir)/../src/adns.h $(srcdir)/../src/internal.h harness.h
%:: %.m4 hmacros.i4 hsyscalls.i4
$(M4) -P $< >$@-a.new
sed -e 's/hm_comma/,/g; s/hm_squote/'\''/g; /^[ ]*$$/d' <$@-a.new >$@-b.new
@mv -f $@-b.new $@; rm -f $@-a.new
-9
View File
@@ -1,9 +0,0 @@
#!/bin/sh
# usage: ./addcases <casename> ...
set -e
for f in "$@"
do
cvs add "case-$f".{sys,out,err}
done
Whitespace-only changes.
-39
View File
@@ -1,39 +0,0 @@
adns debug: using nameserver 172.18.45.2
adns debug: using nameserver 172.18.45.6
trunc.test.iwj.relativity.greenend.org.uk flags 0 type 12 PTR(raw) submitted
adns warning: datagram receive error: Connection refused
adns debug: TCP connected (NS=172.18.45.2)
adns warning: TCP connection failed: read: Broken pipe (NS=172.18.45.2)
adns debug: TCP connected (NS=172.18.45.6)
trunc.test.iwj.relativity.greenend.org.uk flags 0 type PTR(raw): OK; nrrs=30; cname=$; owner=$; ttl=60
long.domain.to.force.truncation.0.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.1.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.2.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.3.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.4.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.5.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.6.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.7.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.8.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.9.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.10.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.11.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.12.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.13.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.14.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.15.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.16.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.17.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.18.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.19.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.20.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.21.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.22.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.23.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.24.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.25.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.26.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.27.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.28.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.29.test.iwj.relativity.greenend.org.uk
rc=0
-180
View File
@@ -1,180 +0,0 @@
1stservbroken
:12 trunc.test.iwj.relativity.greenend.org.uk
start 940102940.701451
socket type=SOCK_DGRAM
socket=4
+0.000612
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000605
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000573
sendto fd=4 addr=172.18.45.2:53
311f0100 00010000 00000000 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001.
sendto=59
+0.006374
select max=5 rfds=[4] wfds=[] efds=[] to=1.993626
select=1 rfds=[4] wfds=[] efds=[]
+0.001402
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=ECONNREFUSED
+0.000666
select max=5 rfds=[4] wfds=[] efds=[] to=1.991558
select=0 rfds=[] wfds=[] efds=[]
+2.-02914
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001.
sendto=59
+0.002262
select max=5 rfds=[4] wfds=[] efds=[] to=1.997738
select=1 rfds=[4] wfds=[] efds=[]
+0.000973
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8380 00010008 00000000 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001c0 0c000c00
01000000 3c004704 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
6e636174 696f6e01 30047465 73740369 776a0a72 656c6174 69766974 79086772
65656e65 6e64036f 72670275 6b00c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0131 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0132 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0133 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0134 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0135 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0136 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0137 c069.
+0.004340
socket type=SOCK_STREAM
socket=5
+0.005126
fcntl fd=5 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000742
fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000604
connect fd=5 addr=172.18.45.2:53
connect=EINPROGRESS
+0.000797
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000829
select max=6 rfds=[4] wfds=[5] efds=[] to=13.987562
select=1 rfds=[] wfds=[5] efds=[]
+0.001172
read fd=5 buflen=1
read=OK
.
+0.001161
write fd=5
003b311f 01000001 00000000 00000574 72756e63 04746573 74036977 6a0a7265
6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000c00 01.
write=61
+0.003598
select max=6 rfds=[4,5] wfds=[] efds=[5] to=29.981631
select=1 rfds=[5] wfds=[] efds=[]
+0.001370
read fd=5 buflen=2
read=EPIPE
+0.001699
close fd=5
close=OK
+0.000687
socket type=SOCK_STREAM
socket=5
+0.004866
fcntl fd=5 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000611
fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000574
connect fd=5 addr=172.18.45.6:53
connect=EINPROGRESS
+0.001082
select max=6 rfds=[4] wfds=[5] efds=[] to=14.000000
select=1 rfds=[] wfds=[5] efds=[]
+0.001011
read fd=5 buflen=1
read=EAGAIN
+0.000595
write fd=5
003b311f 01000001 00000000 00000574 72756e63 04746573 74036977 6a0a7265
6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000c00 01.
write=61
+0.005087
select max=6 rfds=[4,5] wfds=[] efds=[5] to=29.964049
select=1 rfds=[5] wfds=[] efds=[]
+0.001295
read fd=5 buflen=2
read=OK
0638.
+0.000649
read fd=5 buflen=1592
read=OK
311f8580 0001001e 00010001 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001c0 0c000c00
01000000 3c004704 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
6e636174 696f6e01 30047465 73740369 776a0a72 656c6174 69766974 79086772
65656e65 6e64036f 72670275 6b00c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0131 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0132 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0133 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0134 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0135 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0136 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0137 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0138 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0139 c069c00c
000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0231 30c069c0 0c000c00 01000000 3c002504 6c6f6e67
06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174 696f6e02 3131c069
c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e 02746f05 666f7263
650a7472 756e6361 74696f6e 023132c0 69c00c00 0c000100 00003c00 25046c6f
6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63 6174696f 6e023133
c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274 6f05666f
7263650a 7472756e 63617469 6f6e0231 34c069c0 0c000c00 01000000 3c002504
6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174 696f6e02
3135c069 c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e 02746f05
666f7263 650a7472 756e6361 74696f6e 023136c0 69c00c00 0c000100 00003c00
25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63 6174696f
6e023137 c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274
6f05666f 7263650a 7472756e 63617469 6f6e0231 38c069c0 0c000c00 01000000
3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174
696f6e02 3139c069 c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e
02746f05 666f7263 650a7472 756e6361 74696f6e 023230c0 69c00c00 0c000100
00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63
6174696f 6e023231 c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61
696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0232 32c069c0 0c000c00
01000000 3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
6e636174 696f6e02 3233c069 c00c000c 00010000 003c0025 046c6f6e 6706646f
6d61696e 02746f05 666f7263 650a7472 756e6361 74696f6e 023234c0 69c00c00
0c000100 00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74
72756e63 6174696f 6e023235 c069c00c 000c0001 0000003c 0025046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0232 36c069c0
0c000c00 01000000 3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365
0a747275 6e636174 696f6e02 3237c069 c00c000c 00010000 003c0025 046c6f6e
6706646f 6d61696e 02746f05 666f7263 650a7472 756e6361 74696f6e 023238c0
69c00c00 0c000100 00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72
63650a74 72756e63 6174696f 6e023239 c069c069 00020001 0000003c 0006036e
7330c072 036e7330 c0720001 00010001 51800004 ac122d06.
+0.009426
read fd=5 buflen=1594
read=EAGAIN
+0.033394
close fd=4
close=OK
+0.054384
close fd=5
close=OK
+0.000977
Whitespace-only changes.
-37
View File
@@ -1,37 +0,0 @@
adns debug: using nameserver 10.0.0.1
adns debug: using nameserver 172.18.45.6
trunc.test.iwj.relativity.greenend.org.uk flags 0 type 12 PTR(raw) submitted
adns warning: TCP connection failed: unable to make connection: timed out (NS=10.0.0.1)
adns debug: TCP connected (NS=172.18.45.6)
trunc.test.iwj.relativity.greenend.org.uk flags 0 type PTR(raw): OK; nrrs=30; cname=$; owner=$; ttl=59
long.domain.to.force.truncation.0.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.1.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.2.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.3.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.4.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.5.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.6.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.7.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.8.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.9.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.10.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.11.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.12.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.13.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.14.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.15.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.16.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.17.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.18.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.19.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.20.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.21.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.22.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.23.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.24.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.25.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.26.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.27.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.28.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.29.test.iwj.relativity.greenend.org.uk
rc=0
-159
View File
@@ -1,159 +0,0 @@
1stservto
:12 trunc.test.iwj.relativity.greenend.org.uk
start 940100259.965940
socket type=SOCK_DGRAM
socket=4
+0.000698
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000611
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000582
sendto fd=4 addr=10.0.0.1:53
311f0100 00010000 00000000 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001.
sendto=59
+0.006634
select max=5 rfds=[4] wfds=[] efds=[] to=1.993366
select=0 rfds=[] wfds=[] efds=[]
+2.-05507
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001.
sendto=59
+0.002310
select max=5 rfds=[4] wfds=[] efds=[] to=1.997690
select=1 rfds=[4] wfds=[] efds=[]
+0.000996
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8380 00010008 00000000 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001c0 0c000c00
01000000 3c004704 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
6e636174 696f6e01 30047465 73740369 776a0a72 656c6174 69766974 79086772
65656e65 6e64036f 72670275 6b00c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0131 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0132 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0133 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0134 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0135 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0136 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0137 c069.
+0.004379
socket type=SOCK_STREAM
socket=5
+0.009970
fcntl fd=5 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000612
fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000602
connect fd=5 addr=10.0.0.1:53
connect=EINPROGRESS
+0.000850
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000646
select max=6 rfds=[4] wfds=[5] efds=[] to=13.982941
select=0 rfds=[] wfds=[] efds=[]
+14.-10600
close fd=5
close=OK
+0.000750
socket type=SOCK_STREAM
socket=5
+0.004957
fcntl fd=5 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000593
fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000582
connect fd=5 addr=172.18.45.6:53
connect=EINPROGRESS
+0.001140
select max=6 rfds=[4] wfds=[5] efds=[] to=13.991978
select=1 rfds=[] wfds=[5] efds=[]
+0.001038
read fd=5 buflen=1
read=EAGAIN
+0.001203
write fd=5
003b311f 01000001 00000000 00000574 72756e63 04746573 74036977 6a0a7265
6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000c00 01.
write=61
+0.007301
select max=6 rfds=[4,5] wfds=[] efds=[5] to=15.975977
select=1 rfds=[5] wfds=[] efds=[]
+0.001431
read fd=5 buflen=2
read=OK
0638.
+0.001841
read fd=5 buflen=1592
read=OK
311f8580 0001001e 00010001 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001c0 0c000c00
01000000 3c004704 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
6e636174 696f6e01 30047465 73740369 776a0a72 656c6174 69766974 79086772
65656e65 6e64036f 72670275 6b00c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0131 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0132 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0133 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0134 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0135 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0136 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0137 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0138 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0139 c069c00c
000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0231 30c069c0 0c000c00 01000000 3c002504 6c6f6e67
06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174 696f6e02 3131c069
c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e 02746f05 666f7263
650a7472 756e6361 74696f6e 023132c0 69c00c00 0c000100 00003c00 25046c6f
6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63 6174696f 6e023133
c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274 6f05666f
7263650a 7472756e 63617469 6f6e0231 34c069c0 0c000c00 01000000 3c002504
6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174 696f6e02
3135c069 c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e 02746f05
666f7263 650a7472 756e6361 74696f6e 023136c0 69c00c00 0c000100 00003c00
25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63 6174696f
6e023137 c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274
6f05666f 7263650a 7472756e 63617469 6f6e0231 38c069c0 0c000c00 01000000
3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174
696f6e02 3139c069 c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e
02746f05 666f7263 650a7472 756e6361 74696f6e 023230c0 69c00c00 0c000100
00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63
6174696f 6e023231 c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61
696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0232 32c069c0 0c000c00
01000000 3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
6e636174 696f6e02 3233c069 c00c000c 00010000 003c0025 046c6f6e 6706646f
6d61696e 02746f05 666f7263 650a7472 756e6361 74696f6e 023234c0 69c00c00
0c000100 00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74
72756e63 6174696f 6e023235 c069c00c 000c0001 0000003c 0025046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0232 36c069c0
0c000c00 01000000 3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365
0a747275 6e636174 696f6e02 3237c069 c00c000c 00010000 003c0025 046c6f6e
6706646f 6d61696e 02746f05 666f7263 650a7472 756e6361 74696f6e 023238c0
69c00c00 0c000100 00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72
63650a74 72756e63 6174696f 6e023239 c069c069 00020001 0000003c 0006036e
7330c072 036e7330 c0720001 00010001 51800004 ac122d06.
+1.-990207
read fd=5 buflen=1594
read=EAGAIN
+0.040526
close fd=4
close=OK
+0.065240
close fd=5
close=OK
+0.000982
View File
Whitespace-only changes.
-6
View File
@@ -1,6 +0,0 @@
adns debug: using nameserver 172.18.45.36
adns debug: using nameserver 172.18.45.6
davenant.relativity.greenend.org.uk flags 0 type 1 A(-) submitted
davenant.relativity.greenend.org.uk flags 0 type A(-): OK; nrrs=1; cname=$; owner=$; ttl=86400
172.18.45.6
rc=0
-47
View File
@@ -1,47 +0,0 @@
2ndserver
:1 davenant.relativity.greenend.org.uk
start 940100095.012145
socket type=SOCK_DGRAM
socket=4
+0.000173
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000053
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000042
sendto fd=4 addr=172.18.45.36:53
311f0100 00010000 00000000 08646176 656e616e 740a7265 6c617469 76697479
08677265 656e656e 64036f72 6702756b 00000100 01.
sendto=53
+0.001041
select max=5 rfds=[4] wfds=[] efds=[] to=1.998959
select=0 rfds=[] wfds=[] efds=[]
+2.-04931
select max=5 rfds=[4] wfds=[] efds=[] to=0.003890
select=0 rfds=[] wfds=[] efds=[]
+0.009910
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 08646176 656e616e 740a7265 6c617469 76697479
08677265 656e656e 64036f72 6702756b 00000100 01.
sendto=53
+0.000863
select max=5 rfds=[4] wfds=[] efds=[] to=1.999137
select=1 rfds=[4] wfds=[] efds=[]
+0.000126
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8580 00010001 00030003 08646176 656e616e 740a7265 6c617469 76697479
08677265 656e656e 64036f72 6702756b 00000100 01c00c00 01000100 01518000
04ac122d 060a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b
00000200 01000151 80000603 6e7330c0 45c04500 02000100 01518000 06036e73
31c045c0 45000200 01000151 80000603 6e7332c0 45c06b00 01000100 01518000
04ac122d 06c07d00 01000100 01518000 04ac122d 41c08f00 01000100 01518000
04ac122d 01.
+0.001026
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000423
close fd=4
close=OK
+0.000435
Whitespace-only changes.
-37
View File
@@ -1,37 +0,0 @@
adns debug: using nameserver 172.18.45.36
adns debug: using nameserver 172.18.45.6
trunc.test.iwj.relativity.greenend.org.uk flags 0 type 12 PTR(raw) submitted
adns warning: TCP connection failed: connect/read: No route to host (NS=172.18.45.36)
adns debug: TCP connected (NS=172.18.45.6)
trunc.test.iwj.relativity.greenend.org.uk flags 0 type PTR(raw): OK; nrrs=30; cname=$; owner=$; ttl=60
long.domain.to.force.truncation.0.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.1.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.2.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.3.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.4.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.5.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.6.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.7.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.8.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.9.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.10.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.11.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.12.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.13.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.14.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.15.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.16.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.17.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.18.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.19.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.20.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.21.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.22.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.23.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.24.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.25.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.26.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.27.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.28.test.iwj.relativity.greenend.org.uk
long.domain.to.force.truncation.29.test.iwj.relativity.greenend.org.uk
rc=0
-165
View File
@@ -1,165 +0,0 @@
2ndserver
:12 trunc.test.iwj.relativity.greenend.org.uk
start 940100083.268555
socket type=SOCK_DGRAM
socket=4
+0.000169
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000053
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000040
sendto fd=4 addr=172.18.45.36:53
311f0100 00010000 00000000 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001.
sendto=59
+0.001167
select max=5 rfds=[4] wfds=[] efds=[] to=1.998833
select=0 rfds=[] wfds=[] efds=[]
+2.-01463
select max=5 rfds=[4] wfds=[] efds=[] to=0.000296
select=0 rfds=[] wfds=[] efds=[]
+0.009912
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001.
sendto=59
+0.001357
select max=5 rfds=[4] wfds=[] efds=[] to=1.998643
select=1 rfds=[4] wfds=[] efds=[]
+0.000126
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8380 00010008 00000000 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001c0 0c000c00
01000000 3c004704 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
6e636174 696f6e01 30047465 73740369 776a0a72 656c6174 69766974 79086772
65656e65 6e64036f 72670275 6b00c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0131 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0132 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0133 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0134 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0135 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0136 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0137 c069.
+0.002022
socket type=SOCK_STREAM
socket=5
+0.000905
fcntl fd=5 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000041
fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000038
connect fd=5 addr=172.18.45.36:53
connect=EINPROGRESS
+0.000162
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000062
select max=6 rfds=[4] wfds=[5] efds=[] to=13.996770
select=1 rfds=[] wfds=[5] efds=[]
+1.-14443
read fd=5 buflen=1
read=EHOSTUNREACH
+0.000193
close fd=5
close=OK
+0.000146
socket type=SOCK_STREAM
socket=5
+0.000678
fcntl fd=5 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000042
fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000039
connect fd=5 addr=172.18.45.6:53
connect=EINPROGRESS
+0.000455
select max=6 rfds=[4] wfds=[5] efds=[] to=14.000000
select=1 rfds=[] wfds=[5] efds=[]
+0.000135
read fd=5 buflen=1
read=EAGAIN
+0.000062
write fd=5
003b311f 01000001 00000000 00000574 72756e63 04746573 74036977 6a0a7265
6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000c00 01.
write=61
+0.004082
select max=6 rfds=[4,5] wfds=[] efds=[5] to=29.005381
select=1 rfds=[5] wfds=[] efds=[]
+0.000149
read fd=5 buflen=2
read=OK
0638.
+0.000210
read fd=5 buflen=1592
read=OK
311f8580 0001001e 00010001 05747275 6e630474 65737403 69776a0a 72656c61
74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001c0 0c000c00
01000000 3c004704 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
6e636174 696f6e01 30047465 73740369 776a0a72 656c6174 69766974 79086772
65656e65 6e64036f 72670275 6b00c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0131 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0132 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0133 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0134 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0135 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0136 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0137 c069c00c
000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0138 c069c00c 000c0001 0000003c 0024046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0139 c069c00c
000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
7472756e 63617469 6f6e0231 30c069c0 0c000c00 01000000 3c002504 6c6f6e67
06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174 696f6e02 3131c069
c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e 02746f05 666f7263
650a7472 756e6361 74696f6e 023132c0 69c00c00 0c000100 00003c00 25046c6f
6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63 6174696f 6e023133
c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274 6f05666f
7263650a 7472756e 63617469 6f6e0231 34c069c0 0c000c00 01000000 3c002504
6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174 696f6e02
3135c069 c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e 02746f05
666f7263 650a7472 756e6361 74696f6e 023136c0 69c00c00 0c000100 00003c00
25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63 6174696f
6e023137 c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274
6f05666f 7263650a 7472756e 63617469 6f6e0231 38c069c0 0c000c00 01000000
3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174
696f6e02 3139c069 c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e
02746f05 666f7263 650a7472 756e6361 74696f6e 023230c0 69c00c00 0c000100
00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63
6174696f 6e023231 c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61
696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0232 32c069c0 0c000c00
01000000 3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
6e636174 696f6e02 3233c069 c00c000c 00010000 003c0025 046c6f6e 6706646f
6d61696e 02746f05 666f7263 650a7472 756e6361 74696f6e 023234c0 69c00c00
0c000100 00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74
72756e63 6174696f 6e023235 c069c00c 000c0001 0000003c 0025046c 6f6e6706
646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0232 36c069c0
0c000c00 01000000 3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365
0a747275 6e636174 696f6e02 3237c069 c00c000c 00010000 003c0025 046c6f6e
6706646f 6d61696e 02746f05 666f7263 650a7472 756e6361 74696f6e 023238c0
69c00c00 0c000100 00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72
63650a74 72756e63 6174696f 6e023239 c069c069 00020001 0000003c 0006036e
7330c072 036e7330 c0720001 00010001 51800004 ac122d06.
+0.006071
read fd=5 buflen=1594
read=EAGAIN
+0.005347
close fd=4
close=OK
+0.004675
close fd=5
close=OK
+0.000433
View File
Whitespace-only changes.
-40
View File
@@ -1,40 +0,0 @@
adns debug: using nameserver 172.18.45.6
greenend.org.uk flags 0 type 1 A(-) submitted
greenend.org.uk flags 0 type 2 NS(raw) submitted
greenend.org.uk flags 0 type 5 CNAME(-) submitted
greenend.org.uk flags 0 type 6 SOA(raw) submitted
greenend.org.uk flags 0 type 12 PTR(raw) submitted
greenend.org.uk flags 0 type 13 HINFO(-) submitted
greenend.org.uk flags 0 type 15 MX(raw) submitted
greenend.org.uk flags 0 type 16 TXT(-) submitted
greenend.org.uk flags 0 type 17 RP(raw) submitted
greenend.org.uk flags 0 type 65537 A(addr) submitted
greenend.org.uk flags 0 type 65538 NS(+addr) submitted
greenend.org.uk flags 0 type 65548 PTR(checked) submitted
greenend.org.uk flags 0 type 65551 MX(+addr) submitted
greenend.org.uk flags 0 type 131078 SOA(822) submitted
greenend.org.uk flags 0 type 131089 RP(822) submitted
greenend.org.uk flags 0 type A(-) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400
greenend.org.uk flags 0 type NS(raw) ownflags=a: ok; nrrs=2; cname=$; owner=$; ttl=86400
ns1.relativity.greenend.org.uk
ns0.relativity.greenend.org.uk
greenend.org.uk flags 0 type CNAME(-) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400
greenend.org.uk flags 0 type SOA(raw) ownflags=a: ok; nrrs=1; cname=$; owner=$; ttl=86400
ns.chiark.greenend.org.uk hostmaster.greenend.org.uk 1999061300 28800 7200 604800 86400
greenend.org.uk flags 0 type PTR(raw) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400
greenend.org.uk flags 0 type HINFO(-) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400
greenend.org.uk flags 0 type MX(raw) ownflags=a: ok; nrrs=1; cname=$; owner=$; ttl=86400
10 chiark.greenend.org.uk
greenend.org.uk flags 0 type TXT(-) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400
greenend.org.uk flags 0 type RP(raw) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400
greenend.org.uk flags 0 type A(addr) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400
greenend.org.uk flags 0 type NS(+addr) ownflags=a: ok; nrrs=2; cname=$; owner=$; ttl=86400
ns0.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.6 )
ns1.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.65 )
greenend.org.uk flags 0 type PTR(checked) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400
greenend.org.uk flags 0 type MX(+addr) ownflags=a: ok; nrrs=1; cname=$; owner=$; ttl=86400
10 chiark.greenend.org.uk ok 0 ok "OK" ( INET 195.224.76.132 )
greenend.org.uk flags 0 type SOA(822) ownflags=a: ok; nrrs=1; cname=$; owner=$; ttl=86400
ns.chiark.greenend.org.uk hostmaster@greenend.org.uk 1999061300 28800 7200 604800 86400
greenend.org.uk flags 0 type RP(822) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400
rc=0
-282
View File
@@ -1,282 +0,0 @@
default
,a/greenend.org.uk
start 929580078.542974
socket type=SOCK_DGRAM
socket=4
+0.000202
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000086
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000061
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000100
01.
sendto=33
+0.000623
sendto fd=4 addr=172.18.45.6:53
31200100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000200
01.
sendto=33
+0.000425
sendto fd=4 addr=172.18.45.6:53
31210100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000500
01.
sendto=33
+0.000371
sendto fd=4 addr=172.18.45.6:53
31220100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000600
01.
sendto=33
+0.000369
sendto fd=4 addr=172.18.45.6:53
31230100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000c00
01.
sendto=33
+0.000369
sendto fd=4 addr=172.18.45.6:53
31240100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000d00
01.
sendto=33
+0.000414
sendto fd=4 addr=172.18.45.6:53
31250100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000f00
01.
sendto=33
+0.000371
sendto fd=4 addr=172.18.45.6:53
31260100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00001000
01.
sendto=33
+0.000368
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00001100
01.
sendto=33
+0.000368
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000100
01.
sendto=33
+0.000367
sendto fd=4 addr=172.18.45.6:53
31290100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000200
01.
sendto=33
+0.000367
sendto fd=4 addr=172.18.45.6:53
312a0100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000c00
01.
sendto=33
+0.000366
sendto fd=4 addr=172.18.45.6:53
312b0100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000f00
01.
sendto=33
+0.000378
sendto fd=4 addr=172.18.45.6:53
312c0100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00000600
01.
sendto=33
+0.000391
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 08677265 656e656e 64036f72 6702756b 00001100
01.
sendto=33
+0.000467
select max=5 rfds=[4] wfds=[] efds=[] to=1.993986
select=1 rfds=[4] wfds=[] efds=[]
+0.005183
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8580 00010000 00010000 08677265 656e656e 64036f72 6702756b 00000100
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180.
+0.000588
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000147
select max=5 rfds=[4] wfds=[] efds=[] to=1.988691
select=1 rfds=[4] wfds=[] efds=[]
+0.004348
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31208580 00010002 00000002 08677265 656e656e 64036f72 6702756b 00000200
01c00c00 02000100 01518000 11036e73 310a7265 6c617469 76697479 c00cc00c
00020001 00015180 0006036e 7330c031 c02d0001 00010001 51800004 ac122d41
c04a0001 00010001 51800004 ac122d06.
+0.000642
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000247
select max=5 rfds=[4] wfds=[] efds=[] to=1.983879
select=1 rfds=[4] wfds=[] efds=[]
+0.002737
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31218580 00010000 00010000 08677265 656e656e 64036f72 6702756b 00000500
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180.
+0.000541
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000099
select max=5 rfds=[4] wfds=[] efds=[] to=1.980873
select=1 rfds=[4] wfds=[] efds=[]
+0.005000
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31228580 00010001 00020002 08677265 656e656e 64036f72 6702756b 00000600
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180c00c 00020001
00015180 0011036e 73310a72 656c6174 69766974 79c00cc0 0c000200 01000151
80000603 6e7330c0 6ac06600 01000100 01518000 04ac122d 41c08300 01000100
01518000 04ac122d 06.
+0.000913
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000195
select max=5 rfds=[4] wfds=[] efds=[] to=1.975134
select=1 rfds=[4] wfds=[] efds=[]
+0.002529
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31238580 00010000 00010000 08677265 656e656e 64036f72 6702756b 00000c00
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180.
+0.000541
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000100
select max=5 rfds=[4] wfds=[] efds=[] to=1.972333
select=1 rfds=[4] wfds=[] efds=[]
+0.003175
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31248580 00010000 00010000 08677265 656e656e 64036f72 6702756b 00000d00
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180.
+0.000538
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000122
select max=5 rfds=[4] wfds=[] efds=[] to=1.968912
select=1 rfds=[4] wfds=[] efds=[]
+0.005109
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31258580 00010001 00020003 08677265 656e656e 64036f72 6702756b 00000f00
01c00c00 0f000100 01518000 0b000a06 63686961 726bc00c c00c0002 00010001
51800011 036e7331 0a72656c 61746976 697479c0 0cc00c00 02000100 01518000
06036e73 30c048c0 2f000100 01000151 800004c3 e04c84c0 44000100 01000151
800004ac 122d41c0 61000100 01000151 800004ac 122d06.
+0.000826
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000173
select max=5 rfds=[4] wfds=[] efds=[] to=1.963175
select=1 rfds=[4] wfds=[] efds=[]
+0.002746
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31268580 00010000 00010000 08677265 656e656e 64036f72 6702756b 00001000
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180.
+0.000539
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000127
select max=5 rfds=[4] wfds=[] efds=[] to=1.960131
select=1 rfds=[4] wfds=[] efds=[]
+0.003161
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31278580 00010000 00010000 08677265 656e656e 64036f72 6702756b 00001100
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180.
+0.000537
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000098
select max=5 rfds=[4] wfds=[] efds=[] to=1.956703
select=1 rfds=[4] wfds=[] efds=[]
+0.003055
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31288580 00010000 00010000 08677265 656e656e 64036f72 6702756b 00000100
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180.
+0.000537
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000126
select max=5 rfds=[4] wfds=[] efds=[] to=1.953352
select=1 rfds=[4] wfds=[] efds=[]
+0.004322
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31298580 00010002 00000002 08677265 656e656e 64036f72 6702756b 00000200
01c00c00 02000100 01518000 11036e73 300a7265 6c617469 76697479 c00cc00c
00020001 00015180 0006036e 7331c031 c02d0001 00010001 51800004 ac122d06
c04a0001 00010001 51800004 ac122d41.
+0.000638
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000268
select max=5 rfds=[4] wfds=[] efds=[] to=1.948491
select=1 rfds=[4] wfds=[] efds=[]
+0.002741
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312a8580 00010000 00010000 08677265 656e656e 64036f72 6702756b 00000c00
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180.
+0.000540
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000129
select max=5 rfds=[4] wfds=[] efds=[] to=1.945447
select=1 rfds=[4] wfds=[] efds=[]
+0.005215
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312b8580 00010001 00020003 08677265 656e656e 64036f72 6702756b 00000f00
01c00c00 0f000100 01518000 0b000a06 63686961 726bc00c c00c0002 00010001
51800011 036e7330 0a72656c 61746976 697479c0 0cc00c00 02000100 01518000
06036e73 31c048c0 2f000100 01000151 800004c3 e04c84c0 44000100 01000151
800004ac 122d06c0 61000100 01000151 800004ac 122d41.
+0.000822
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000197
select max=5 rfds=[4] wfds=[] efds=[] to=1.939591
select=1 rfds=[4] wfds=[] efds=[]
+0.004484
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312c8580 00010001 00020002 08677265 656e656e 64036f72 6702756b 00000600
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180c00c 00020001
00015180 0011036e 73300a72 656c6174 69766974 79c00cc0 0c000200 01000151
80000603 6e7331c0 6ac06600 01000100 01518000 04ac122d 06c08300 01000100
01518000 04ac122d 41.
+0.000910
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000223
select max=5 rfds=[4] wfds=[] efds=[] to=1.934365
select=1 rfds=[4] wfds=[] efds=[]
+0.002704
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312d8580 00010000 00010000 08677265 656e656e 64036f72 6702756b 00001100
01c00c00 06000100 01518000 2d026e73 06636869 61726bc0 0c0a686f 73746d61
73746572 c00c7727 41340000 70800000 1c200009 3a800001 5180.
+0.000537
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000099
close fd=4
close=OK
+0.000153
View File
Whitespace-only changes.
-32
View File
@@ -1,32 +0,0 @@
adns debug: using nameserver 172.18.45.36
greenend.org.uk flags 0 type 1 A(-) submitted
greenend.org.uk flags 0 type 2 NS(raw) submitted
greenend.org.uk flags 0 type 5 CNAME(-) submitted
greenend.org.uk flags 0 type 6 SOA(raw) submitted
greenend.org.uk flags 0 type 12 PTR(raw) submitted
greenend.org.uk flags 0 type 13 HINFO(-) submitted
greenend.org.uk flags 0 type 15 MX(raw) submitted
greenend.org.uk flags 0 type 16 TXT(-) submitted
greenend.org.uk flags 0 type 17 RP(raw) submitted
greenend.org.uk flags 0 type 65537 A(addr) submitted
greenend.org.uk flags 0 type 65538 NS(+addr) submitted
greenend.org.uk flags 0 type 65548 PTR(checked) submitted
greenend.org.uk flags 0 type 65551 MX(+addr) submitted
greenend.org.uk flags 0 type 131078 SOA(822) submitted
greenend.org.uk flags 0 type 131089 RP(822) submitted
greenend.org.uk flags 0 type A(-) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type NS(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type CNAME(-) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type SOA(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type PTR(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type HINFO(-) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type MX(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type TXT(-) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type RP(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type A(addr) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type NS(+addr) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type PTR(checked) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type MX(+addr) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type SOA(822) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
greenend.org.uk flags 0 type RP(822) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770
rc=0
File diff suppressed because it is too large. Load diff
Whitespace-only changes.
-38
View File
@@ -1,38 +0,0 @@
adns debug: using nameserver 172.18.45.6
broken-mail.test.iwj.relativity.greenend.org.uk. flags 0 type 15 MX(raw) submitted
broken-mail.test.iwj.relativity.greenend.org.uk. flags 0 type 65551 MX(+addr) submitted
broken-mail.test.iwj.relativity.greenend.org.uk. flags 256 type 15 MX(raw) submitted
broken-mail.test.iwj.relativity.greenend.org.uk. flags 256 type 65551 MX(+addr) submitted
broken-mail.test.iwj.relativity.greenend.org.uk. flags 260 type 15 MX(raw) submitted
broken-mail.test.iwj.relativity.greenend.org.uk. flags 260 type 65551 MX(+addr) submitted
broken-mail.test.iwj.relativity.greenend.org.uk. flags 0 type MX(raw): OK; nrrs=4; cname=$; owner=$; ttl=60
10 manyaddrs.test.iwj.relativity.greenend.org.uk
20 host.broken-delg.test.iwj.relativity.greenend.org.uk
30 172.18.45.36
40 cname-ptr.test.iwj.relativity.greenend.org.uk
broken-mail.test.iwj.relativity.greenend.org.uk. flags 256 type MX(raw): OK; nrrs=4; cname=$; owner=$; ttl=60
10 manyaddrs.test.iwj.relativity.greenend.org.uk
20 host.broken-delg.test.iwj.relativity.greenend.org.uk
30 172.18.45.36
40 cname-ptr.test.iwj.relativity.greenend.org.uk
broken-mail.test.iwj.relativity.greenend.org.uk. flags 260 type MX(raw): OK; nrrs=4; cname=$; owner=broken-mail.test.iwj.relativity.greenend.org.uk; ttl=60
10 manyaddrs.test.iwj.relativity.greenend.org.uk
20 host.broken-delg.test.iwj.relativity.greenend.org.uk
30 172.18.45.36
40 cname-ptr.test.iwj.relativity.greenend.org.uk
broken-mail.test.iwj.relativity.greenend.org.uk. flags 0 type MX(+addr): OK; nrrs=4; cname=$; owner=$; ttl=30
10 manyaddrs.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 127.0.0.1 INET 172.18.45.6 INET 172.18.45.1 INET 172.18.45.35 )
20 host.broken-delg.test.iwj.relativity.greenend.org.uk remotefail 30 timeout "DNS query timed out" ?
30 172.18.45.36 permfail 300 nxdomain "No such domain" ( )
40 cname-ptr.test.iwj.relativity.greenend.org.uk misconfig 101 prohibitedcname "DNS alias found where canonical name wanted" ( )
broken-mail.test.iwj.relativity.greenend.org.uk. flags 256 type MX(+addr): OK; nrrs=4; cname=$; owner=$; ttl=30
10 manyaddrs.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 127.0.0.1 INET 172.18.45.6 INET 172.18.45.1 INET 172.18.45.35 )
20 host.broken-delg.test.iwj.relativity.greenend.org.uk remotefail 30 timeout "DNS query timed out" ?
30 172.18.45.36 permfail 300 nxdomain "No such domain" ( )
40 cname-ptr.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.37 )
broken-mail.test.iwj.relativity.greenend.org.uk. flags 260 type MX(+addr): OK; nrrs=4; cname=$; owner=broken-mail.test.iwj.relativity.greenend.org.uk; ttl=30
10 manyaddrs.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 127.0.0.1 INET 172.18.45.6 INET 172.18.45.1 INET 172.18.45.35 )
20 host.broken-delg.test.iwj.relativity.greenend.org.uk remotefail 30 timeout "DNS query timed out" ?
30 172.18.45.36 permfail 300 nxdomain "No such domain" ( )
40 cname-ptr.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.37 )
rc=0
-516
View File
@@ -1,516 +0,0 @@
default
:15,65551 broken-mail.test.iwj.relativity.greenend.org.uk. 256/broken-mail.test.iwj.relativity.greenend.org.uk. 0x104/broken-mail.test.iwj.relativity.greenend.org.uk.
start 934726868.117908
socket type=SOCK_DGRAM
socket=4
+0.000425
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000059
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000043
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01.
sendto=65
+0.001836
sendto fd=4 addr=172.18.45.6:53
31200100 00010000 00000000 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01.
sendto=65
+0.002502
sendto fd=4 addr=172.18.45.6:53
31210100 00010000 00000000 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01.
sendto=65
+0.001986
sendto fd=4 addr=172.18.45.6:53
31220100 00010000 00000000 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01.
sendto=65
+0.002269
sendto fd=4 addr=172.18.45.6:53
31230100 00010000 00000000 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01.
sendto=65
+0.001950
sendto fd=4 addr=172.18.45.6:53
31240100 00010000 00000000 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01.
sendto=65
+0.001914
select max=5 rfds=[4] wfds=[] efds=[] to=1.987543
select=1 rfds=[4] wfds=[] efds=[]
+0.000654
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8580 00010004 00010005 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01c00c00 0f000100 00003c00 38001404 686f7374 0b62726f 6b656e2d 64656c67
04746573 74036977 6a0a7265 6c617469 76697479 08677265 656e656e 64036f72
6702756b 00c00c00 0f000100 00003c00 10001e03 31373202 31380234 35023336
00c00c00 0f000100 00003c00 0e002809 636e616d 652d7074 72c060c0 0c000f00
01000000 3c000e00 0a096d61 6e796164 647273c0 60c06000 02000100 00003c00
06036e73 30c069c0 c9000100 01000000 3c0004ac 122d23c0 c9000100 01000000
3c0004ac 122d06c0 c9000100 01000000 3c0004ac 122d01c0 c9000100 01000000
3c00047f 000001c0 e1000100 01000151 800004ac 122d06.
+0.001320
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31208580 00010004 00010005 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01c00c00 0f000100 00003c00 10001e03 31373202 31380234 35023336 00c00c00
0f000100 00003c00 31002809 636e616d 652d7074 72047465 73740369 776a0a72
656c6174 69766974 79086772 65656e65 6e64036f 72670275 6b00c00c 000f0001
0000003c 000e000a 096d616e 79616464 7273c075 c00c000f 00010000 003c0015
00140468 6f73740b 62726f6b 656e2d64 656c67c0 75c07500 02000100 00003c00
06036e73 30c07ec0 a8000100 01000000 3c0004ac 122d23c0 a8000100 01000000
3c0004ac 122d06c0 a8000100 01000000 3c0004ac 122d01c0 a8000100 01000000
3c00047f 000001c0 e1000100 01000151 800004ac 122d06.
+0.001688
sendto fd=4 addr=172.18.45.6:53
31250100 00010000 00000000 03313732 02313802 34350233 36000001 0001.
sendto=30
+0.000653
sendto fd=4 addr=172.18.45.6:53
31260100 00010000 00000000 09636e61 6d652d70 74720474 65737403 69776a0a
72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001.
sendto=63
+0.000825
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.001147
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31218580 00010004 00010005 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01c00c00 0f000100 00003c00 31002809 636e616d 652d7074 72047465 73740369
776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275 6b00c00c
000f0001 0000003c 000e000a 096d616e 79616464 7273c059 c00c000f 00010000
003c0015 00140468 6f73740b 62726f6b 656e2d64 656c67c0 59c00c00 0f000100
00003c00 10001e03 31373202 31380234 35023336 00c05900 02000100 00003c00
06036e73 30c062c0 8c000100 01000000 3c0004ac 122d23c0 8c000100 01000000
3c0004ac 122d06c0 8c000100 01000000 3c0004ac 122d01c0 8c000100 01000000
3c00047f 000001c0 e1000100 01000151 800004ac 122d06.
+0.001330
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31228580 00010004 00010005 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01c00c00 0f000100 00003c00 31000a09 6d616e79 61646472 73047465 73740369
776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275 6b00c00c
000f0001 0000003c 00150014 04686f73 740b6272 6f6b656e 2d64656c 67c059c0
0c000f00 01000000 3c001000 1e033137 32023138 02343502 333600c0 0c000f00
01000000 3c000e00 2809636e 616d652d 707472c0 59c05900 02000100 00003c00
06036e73 30c062c0 4f000100 01000000 3c0004ac 122d23c0 4f000100 01000000
3c0004ac 122d06c0 4f000100 01000000 3c0004ac 122d01c0 4f000100 01000000
3c00047f 000001c0 e1000100 01000151 800004ac 122d06.
+0.001524
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.001003
sendto fd=4 addr=172.18.45.6:53
31290100 00010000 00000000 03313732 02313802 34350233 36000001 0001.
sendto=30
+0.000569
sendto fd=4 addr=172.18.45.6:53
312a0100 00010000 00000000 09636e61 6d652d70 74720474 65737403 69776a0a
72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001.
sendto=63
+0.000842
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31238580 00010004 00010005 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01c00c00 0f000100 00003c00 38001404 686f7374 0b62726f 6b656e2d 64656c67
04746573 74036977 6a0a7265 6c617469 76697479 08677265 656e656e 64036f72
6702756b 00c00c00 0f000100 00003c00 10001e03 31373202 31380234 35023336
00c00c00 0f000100 00003c00 0e002809 636e616d 652d7074 72c060c0 0c000f00
01000000 3c000e00 0a096d61 6e796164 647273c0 60c06000 02000100 00003c00
06036e73 30c069c0 c9000100 01000000 3c0004ac 122d23c0 c9000100 01000000
3c0004ac 122d06c0 c9000100 01000000 3c0004ac 122d01c0 c9000100 01000000
3c00047f 000001c0 e1000100 01000151 800004ac 122d06.
+0.001306
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31248580 00010004 00010005 0b62726f 6b656e2d 6d61696c 04746573 74036977
6a0a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000f00
01c00c00 0f000100 00003c00 10001e03 31373202 31380234 35023336 00c00c00
0f000100 00003c00 31002809 636e616d 652d7074 72047465 73740369 776a0a72
656c6174 69766974 79086772 65656e65 6e64036f 72670275 6b00c00c 000f0001
0000003c 000e000a 096d616e 79616464 7273c075 c00c000f 00010000 003c0015
00140468 6f73740b 62726f6b 656e2d64 656c67c0 75c07500 02000100 00003c00
06036e73 30c07ec0 a8000100 01000000 3c0004ac 122d23c0 a8000100 01000000
3c0004ac 122d06c0 a8000100 01000000 3c0004ac 122d01c0 a8000100 01000000
3c00047f 000001c0 e1000100 01000151 800004ac 122d06.
+0.001507
sendto fd=4 addr=172.18.45.6:53
312b0100 00010000 00000000 03313732 02313802 34350233 36000001 0001.
sendto=30
+0.000637
sendto fd=4 addr=172.18.45.6:53
312c0100 00010000 00000000 09636e61 6d652d70 74720474 65737403 69776a0a
72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001.
sendto=63
+0.000932
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000931
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31258583 00010000 00000000 03313732 02313802 34350233 36000001 0001.
+0.000242
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31268580 00010002 00010001 09636e61 6d652d70 74720474 65737403 69776a0a
72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001c0
0c000500 01000000 3c002903 70747204 74657374 0369776a 0a72656c 61746976
69747908 67726565 6e656e64 036f7267 02756b00 c04b0001 00010000 003c0004
ac122d25 c04f0002 00010000 003c0006 036e7330 c058c090 00010001 00015180
0004ac12 2d06.
+0.000737
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31298583 00010000 00000000 03313732 02313802 34350233 36000001 0001.
+0.000223
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312a8580 00010002 00010001 09636e61 6d652d70 74720474 65737403 69776a0a
72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001c0
0c000500 01000000 3c002903 70747204 74657374 0369776a 0a72656c 61746976
69747908 67726565 6e656e64 036f7267 02756b00 c04b0001 00010000 003c0004
ac122d25 c04f0002 00010000 003c0006 036e7330 c058c090 00010001 00015180
0004ac12 2d06.
+0.000756
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312b8583 00010000 00000000 03313732 02313802 34350233 36000001 0001.
+0.000291
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312c8580 00010002 00010001 09636e61 6d652d70 74720474 65737403 69776a0a
72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001c0
0c000500 01000000 3c002903 70747204 74657374 0369776a 0a72656c 61746976
69747908 67726565 6e656e64 036f7267 02756b00 c04b0001 00010000 003c0004
ac122d25 c04f0002 00010000 003c0006 036e7330 c058c090 00010001 00015180
0004ac12 2d06.
+0.000726
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000162
select max=5 rfds=[4] wfds=[] efds=[] to=1.980649
select=0 rfds=[] wfds=[] efds=[]
+2.-04341
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000794
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000608
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000695
select max=5 rfds=[4] wfds=[] efds=[] to=1.997903
select=0 rfds=[] wfds=[] efds=[]
+2.007910
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000823
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000611
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000571
select max=5 rfds=[4] wfds=[] efds=[] to=1.997995
select=0 rfds=[] wfds=[] efds=[]
+2.007991
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000694
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000579
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000571
select max=5 rfds=[4] wfds=[] efds=[] to=1.998156
select=0 rfds=[] wfds=[] efds=[]
+2.008157
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000655
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000749
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000606
select max=5 rfds=[4] wfds=[] efds=[] to=1.997990
select=0 rfds=[] wfds=[] efds=[]
+2.007995
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000836
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000612
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000631
select max=5 rfds=[4] wfds=[] efds=[] to=1.997921
select=0 rfds=[] wfds=[] efds=[]
+2.007925
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000699
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000725
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000606
select max=5 rfds=[4] wfds=[] efds=[] to=1.997970
select=0 rfds=[] wfds=[] efds=[]
+2.007965
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000739
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000582
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000570
select max=5 rfds=[4] wfds=[] efds=[] to=1.998109
select=0 rfds=[] wfds=[] efds=[]
+2.008104
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000641
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000598
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000716
select max=5 rfds=[4] wfds=[] efds=[] to=1.998045
select=0 rfds=[] wfds=[] efds=[]
+2.008043
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000646
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000576
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000594
select max=5 rfds=[4] wfds=[] efds=[] to=1.998184
select=0 rfds=[] wfds=[] efds=[]
+2.008190
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000673
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000578
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000572
select max=5 rfds=[4] wfds=[] efds=[] to=1.998177
select=0 rfds=[] wfds=[] efds=[]
+2.008168
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000659
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000577
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000571
select max=5 rfds=[4] wfds=[] efds=[] to=1.998193
select=0 rfds=[] wfds=[] efds=[]
+2.008199
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000653
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000604
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000573
select max=5 rfds=[4] wfds=[] efds=[] to=1.998170
select=0 rfds=[] wfds=[] efds=[]
+2.008181
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000699
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000589
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000758
select max=5 rfds=[4] wfds=[] efds=[] to=1.997954
select=0 rfds=[] wfds=[] efds=[]
+2.008126
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000684
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000582
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 04686f73 740b6272 6f6b656e 2d64656c 67047465
73740369 776a0a72 656c6174 69766974 79086772 65656e65 6e64036f 72670275
6b000001 0001.
sendto=70
+0.000578
select max=5 rfds=[4] wfds=[] efds=[] to=1.998156
select=0 rfds=[] wfds=[] efds=[]
+2.007969
close fd=4
close=OK
+0.000812
View File
Whitespace-only changes.
-5
View File
@@ -1,5 +0,0 @@
adns debug: using nameserver 172.18.45.6
134.76.224.195.in-addr.arpa flags 0 type 65548 PTR(checked) submitted
134.76.224.195.in-addr.arpa flags 0 type PTR(checked): OK; nrrs=1; cname=$; owner=$; ttl=78694
permutation-city.greenend.org.uk
rc=0
-58
View File
@@ -1,58 +0,0 @@
default
:65548 134.76.224.195.in-addr.arpa
start 929574747.401802
socket type=SOCK_DGRAM
socket=4
+0.000189
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000080
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000058
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 03313334 02373603 32323403 31393507 696e2d61
64647204 61727061 00000c00 01.
sendto=45
+0.000595
select max=5 rfds=[4] wfds=[] efds=[] to=1.999405
select=1 rfds=[4] wfds=[] efds=[]
+0.008975
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8180 00010001 00050005 03313334 02373603 32323403 31393507 696e2d61
64647204 61727061 00000c00 01c00c00 0c000100 01336600 22107065 726d7574
6174696f 6e2d6369 74790867 7265656e 656e6403 6f726702 756b0002 37360332
32340331 39350769 6e2d6164 64720461 72706100 00020001 00013366 00110464
6e733006 656c6d61 696c0263 6fc057c0 5b000200 01000133 66000704 646e7331
c083c05b 00020001 00013366 00070464 6e7332c0 83c05b00 02000100 01336600
0e036e73 32047861 7261036e 657400c0 5b000200 01000133 66000603 6e7333c0
c5c07e00 01000100 00149d00 04c17ae9 11c09b00 01000100 00149d00 04c17ae9
01c0ae00 01000100 00149d00 04c3e04c c1c0c100 01000100 0284e500 04c28fa1
6bc0db00 01000100 0284e500 04c28fa3 19.
+0.001671
sendto fd=4 addr=172.18.45.6:53
31200100 00010000 00000000 10706572 6d757461 74696f6e 2d636974 79086772
65656e65 6e64036f 72670275 6b000001 0001.
sendto=50
+0.000683
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000108
select max=5 rfds=[4] wfds=[] efds=[] to=1.997538
select=1 rfds=[4] wfds=[] efds=[]
+0.005811
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31208580 00010001 00020002 10706572 6d757461 74696f6e 2d636974 79086772
65656e65 6e64036f 72670275 6b000001 0001c00c 00010001 00015180 0004c3e0
4c860867 7265656e 656e6403 6f726702 756b0000 02000100 01518000 11036e73
300a7265 6c617469 76697479 c042c042 00020001 00015180 0006036e 7331c061
c05d0001 00010001 51800004 ac122d06 c07a0001 00010001 51800004 ac122d41.
+0.000862
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000193
close fd=4
close=OK
+0.000207
Whitespace-only changes.
-5
View File
@@ -1,5 +0,0 @@
adns debug: using nameserver 172.18.45.6
intel.ugcs.caltech.edu. flags 0 type 1 A(-) submitted
adns debug: allegedly canonical name ugintel.best.ugcs.caltech.edu is actually alias for drachma.ugcs.caltech.edu (QNAME=intel.ugcs.caltech.edu, QTYPE=A, NS=172.18.45.6)
intel.ugcs.caltech.edu. flags 0 type A(-): DNS alias found where canonical name wanted; nrrs=0; cname=ugintel.best.ugcs.caltech.edu; owner=$; ttl=497758
rc=0
-39
View File
@@ -1,39 +0,0 @@
default
:1 intel.ugcs.caltech.edu.
start 938369896.279735
socket type=SOCK_DGRAM
socket=4
+0.000179
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000054
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000041
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 05696e74 656c0475 67637307 63616c74 65636803
65647500 00010001.
sendto=40
+0.001628
select max=5 rfds=[4] wfds=[] efds=[] to=1.998372
select=1 rfds=[4] wfds=[] efds=[]
+0.586476
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8180 00010003 00050005 05696e74 656c0475 67637307 63616c74 65636803
65647500 00010001 05696e74 656c0475 67637307 63616c74 65636803 65647500
00050001 0007985e 000f0775 67696e74 656c0462 657374c0 2ec04a00 05000100
00000a00 0a076472 6163686d 61c02ec0 65000100 01000798 83000483 d72bacc0
2e000200 01000935 be000b08 70757263 68617365 c02ec02e 00020001 000935be
00070465 6e7679c0 2ec02e00 02000100 0935be00 09036f66 62036e65 7400c02e
00020001 000935be 00090674 7962616c 74c033c0 2e000200 01000935 be000e08
6d657263 7574696f 026e69c0 33c08b00 01000100 0935be00 0483d72b a7c0a200
01000100 0935be00 0483d72b 87c0b500 01000100 001ef800 04c6b4b6 07c0ca00
01000100 0100d700 0483d78b 64c0df00 01000100 0100d700 0483d7fe 63.
+0.001423
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000646
close fd=4
close=OK
+0.000242
Whitespace-only changes.
-39
View File
@@ -1,39 +0,0 @@
adns debug: using nameserver 172.18.45.6
170.99.219.194.in-addr.arpa flags 292 type 1 A(-) submitted
170.99.219.194.in-addr.arpa flags 292 type 2 NS(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 5 CNAME(-) submitted
170.99.219.194.in-addr.arpa flags 292 type 6 SOA(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 12 PTR(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 13 HINFO(-) submitted
170.99.219.194.in-addr.arpa flags 292 type 15 MX(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 16 TXT(-) submitted
170.99.219.194.in-addr.arpa flags 292 type 17 RP(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 65537 A(addr) submitted
170.99.219.194.in-addr.arpa flags 292 type 65538 NS(+addr) submitted
170.99.219.194.in-addr.arpa flags 292 type 65548 PTR(checked) submitted
170.99.219.194.in-addr.arpa flags 292 type 65551 MX(+addr) submitted
170.99.219.194.in-addr.arpa flags 292 type 131078 SOA(822) submitted
170.99.219.194.in-addr.arpa flags 292 type 131089 RP(822) submitted
adns debug: ignoring CNAME (to 170.168.99.219.194.in-addr.arpa) coexisting with RR (QNAME=170.99.219.194.in-addr.arpa, QTYPE=PTR(raw), NS=172.18.45.6)
adns debug: ignoring RR with an unexpected owner 170.168.99.219.194.in-addr.arpa (QNAME=170.99.219.194.in-addr.arpa, QTYPE=PTR(raw), NS=172.18.45.6)
adns debug: ignoring CNAME (to 170.168.99.219.194.in-addr.arpa) coexisting with RR (QNAME=170.99.219.194.in-addr.arpa, QTYPE=PTR(checked), NS=172.18.45.6)
adns debug: ignoring RR with an unexpected owner 170.168.99.219.194.in-addr.arpa (QNAME=170.99.219.194.in-addr.arpa, QTYPE=PTR(checked), NS=172.18.45.6)
170.99.219.194.in-addr.arpa flags 292 type A(-): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type NS(raw): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type SOA(raw): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type PTR(raw): OK; nrrs=1; cname=$; owner=170.99.219.194.in-addr.arpa; ttl=171727
proxy.scoplife.gr
170.99.219.194.in-addr.arpa flags 292 type HINFO(-): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type MX(raw): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type TXT(-): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type RP(raw): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type A(addr): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type NS(+addr): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type MX(+addr): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type SOA(822): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type RP(822): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type PTR(checked): OK; nrrs=1; cname=$; owner=170.99.219.194.in-addr.arpa; ttl=171727
proxy.scoplife.gr
170.99.219.194.in-addr.arpa flags 292 type CNAME(-): OK; nrrs=1; cname=$; owner=170.99.219.194.in-addr.arpa; ttl=171726
170.168.99.219.194.in-addr.arpa
rc=0
-233
View File
@@ -1,233 +0,0 @@
default
292/170.99.219.194.in-addr.arpa
start 933809668.543946
socket type=SOCK_DGRAM
socket=4
+0.000199
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000081
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000063
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000100 01.
sendto=45
+0.003027
sendto fd=4 addr=172.18.45.6:53
31200100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000200 01.
sendto=45
+0.002832
sendto fd=4 addr=172.18.45.6:53
31210100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000500 01.
sendto=45
+0.004403
sendto fd=4 addr=172.18.45.6:53
31220100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000600 01.
sendto=45
+0.004763
sendto fd=4 addr=172.18.45.6:53
31230100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000c00 01.
sendto=45
+0.002558
sendto fd=4 addr=172.18.45.6:53
31240100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000d00 01.
sendto=45
+0.004339
sendto fd=4 addr=172.18.45.6:53
31250100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000f00 01.
sendto=45
+0.002664
sendto fd=4 addr=172.18.45.6:53
31260100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00001000 01.
sendto=45
+0.004889
sendto fd=4 addr=172.18.45.6:53
31270100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00001100 01.
sendto=45
+0.002642
sendto fd=4 addr=172.18.45.6:53
31280100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000100 01.
sendto=45
+0.002552
sendto fd=4 addr=172.18.45.6:53
31290100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000200 01.
sendto=45
+0.007571
sendto fd=4 addr=172.18.45.6:53
312a0100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000c00 01.
sendto=45
+0.004820
sendto fd=4 addr=172.18.45.6:53
312b0100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000f00 01.
sendto=45
+0.004771
sendto fd=4 addr=172.18.45.6:53
312c0100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000600 01.
sendto=45
+0.004879
sendto fd=4 addr=172.18.45.6:53
312d0100 00010000 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00001100 01.
sendto=45
+0.004728
select max=5 rfds=[4] wfds=[] efds=[] to=1.938562
select=1 rfds=[4] wfds=[] efds=[]
+0.000329
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000100 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.000688
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31208180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000200 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.003135
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31228180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000600 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.000762
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31238180 00010003 00040004 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000c00 01c00c00 0c000100 029ecf00 13057072 6f787908
73636f70 6c696665 02677200 c00c0005 00010002 a2ec0021 03313730 03313638
02393903 32313903 31393407 696e2d61 64647204 61727061 00c05800 0c000100
029ecf00 02c039c0 5c000200 0100029e cf001004 696e666f 08666f72 74686e65
74c048c0 5c000200 0100029e cf000805 6e736865 72c098c0 5c000200 0100029e
cf000805 6e737468 65c098c0 5c000200 0100029e cf000c09 74656972 65736961
73c098c0 93000100 010004be 3900048b 5b0111c0 af000100 01000542 ba0004c1
5c1e13c0 c3000100 01000542 800004c1 5c6e01c0 d7000100 01000542 800004c2
dbe302.
+0.001873
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31248180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000d00 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.000969
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31258180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000f00 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.000699
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31268180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00001000 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.000717
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31278180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00001100 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.003514
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31288180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000100 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.000783
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31298180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000200 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.003279
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312a8180 00010003 00040004 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000c00 01c00c00 0c000100 029ecf00 13057072 6f787908
73636f70 6c696665 02677200 c00c0005 00010002 a2ec0021 03313730 03313638
02393903 32313903 31393407 696e2d61 64647204 61727061 00c05800 0c000100
029ecf00 02c039c0 5c000200 0100029e cf001004 696e666f 08666f72 74686e65
74c048c0 5c000200 0100029e cf000805 6e736865 72c098c0 5c000200 0100029e
cf000805 6e737468 65c098c0 5c000200 0100029e cf000c09 74656972 65736961
73c098c0 93000100 010004be 3900048b 5b0111c0 af000100 01000542 ba0004c1
5c1e13c0 c3000100 01000542 800004c1 5c6e01c0 d7000100 01000542 800004c2
dbe302.
+0.001960
sendto fd=4 addr=172.18.45.6:53
312e0100 00010000 00000000 0570726f 78790873 636f706c 69666502 67720000
010001.
sendto=35
+0.005061
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312b8180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000f00 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.003253
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312c8180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000600 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.000782
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312d8180 00010001 00000000 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00001100 01c00c00 05000100 02a2ec00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100.
+0.000698
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000173
select max=5 rfds=[4] wfds=[] efds=[] to=1.915746
select=1 rfds=[4] wfds=[] efds=[]
+0.014046
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
312e8180 00010001 00040004 0570726f 78790873 636f706c 69666502 67720000
010001c0 0c000100 01000288 220004c2 db63aa08 73636f70 6c696665 02677200
00020001 000542ba 0011056e 73617468 08666f72 74686e65 74c03cc0 33000200
01000542 ba000805 6e736865 72c050c0 33000200 01000542 ba000805 6e737468
65c050c0 33000200 01000542 ba000c09 74656972 65736961 73c050c0 4a000100
01000542 800004c1 5c9603c0 67000100 01000542 ba0004c1 5c1e13c0 7b000100
01000542 800004c1 5c6e01c0 8f000100 01000542 800004c2 dbe302.
+0.001422
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000197
select max=5 rfds=[4] wfds=[] efds=[] to=1.900081
select=1 rfds=[4] wfds=[] efds=[]
+0.203705
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
31218180 00010001 00050005 03313730 02393903 32313903 31393407 696e2d61
64647204 61727061 00000500 01c00c00 05000100 029ece00 21033137 30033136
38023939 03323139 03313934 07696e2d 61646472 04617270 6100c041 00020001
00029ece 00120469 6e666f08 666f7274 686e6574 02677200 c0410002 00010002
9ece0008 056e7368 6572c06b c0410002 00010002 9ece0008 056e7374 6865c06b
c0410002 00010002 9ece0008 056e7361 7468c06b c0410002 00010002 9ece000c
09746569 72657369 6173c06b c0660001 00010005 41ce0004 8b5b0111 c0840001
00010005 42b90004 c15c1e13 c0980001 00010005 427f0004 c15c6e01 c0ac0001
00010005 427f0004 c15c9603 c0c00001 00010005 427f0004 c2dbe302.
+0.001798
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000249
close fd=4
close=OK
+0.000219
Whitespace-only changes.
@@ -1,78 +0,0 @@
adns debug: using nameserver 172.18.45.6
170.99.219.194.in-addr.arpa flags 292 type 1 A(-) submitted
170.99.219.194.in-addr.arpa flags 292 type 2 NS(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 5 CNAME(-) submitted
170.99.219.194.in-addr.arpa flags 292 type 6 SOA(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 12 PTR(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 13 HINFO(-) submitted
170.99.219.194.in-addr.arpa flags 292 type 15 MX(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 16 TXT(-) submitted
170.99.219.194.in-addr.arpa flags 292 type 17 RP(raw) submitted
170.99.219.194.in-addr.arpa flags 292 type 65537 A(addr) submitted
170.99.219.194.in-addr.arpa flags 292 type 65538 NS(+addr) submitted
170.99.219.194.in-addr.arpa flags 292 type 65548 PTR(checked) submitted
170.99.219.194.in-addr.arpa flags 292 type 65551 MX(+addr) submitted
170.99.219.194.in-addr.arpa flags 292 type 131078 SOA(822) submitted
170.99.219.194.in-addr.arpa flags 292 type 131089 RP(822) submitted
adns debug: ignoring CNAME (to 170.168.99.219.194.in-addr.arpa) coexisting with RR (QNAME=170.99.219.194.in-addr.arpa, QTYPE=PTR(raw), NS=172.18.45.6)
adns debug: ignoring RR with an unexpected owner 170.168.99.219.194.in-addr.arpa (QNAME=170.99.219.194.in-addr.arpa, QTYPE=PTR(raw), NS=172.18.45.6)
adns debug: ignoring CNAME (to 170.168.99.219.194.in-addr.arpa) coexisting with RR (QNAME=170.99.219.194.in-addr.arpa, QTYPE=PTR(checked), NS=172.18.45.6)
adns debug: ignoring RR with an unexpected owner 170.168.99.219.194.in-addr.arpa (QNAME=170.99.219.194.in-addr.arpa, QTYPE=PTR(checked), NS=172.18.45.6)
170.99.219.194.in-addr.arpa flags 292 type PTR(raw): OK; nrrs=1; cname=$; owner=170.99.219.194.in-addr.arpa; ttl=171763
proxy.scoplife.gr
170.99.219.194.in-addr.arpa flags 292 type PTR(checked): OK; nrrs=1; cname=$; owner=170.99.219.194.in-addr.arpa; ttl=171763
proxy.scoplife.gr
170.99.219.194.in-addr.arpa flags 292 type A(-): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=600
170.99.219.194.in-addr.arpa flags 292 type MX(raw): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type RP(raw): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type A(addr): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=600
170.99.219.194.in-addr.arpa flags 292 type NS(+addr): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type MX(+addr): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
170.99.219.194.in-addr.arpa flags 292 type RP(822): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=0
adns debug: reply not found, id 3120, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3122, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3124, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3126, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
170.99.219.194.in-addr.arpa flags 292 type NS(raw): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=600
170.99.219.194.in-addr.arpa flags 292 type SOA(raw): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=600
170.99.219.194.in-addr.arpa flags 292 type HINFO(-): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=600
170.99.219.194.in-addr.arpa flags 292 type TXT(-): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=600
170.99.219.194.in-addr.arpa flags 292 type SOA(822): No such data; nrrs=0; cname=170.168.99.219.194.in-addr.arpa; owner=170.99.219.194.in-addr.arpa; ttl=599
adns debug: reply not found, id 312d, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 312c, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 312b, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3129, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3128, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3127, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3126, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3125, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3124, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3122, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3120, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 311f, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 312d, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 312c, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 312b, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3129, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3128, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3127, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3126, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3125, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3124, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3122, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3120, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 311f, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 312b, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3129, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3128, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3127, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3126, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3125, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3124, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3122, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 3120, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 311f, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 312c, query owner 170.168.99.219.194.in-addr.arpa (NS=172.18.45.6)
170.99.219.194.in-addr.arpa flags 292 type CNAME(-): OK; nrrs=1; cname=$; owner=170.99.219.194.in-addr.arpa; ttl=110056
170.168.99.219.194.in-addr.arpa
rc=0
File diff suppressed because it is too large. Load diff
-1
View File
@@ -1 +0,0 @@
too many flags
-2
View File
@@ -1,2 +0,0 @@
adns debug: using nameserver 172.18.45.6
rc=3
-15
View File
@@ -1,15 +0,0 @@
default
:1 ,aaaaaaaaaa/chiark.greenend.org.uk
start 929580072.670441
socket type=SOCK_DGRAM
socket=4
+0.000191
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000084
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000061
close fd=4
close=OK
+0.000001
View File
Whitespace-only changes.
-5
View File
@@ -1,5 +0,0 @@
adns debug: using nameserver 172.18.45.6
chiark.greenend.org.uk flags 0 type 1 A(-) submitted
chiark.greenend.org.uk flags 0 type A(-) ownflags=aaaaaaaaa: ok; nrrs=1; cname=$; owner=$; ttl=86400
195.224.76.132
rc=0
-34
View File
@@ -1,34 +0,0 @@
default
:1 ,aaaaaaaaa/chiark.greenend.org.uk
start 929580075.263215
socket type=SOCK_DGRAM
socket=4
+0.000212
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000083
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000060
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 06636869 61726b08 67726565 6e656e64 036f7267
02756b00 00010001.
sendto=40
+0.000625
select max=5 rfds=[4] wfds=[] efds=[] to=1.999375
select=1 rfds=[4] wfds=[] efds=[]
+0.007374
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8580 00010001 00020002 06636869 61726b08 67726565 6e656e64 036f7267
02756b00 00010001 c00c0001 00010001 51800004 c3e04c84 08677265 656e656e
64036f72 6702756b 00000200 01000151 80001103 6e73300a 72656c61 74697669
7479c038 c0380002 00010001 51800006 036e7331 c057c053 00010001 00015180
0004ac12 2d06c070 00010001 00015180 0004ac12 2d41.
+0.001238
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000228
close fd=4
close=OK
+0.000205
View File
Whitespace-only changes.
-10
View File
@@ -1,10 +0,0 @@
adns debug: using nameserver 172.18.45.6
silly-rp.test.iwj.relativity.greenend.org.uk flags 0 type 131089 RP(822) submitted
silly-rp.test.iwj.relativity.greenend.org.uk flags 0 type RP(822): OK; nrrs=6; cname=$; owner=$; ttl=60
. .
i@ucam.org .
i.j@ucam.org .
"i..j"@ucam.org .
".i"@ucam.org .
"i."@ucam.org .
rc=0
-35
View File
@@ -1,35 +0,0 @@
default
:131089 silly-rp.test.iwj.relativity.greenend.org.uk
start 923859567.899146
socket type=SOCK_DGRAM
socket=4
+0.000411
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000094
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000073
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 0873696c 6c792d72 70047465 73740369 776a0a72
656c6174 69766974 79086772 65656e65 6e64036f 72670275 6b000011 0001.
sendto=62
+0.000670
select max=5 rfds=[4] wfds=[] efds=[] to=1.999330
select=1 rfds=[4] wfds=[] efds=[]
+0.008169
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8180 00010006 00000000 0873696c 6c792d72 70047465 73740369 776a0a72
656c6174 69766974 79086772 65656e65 6e64036f 72670275 6b000011 0001c00c
00110001 0000003c 00020000 c00c0011 00010000 003c000d 01690475 63616d03
6f726700 00c00c00 11000100 00003c00 0703692e 6ac05a00 c00c0011 00010000
003c0008 04692e2e 6ac05a00 c00c0011 00010000 003c0006 022e69c0 5a00c00c
00110001 0000003c 00060269 2ec05a00.
+0.000992
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000604
close fd=4
close=OK
+0.000359
View File
Whitespace-only changes.
-8
View File
@@ -1,8 +0,0 @@
adns debug: using nameserver 172.18.45.6
manyaddrs.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted
manyaddrs.test.iwj.relativity.greenend.org.uk flags 0 type A(-): OK; nrrs=4; cname=$; owner=$; ttl=60
127.0.0.1
172.18.45.6
172.18.45.1
172.18.45.35
rc=0
-36
View File
@@ -1,36 +0,0 @@
default
:1 manyaddrs.test.iwj.relativity.greenend.org.uk
start 912888920.123769
socket type=SOCK_DGRAM
socket=4
+0.000245
fcntl fd=4 cmd=F_GETFL
fcntl=~O_NONBLOCK&...
+0.000705
fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
fcntl=OK
+0.000073
sendto fd=4 addr=172.18.45.6:53
311f0100 00010000 00000000 096d616e 79616464 72730474 65737403 69776a0a
72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001.
sendto=63
+0.000698
select max=5 rfds=[4] wfds=[] efds=[] to=1.999302
select=1 rfds=[4] wfds=[] efds=[]
+0.006236
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=OK addr=172.18.45.6:53
311f8580 00010004 00010001 096d616e 79616464 72730474 65737403 69776a0a
72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001c0
0c000100 01000000 3c0004ac 122d23c0 0c000100 01000000 3c0004ac 122d06c0
0c000100 01000000 3c0004ac 122d01c0 0c000100 01000000 3c00047f 00000104
74657374 0369776a 0a72656c 61746976 69747908 67726565 6e656e64 036f7267
02756b00 00020001 0000003c 0006036e 7330c088 c0ae0001 00010001 51800004
ac122d06.
+0.001078
recvfrom fd=4 buflen=512 *addrlen=16
recvfrom=EAGAIN
+0.000329
close fd=4
close=OK
+0.000240
Whitespace-only changes.
-153
View File
@@ -1,153 +0,0 @@
adns debug: using nameserver 195.224.55.129
254.0.99.203.in-addr.arpa flags 0 type 1 A(-) submitted
254.0.99.203.in-addr.arpa flags 0 type 2 NS(raw) submitted
254.0.99.203.in-addr.arpa flags 0 type 5 CNAME(-) submitted
254.0.99.203.in-addr.arpa flags 0 type 6 SOA(raw) submitted
254.0.99.203.in-addr.arpa flags 0 type 12 PTR(raw) submitted
254.0.99.203.in-addr.arpa flags 0 type 13 HINFO(-) submitted
254.0.99.203.in-addr.arpa flags 0 type 15 MX(raw) submitted
254.0.99.203.in-addr.arpa flags 0 type 16 TXT(-) submitted
254.0.99.203.in-addr.arpa flags 0 type 17 RP(raw) submitted
254.0.99.203.in-addr.arpa flags 0 type 65537 A(addr) submitted
254.0.99.203.in-addr.arpa flags 0 type 65538 NS(+addr) submitted
254.0.99.203.in-addr.arpa flags 0 type 65548 PTR(checked) submitted
254.0.99.203.in-addr.arpa flags 0 type 65551 MX(+addr) submitted
254.0.99.203.in-addr.arpa flags 0 type 131078 SOA(822) submitted
254.0.99.203.in-addr.arpa flags 0 type 131089 RP(822) submitted
adns debug: TCP connected (NS=195.224.55.129)
254.0.99.203.in-addr.arpa flags 0 type PTR(raw): OK; nrrs=94; cname=$; owner=$; ttl=80790
ns.security.co.nz
tetra.co.nz
mail.agate.co.nz
ns.agate.co.nz
securitytraining.co.nz
ns.giftbasket.co.nz
ns.security.gen.nz
bouquet.co.nz
investigation.co.nz
ns.nzipi.org.nz
mail.neru.co.nz
security.co.nz
ns.storewatch.co.nz
security.gen.nz
ns.tetra.co.nz
mail.tetra.co.nz
ns.securicard.co.nz
ns.underhour.co.nz
bcc.co.nz
security.org.nz
burglaralarms.co.nz
ns.safes.co.nz
ns.security.org.nz
couperconsulting.co.nz
securityguards.co.nz
ns.guards.co.nz
asis.org.nz
neru.co.nz
giftbasket.co.nz
magic.co.nz
mail.bcc.co.nz
ns.investigation.co.nz
nzipi.org.nz
ns.bouquet.co.nz
mail.safes.co.nz
ns.bcc.co.nz
ns.burglaralarms.co.nz
ns.securityguards.co.nz
covertcameras.co.nz
ns.neru.co.nz
ns.covertcameras.co.nz
bouquets.co.nz
concentric.co.nz
ns.securitytraining.co.nz
mail.couperconsulting.co.nz
retailsecurity.co.nz
ns.concentric.co.nz
mail.magic.co.nz
nzangling.co.nz
ns.couperconsulting.co.nz
ns.nzangling.co.nz
mail.storewatch.co.nz
swift.co.nz
mail.selective.co.nz
ns.forefront.co.nz
mail.nzangling.co.nz
guards.co.nz
mail.nzdesigns.co.nz
storewatch.co.nz
ns.securitymanagement.co.nz
mail.woolworths.co.nz
mail.concentric.co.nz
selective.co.nz
specialinvestigations.co.nz
ns.swift.co.nz
mail.swift.co.nz
ns.securenet.net.nz
privateinvestigation.co.nz
ns.privateinvestigation.co.nz
etrade.co.nz
ns.specialinvestigations.co.nz
mail.ansett.co.nz
ftp.warrent.co.nz
ns.retailsecurity.co.nz
mail.securitymanagement.co.nz
ns.magic.co.nz
mail.forefront.co.nz
mail.securicard.co.nz
securicard.co.nz
ns.nzdesigns.co.nz
safes.co.nz
ns.selective.co.nz
forefront.co.nz
securitymanagement.co.nz
underhour.co.nz
securenet.net.nz
mail.specialinvestigations.co.nz
nzdesigns.co.nz
ns.etrade.co.nz
mail.nzipi.org.nz
mail.underhour.co.nz
ns.asis.org.nz
ns.bouquets.co.nz
agate.co.nz
adns debug: reply not found, id 313b, query owner security.gen.nz (NS=195.224.55.129)
adns debug: reply not found, id 313c, query owner ns.tetra.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 313d, query owner mail.tetra.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 313e, query owner ns.securicard.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 313f, query owner ns.underhour.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3140, query owner bcc.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3141, query owner security.org.nz (NS=195.224.55.129)
adns debug: reply not found, id 3142, query owner burglaralarms.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3143, query owner ns.safes.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3144, query owner ns.security.org.nz (NS=195.224.55.129)
adns debug: reply not found, id 3145, query owner couperconsulting.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3146, query owner securityguards.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3147, query owner ns.guards.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3148, query owner asis.org.nz (NS=195.224.55.129)
adns debug: reply not found, id 3149, query owner neru.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 314a, query owner giftbasket.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 314b, query owner magic.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 314c, query owner mail.bcc.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 314d, query owner ns.investigation.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 314e, query owner nzipi.org.nz (NS=195.224.55.129)
adns debug: reply not found, id 314f, query owner ns.bouquet.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3150, query owner mail.safes.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3151, query owner ns.bcc.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3152, query owner ns.burglaralarms.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 3153, query owner ns.securityguards.co.nz (NS=195.224.55.129)
adns debug: reply not found, id 318b, query owner agate.co.nz (NS=195.224.55.129)
254.0.99.203.in-addr.arpa flags 0 type PTR(checked): Inconsistent resource records in DNS; nrrs=0; cname=$; owner=$; ttl=80790
254.0.99.203.in-addr.arpa flags 0 type A(-): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type NS(raw): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type CNAME(-): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type SOA(raw): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type HINFO(-): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type MX(raw): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type TXT(-): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type RP(raw): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type A(addr): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type NS(+addr): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type MX(+addr): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type SOA(822): No such data; nrrs=0; cname=$; owner=$; ttl=86400
254.0.99.203.in-addr.arpa flags 0 type RP(822): No such data; nrrs=0; cname=$; owner=$; ttl=86400
rc=0
File diff suppressed because it is too large. Load diff
Whitespace-only changes.
-127
View File
@@ -1,127 +0,0 @@
adns debug: using nameserver 140.200.128.13
254.0.99.203.in-addr.arpa flags 292 type 1 A(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 2 NS(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 5 CNAME(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 6 SOA(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 12 PTR(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 13 HINFO(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 15 MX(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 16 TXT(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 17 RP(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 65537 A(addr) submitted
254.0.99.203.in-addr.arpa flags 292 type 65538 NS(+addr) submitted
254.0.99.203.in-addr.arpa flags 292 type 65548 PTR(checked) submitted
254.0.99.203.in-addr.arpa flags 292 type 65551 MX(+addr) submitted
254.0.99.203.in-addr.arpa flags 292 type 131078 SOA(822) submitted
254.0.99.203.in-addr.arpa flags 292 type 131089 RP(822) submitted
254.0.99.203.in-addr.arpa flags 292 type A(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type CNAME(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type SOA(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type NS(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type HINFO(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type TXT(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type MX(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type RP(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type A(addr): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type MX(+addr): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type NS(+addr): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type SOA(822): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type RP(822): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
adns debug: TCP connected (NS=140.200.128.13)
254.0.99.203.in-addr.arpa flags 292 type PTR(raw): OK; nrrs=94; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
ns.security.co.nz
tetra.co.nz
mail.agate.co.nz
ns.agate.co.nz
securitytraining.co.nz
ns.giftbasket.co.nz
ns.security.gen.nz
bouquet.co.nz
investigation.co.nz
ns.nzipi.org.nz
mail.neru.co.nz
security.co.nz
ns.storewatch.co.nz
security.gen.nz
ns.tetra.co.nz
mail.tetra.co.nz
ns.securicard.co.nz
ns.underhour.co.nz
bcc.co.nz
security.org.nz
burglaralarms.co.nz
ns.safes.co.nz
ns.security.org.nz
couperconsulting.co.nz
securityguards.co.nz
ns.guards.co.nz
asis.org.nz
neru.co.nz
giftbasket.co.nz
magic.co.nz
mail.bcc.co.nz
ns.investigation.co.nz
nzipi.org.nz
ns.bouquet.co.nz
mail.safes.co.nz
ns.bcc.co.nz
ns.burglaralarms.co.nz
ns.securityguards.co.nz
covertcameras.co.nz
ns.neru.co.nz
ns.covertcameras.co.nz
bouquets.co.nz
concentric.co.nz
ns.securitytraining.co.nz
mail.couperconsulting.co.nz
retailsecurity.co.nz
ns.concentric.co.nz
mail.magic.co.nz
nzangling.co.nz
ns.couperconsulting.co.nz
ns.nzangling.co.nz
mail.storewatch.co.nz
swift.co.nz
mail.selective.co.nz
ns.forefront.co.nz
mail.nzangling.co.nz
guards.co.nz
mail.nzdesigns.co.nz
storewatch.co.nz
ns.securitymanagement.co.nz
mail.woolworths.co.nz
mail.concentric.co.nz
selective.co.nz
specialinvestigations.co.nz
ns.swift.co.nz
mail.swift.co.nz
ns.securenet.net.nz
privateinvestigation.co.nz
ns.privateinvestigation.co.nz
etrade.co.nz
ns.specialinvestigations.co.nz
mail.ansett.co.nz
ftp.warrent.co.nz
ns.retailsecurity.co.nz
mail.securitymanagement.co.nz
ns.magic.co.nz
mail.forefront.co.nz
mail.securicard.co.nz
securicard.co.nz
ns.nzdesigns.co.nz
safes.co.nz
ns.selective.co.nz
forefront.co.nz
securitymanagement.co.nz
underhour.co.nz
securenet.net.nz
mail.specialinvestigations.co.nz
nzdesigns.co.nz
ns.etrade.co.nz
mail.nzipi.org.nz
mail.underhour.co.nz
ns.asis.org.nz
ns.bouquets.co.nz
agate.co.nz
254.0.99.203.in-addr.arpa flags 292 type PTR(checked): Inconsistent resource records in DNS; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86399
rc=0
File diff suppressed because it is too large. Load diff
Whitespace-only changes.
-132
View File
@@ -1,132 +0,0 @@
adns debug: using nameserver 172.18.45.6
254.0.99.203.in-addr.arpa flags 292 type 1 A(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 2 NS(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 5 CNAME(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 6 SOA(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 12 PTR(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 13 HINFO(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 15 MX(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 16 TXT(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 17 RP(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 65537 A(addr) submitted
254.0.99.203.in-addr.arpa flags 292 type 65538 NS(+addr) submitted
254.0.99.203.in-addr.arpa flags 292 type 65548 PTR(checked) submitted
254.0.99.203.in-addr.arpa flags 292 type 65551 MX(+addr) submitted
254.0.99.203.in-addr.arpa flags 292 type 131078 SOA(822) submitted
254.0.99.203.in-addr.arpa flags 292 type 131089 RP(822) submitted
254.0.99.203.in-addr.arpa flags 292 type A(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=162
254.0.99.203.in-addr.arpa flags 292 type NS(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type CNAME(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type HINFO(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type A(addr): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=162
254.0.99.203.in-addr.arpa flags 292 type TXT(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=162
254.0.99.203.in-addr.arpa flags 292 type SOA(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
254.0.99.203.in-addr.arpa flags 292 type MX(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
adns debug: reply not found, id 3129, query owner 254.0.99.203.in-addr.arpa (NS=172.18.45.6)
254.0.99.203.in-addr.arpa flags 292 type NS(+addr): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=600
254.0.99.203.in-addr.arpa flags 292 type MX(+addr): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=600
254.0.99.203.in-addr.arpa flags 292 type SOA(822): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=600
adns debug: reply not found, id 312b, query owner 254.0.99.203.in-addr.arpa (NS=172.18.45.6)
adns debug: reply not found, id 312c, query owner 254.0.99.203.in-addr.arpa (NS=172.18.45.6)
254.0.99.203.in-addr.arpa flags 292 type RP(822): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
adns debug: reply not found, id 312d, query owner 254.0.99.203.in-addr.arpa (NS=172.18.45.6)
254.0.99.203.in-addr.arpa flags 292 type RP(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=598
adns debug: TCP connected (NS=172.18.45.6)
adns debug: reply not found, id 312a, query owner 254.0.99.203.in-addr.arpa (NS=172.18.45.6)
254.0.99.203.in-addr.arpa flags 292 type PTR(raw): OK; nrrs=94; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=20169
ns.security.co.nz
tetra.co.nz
mail.agate.co.nz
ns.agate.co.nz
securitytraining.co.nz
ns.giftbasket.co.nz
ns.security.gen.nz
bouquet.co.nz
investigation.co.nz
ns.nzipi.org.nz
mail.neru.co.nz
security.co.nz
ns.storewatch.co.nz
security.gen.nz
ns.tetra.co.nz
mail.tetra.co.nz
ns.securicard.co.nz
ns.underhour.co.nz
bcc.co.nz
security.org.nz
burglaralarms.co.nz
ns.safes.co.nz
ns.security.org.nz
couperconsulting.co.nz
securityguards.co.nz
ns.guards.co.nz
asis.org.nz
neru.co.nz
giftbasket.co.nz
magic.co.nz
mail.bcc.co.nz
ns.investigation.co.nz
nzipi.org.nz
ns.bouquet.co.nz
mail.safes.co.nz
ns.bcc.co.nz
ns.burglaralarms.co.nz
ns.securityguards.co.nz
covertcameras.co.nz
ns.neru.co.nz
ns.covertcameras.co.nz
bouquets.co.nz
concentric.co.nz
ns.securitytraining.co.nz
mail.couperconsulting.co.nz
retailsecurity.co.nz
ns.concentric.co.nz
mail.magic.co.nz
nzangling.co.nz
ns.couperconsulting.co.nz
ns.nzangling.co.nz
mail.storewatch.co.nz
swift.co.nz
mail.selective.co.nz
ns.forefront.co.nz
mail.nzangling.co.nz
guards.co.nz
mail.nzdesigns.co.nz
storewatch.co.nz
ns.securitymanagement.co.nz
mail.woolworths.co.nz
mail.concentric.co.nz
selective.co.nz
specialinvestigations.co.nz
ns.swift.co.nz
mail.swift.co.nz
ns.securenet.net.nz
privateinvestigation.co.nz
ns.privateinvestigation.co.nz
etrade.co.nz
ns.specialinvestigations.co.nz
mail.ansett.co.nz
ftp.warrent.co.nz
ns.retailsecurity.co.nz
mail.securitymanagement.co.nz
ns.magic.co.nz
mail.forefront.co.nz
mail.securicard.co.nz
securicard.co.nz
ns.nzdesigns.co.nz
safes.co.nz
ns.selective.co.nz
forefront.co.nz
securitymanagement.co.nz
underhour.co.nz
securenet.net.nz
mail.specialinvestigations.co.nz
nzdesigns.co.nz
ns.etrade.co.nz
mail.nzipi.org.nz
mail.underhour.co.nz
ns.asis.org.nz
ns.bouquets.co.nz
agate.co.nz
254.0.99.203.in-addr.arpa flags 292 type PTR(checked): Inconsistent resource records in DNS; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=20167
rc=0
File diff suppressed because it is too large. Load diff
Whitespace-only changes.
-164
View File
@@ -1,164 +0,0 @@
adns debug: using nameserver 172.18.45.6
254.0.99.203.in-addr.arpa flags 292 type 1 A(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 2 NS(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 5 CNAME(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 6 SOA(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 12 PTR(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 13 HINFO(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 15 MX(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 16 TXT(-) submitted
254.0.99.203.in-addr.arpa flags 292 type 17 RP(raw) submitted
254.0.99.203.in-addr.arpa flags 292 type 65537 A(addr) submitted
254.0.99.203.in-addr.arpa flags 292 type 65538 NS(+addr) submitted
254.0.99.203.in-addr.arpa flags 292 type 65548 PTR(checked) submitted
254.0.99.203.in-addr.arpa flags 292 type 65551 MX(+addr) submitted
254.0.99.203.in-addr.arpa flags 292 type 131078 SOA(822) submitted
254.0.99.203.in-addr.arpa flags 292 type 131089 RP(822) submitted
254.0.99.203.in-addr.arpa flags 292 type A(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=539
254.0.99.203.in-addr.arpa flags 292 type NS(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=539
254.0.99.203.in-addr.arpa flags 292 type SOA(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=540
adns debug: TCP connected (NS=172.18.45.6)
254.0.99.203.in-addr.arpa flags 292 type HINFO(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=540
254.0.99.203.in-addr.arpa flags 292 type MX(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=540
254.0.99.203.in-addr.arpa flags 292 type TXT(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=539
254.0.99.203.in-addr.arpa flags 292 type RP(raw): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=539
254.0.99.203.in-addr.arpa flags 292 type PTR(raw): OK; nrrs=94; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86351
ns.security.co.nz
tetra.co.nz
mail.agate.co.nz
ns.agate.co.nz
securitytraining.co.nz
ns.giftbasket.co.nz
ns.security.gen.nz
bouquet.co.nz
investigation.co.nz
ns.nzipi.org.nz
mail.neru.co.nz
security.co.nz
ns.storewatch.co.nz
security.gen.nz
ns.tetra.co.nz
mail.tetra.co.nz
ns.securicard.co.nz
ns.underhour.co.nz
bcc.co.nz
security.org.nz
burglaralarms.co.nz
ns.safes.co.nz
ns.security.org.nz
couperconsulting.co.nz
securityguards.co.nz
ns.guards.co.nz
asis.org.nz
neru.co.nz
giftbasket.co.nz
magic.co.nz
mail.bcc.co.nz
ns.investigation.co.nz
nzipi.org.nz
ns.bouquet.co.nz
mail.safes.co.nz
ns.bcc.co.nz
ns.burglaralarms.co.nz
ns.securityguards.co.nz
covertcameras.co.nz
ns.neru.co.nz
ns.covertcameras.co.nz
bouquets.co.nz
concentric.co.nz
ns.securitytraining.co.nz
mail.couperconsulting.co.nz
retailsecurity.co.nz
ns.concentric.co.nz
mail.magic.co.nz
nzangling.co.nz
ns.couperconsulting.co.nz
ns.nzangling.co.nz
mail.storewatch.co.nz
swift.co.nz
mail.selective.co.nz
ns.forefront.co.nz
mail.nzangling.co.nz
guards.co.nz
mail.nzdesigns.co.nz
storewatch.co.nz
ns.securitymanagement.co.nz
mail.woolworths.co.nz
mail.concentric.co.nz
selective.co.nz
specialinvestigations.co.nz
ns.swift.co.nz
mail.swift.co.nz
ns.securenet.net.nz
privateinvestigation.co.nz
ns.privateinvestigation.co.nz
etrade.co.nz
ns.specialinvestigations.co.nz
mail.ansett.co.nz
ftp.warrent.co.nz
ns.retailsecurity.co.nz
mail.securitymanagement.co.nz
ns.magic.co.nz
mail.forefront.co.nz
mail.securicard.co.nz
securicard.co.nz
ns.nzdesigns.co.nz
safes.co.nz
ns.selective.co.nz
forefront.co.nz
securitymanagement.co.nz
underhour.co.nz
securenet.net.nz
mail.specialinvestigations.co.nz
nzdesigns.co.nz
ns.etrade.co.nz
mail.nzipi.org.nz
mail.underhour.co.nz
ns.asis.org.nz
ns.bouquets.co.nz
agate.co.nz
254.0.99.203.in-addr.arpa flags 292 type A(addr): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=539
254.0.99.203.in-addr.arpa flags 292 type NS(+addr): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=539
254.0.99.203.in-addr.arpa flags 292 type MX(+addr): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=540
254.0.99.203.in-addr.arpa flags 292 type SOA(822): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=540
254.0.99.203.in-addr.arpa flags 292 type RP(822): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=539
adns debug: reply not found, id 313b, query owner security.gen.nz (NS=172.18.45.6)
adns debug: reply not found, id 313c, query owner ns.tetra.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 313d, query owner mail.tetra.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 313e, query owner ns.securicard.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 313f, query owner ns.underhour.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3140, query owner bcc.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3141, query owner security.org.nz (NS=172.18.45.6)
adns debug: reply not found, id 3142, query owner burglaralarms.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3143, query owner ns.safes.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3144, query owner ns.security.org.nz (NS=172.18.45.6)
adns debug: reply not found, id 3145, query owner couperconsulting.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3146, query owner securityguards.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3147, query owner ns.guards.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3148, query owner asis.org.nz (NS=172.18.45.6)
adns debug: reply not found, id 3149, query owner neru.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 314a, query owner giftbasket.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 314b, query owner magic.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 314c, query owner mail.bcc.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 314d, query owner ns.investigation.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 314e, query owner nzipi.org.nz (NS=172.18.45.6)
adns debug: reply not found, id 314f, query owner ns.bouquet.co.nz (NS=172.18.45.6)
254.0.99.203.in-addr.arpa flags 292 type PTR(checked): Inconsistent resource records in DNS; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86351
adns debug: reply not found, id 3150, query owner mail.safes.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3151, query owner ns.bcc.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3152, query owner ns.burglaralarms.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3153, query owner ns.securityguards.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3154, query owner covertcameras.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3155, query owner ns.neru.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3156, query owner ns.covertcameras.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3157, query owner bouquets.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3158, query owner concentric.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 3159, query owner ns.securitytraining.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 315a, query owner mail.couperconsulting.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 315b, query owner retailsecurity.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 315c, query owner ns.concentric.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 315d, query owner mail.magic.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 315e, query owner nzangling.co.nz (NS=172.18.45.6)
adns debug: reply not found, id 315f, query owner ns.couperconsulting.co.nz (NS=172.18.45.6)
254.0.99.203.in-addr.arpa flags 292 type CNAME(-): No such data; nrrs=0; cname=$; owner=254.0.99.203.in-addr.arpa; ttl=86400
rc=0
File diff suppressed because it is too large. Load diff
View File
Whitespace-only changes.
Loaded 100 of 313 files, more files were not shown because too many files have changed in this diff. Show more