| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
| |
I don't much like PF_. None of the modern specs or docs talk about PF
any more.
Entirely formulaic patch:
perl -i~ -pe 's/\bPF_INET\b/AF_INET/g' regress/*
perl -i~ -pe 's/\bPF_INET6\b/AF_INET6/g' regress/*
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the end-game. Add flags and options to allow clients and
administrators to choose which address families they want returned. For
logical compatibility with old clients, don't return foreign address
families unless explicitly requested.
Lots of tests are modified to select only IPv4 addresses. There's
nothing else up my sleeve. A new test is added for the additional
functionality; more are expected later.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
|
|
|
|
|
|
|
|
|
| |
I updated the test files with this rune:
grep -lZ "^ socket type=" *.sys | xargs -0r sed -i \
's/^ socket type=/ socket domain=PF_INET type=/'
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A future change is going to change how query-ids are allocated for
adns_r_addr queries. So here we apply a simple bodge which will produce
the same allocation pattern, but without the complexity of the rest of
the change, and fix the test suite to match.
I used the script regress/hack-query-ids to help me modify the
case-*.sys files, though this was primarily a rather tedious manual
process.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Soon we're going to change the way adns_r_ptr queries work: in
particular, queries with names which can't be parsed back into addresses
will be rejected during submission rather than waiting for the answer to
the initial PTR question to come back.
So here we apply a really simple temporary hack to adns_submit which
approximately captures the behaviour we're after, and adjust the various
test cases to match. We'll take this hack out when we make the proper
change to the PTR handling.
Hopefully this will persuade reviewers that there's nothing up my
sleeves while I mess with the regression tests.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
|
|
|
|
|
|
|
| |
This is system specific, and (more annoyingly) will break the tests if
additional address families are supported in the future.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
@@ -3,6 +3,11 @@
Bugfixes:
* Actually compile shared libraries by default !
+ General Improvements:
+ * adnshost has --config option for overriding configuration.
+ * Regression tests now include `adnshost' invocations.
+ * Test cancellation both before and after query completion.
+
Portability fixes:
* Fix <sys/fcntl.h> in client/adnsresfilter.c to <fcntl.h>.
* #include <sys/types.h> and <unistd.h> for fcntl in */*.c.
@@ -12,6 +17,7 @@
* adnstest: setvbuf(stdout,...) before we do first output.
* Cast a sizeof(...) in src/event.c to unsigned long before printing.
* #include <sys/select.h> if it exists.
+ * Regression tests work better if some syscalls are already macros.
Portability cleanups:
* Add list of tested platforms in INSTALL file.
|
|
|
|
|
|
|
| |
@@ -3,6 +3,8 @@
Bugfixes:
+ * Race near adns_beforeselect which could cause infinite timeout fixed
+ (it's now less agressive, and will more often return a zero timeout.)
|
| |
|
| |
|
|
|