]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
8 years agoKnot Resolver 1.2.4
Ondřej Surý [Thu, 9 Mar 2017 12:07:27 +0000 (13:07 +0100)] 
Knot Resolver 1.2.4

8 years agoUpdate deckard to latest master
Ondřej Surý [Thu, 9 Mar 2017 12:44:15 +0000 (13:44 +0100)] 
Update deckard to latest master

8 years agoGet a fresh deckard copy before the build
Ondřej Surý [Wed, 8 Mar 2017 12:24:42 +0000 (13:24 +0100)] 
Get a fresh deckard copy before the build

8 years agoUpdate NEWS
Ondřej Surý [Wed, 8 Mar 2017 12:03:03 +0000 (13:03 +0100)] 
Update NEWS

8 years agoMerge branch 'fix-auth-qname' into 'master'
Ondřej Surý [Wed, 8 Mar 2017 10:58:14 +0000 (11:58 +0100)] 
Merge branch 'fix-auth-qname' into 'master'

layer\iterate: when processing delegations, check if qname is at\below new authority

See merge request !229

8 years agoMerge branch '1.2.4-dev' into '1.2'
Ondřej Surý [Wed, 8 Mar 2017 12:00:08 +0000 (13:00 +0100)] 
Merge branch '1.2.4-dev' into '1.2'

1.2.4 dev

See merge request !227

8 years agoUpdate deckard to val_cname_secure_insecure tests
Ondřej Surý [Mon, 6 Mar 2017 12:50:58 +0000 (13:50 +0100)] 
Update deckard to val_cname_secure_insecure tests

8 years agoClarify conditions when invalid RRSIG can lead to AD=1 response
Petr Špaček [Mon, 6 Mar 2017 12:24:20 +0000 (13:24 +0100)] 
Clarify conditions when invalid RRSIG can lead to AD=1 response

Further clarification of fb957a9b5593aaa46dcfddd9adb488cf898b4a45

8 years agoClarify security section
Ondřej Surý [Mon, 6 Mar 2017 11:41:01 +0000 (12:41 +0100)] 
Clarify security section

8 years agoUpdate NEWS
Ondřej Surý [Mon, 6 Mar 2017 10:59:17 +0000 (11:59 +0100)] 
Update NEWS

8 years agolib/resolve: deferred answer processing was fixed
Grigorii Demidov [Fri, 3 Mar 2017 09:17:06 +0000 (10:17 +0100)] 
lib/resolve: deferred answer processing was fixed

8 years agorrcache: don't store NSEC3 and their signatures
Vladimír Čunát [Thu, 2 Mar 2017 17:28:14 +0000 (18:28 +0100)] 
rrcache: don't store NSEC3 and their signatures

They would end up cached by their hashed owner names and then even
returned if explicitly queried by that hashed name, which is not correct:
https://tools.ietf.org/html/rfc4035#section-2.3

Internally we only need these for non-existence proofs, and those are
stored in pktcache instead.

8 years agolayer/validate: don't treat anwsers which contain DS non-existance proof as unsecured
Grigorii Demidov [Wed, 1 Mar 2017 12:47:27 +0000 (13:47 +0100)] 
layer/validate: don't treat anwsers which contain DS non-existance proof as unsecured

8 years agoMerge !218: cherry-picks for 1.2.4
Vladimír Čunát [Wed, 1 Mar 2017 10:18:52 +0000 (11:18 +0100)] 
Merge !218: cherry-picks for 1.2.4

8 years agoupdate NEWS with notable chanages
Vladimír Čunát [Wed, 1 Mar 2017 10:16:38 +0000 (11:16 +0100)] 
update NEWS with notable chanages

8 years agoMerge branch 'full_check_integration' into 'master'
Petr Špaček [Wed, 1 Mar 2017 08:13:22 +0000 (09:13 +0100)] 
Merge branch 'full_check_integration' into 'master'

Update check-integration to run full test suite from Deckard

See merge request !220
(cherry picked from commit f8487fd6e7743bd4e92336750e8cada6a4296826)

8 years agodaemon: fixed memory leak and array bounds check fail
Marek Vavruša [Tue, 28 Feb 2017 19:05:20 +0000 (11:05 -0800)] 
daemon: fixed memory leak and array bounds check fail

(cherry picked from commit 924d99364548cf6f1b7d4d131fc08a3e04ecb524)

8 years agolib/resolve: forward +cd in stub mode; minor bugfix in debug output
Grigorii Demidov [Tue, 28 Feb 2017 12:30:25 +0000 (13:30 +0100)] 
lib/resolve: forward +cd in stub mode; minor bugfix in debug output

(cherry picked from commit 218f1b78b31ac4742f27a48027748e3989951bee)

8 years agolua: add net.outgoing_{v4,v6} and documentation
Vladimír Čunát [Mon, 20 Feb 2017 10:26:27 +0000 (11:26 +0100)] 
lua: add net.outgoing_{v4,v6} and documentation

Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/158
The naming is inspired by Unbound's "outgoing-interface".

8 years agodaemon: support restricting outgoing IP address
Vladimír Čunát [Mon, 20 Feb 2017 09:12:38 +0000 (10:12 +0100)] 
daemon: support restricting outgoing IP address

8 years agoutils: add union inaddr
Vladimír Čunát [Mon, 20 Feb 2017 07:06:57 +0000 (08:06 +0100)] 
utils: add union inaddr

It will be a useful idiom for IP address storage and correct conversion
of sockaddr* pointers.

8 years agotrust anchors: improve logging of failures
Vladimír Čunát [Mon, 13 Feb 2017 13:01:50 +0000 (14:01 +0100)] 
trust anchors: improve logging of failures

engine_cmd() doesn't print the error() exceptions thrown from lua;
it only leaves the message on lua stack.

(cherry picked from commit a316b9f7a74723770c61f1412d9b55b873bfd003)

8 years agoUpdate to 1.2.4-dev
Ondřej Surý [Tue, 28 Feb 2017 11:03:19 +0000 (12:03 +0100)] 
Update to 1.2.4-dev

8 years agomodules/policy: allow QTRACE policy to be chained with other policies
Grigorii Demidov [Fri, 3 Feb 2017 09:59:07 +0000 (10:59 +0100)] 
modules/policy: allow QTRACE policy to be chained with other policies

8 years agohints.add_hosts(path): a new property
Vladimír Čunát [Thu, 26 Jan 2017 15:02:41 +0000 (16:02 +0100)] 
hints.add_hosts(path): a new property

So far it wasn't possible to load multiple files (!).  Real use case:
https://forum.turris.cz/t/how-to-configure-local-address-dns-resoultion-on-omnia/1000/14

8 years agolibkresd: link against libuv
Vladimír Čunát [Fri, 27 Jan 2017 17:10:06 +0000 (18:10 +0100)] 
libkresd: link against libuv

8 years agoiterate: remove function unused after parent merge
Vladimír Čunát [Fri, 17 Feb 2017 15:41:18 +0000 (16:41 +0100)] 
iterate: remove function unused after parent merge

8 years agomodule: document the API and simplify the code
Vladimír Čunát [Fri, 20 Jan 2017 17:43:01 +0000 (18:43 +0100)] 
module: document the API and simplify the code

This does NOT change the module API/ABI in any way.

8 years agokres-gen.lua: reduce installed whitespace
Vladimír Čunát [Wed, 15 Feb 2017 17:19:32 +0000 (18:19 +0100)] 
kres-gen.lua: reduce installed whitespace

8 years agolua cache.* fixes
Vladimír Čunát [Wed, 8 Feb 2017 12:13:57 +0000 (13:13 +0100)] 
lua cache.* fixes

- docs: fix cache.current_* since long ago d5272b4
- don't allow "cache.foo = 'bar'" for abitrary foo
- restore cache['nic.cz'] after b31bad2ccf while not breaking completion
- #cache won't work on lua 5.1, so remove it

8 years agolua sandbox: fix syntactic sugar for `cache` table in order for tab-completion to...
Štěpán Balážik [Wed, 1 Feb 2017 14:19:56 +0000 (15:19 +0100)] 
lua sandbox: fix syntactic sugar for `cache` table in order for tab-completion to work properly

8 years ago.gitignore: add some entries
Vladimír Čunát [Wed, 15 Feb 2017 10:11:12 +0000 (11:11 +0100)] 
.gitignore: add some entries

All either generated by the build system or some "standard tools".

8 years agopolicy.MIRROR: support IPv6 link-local addresses
Vladimír Čunát [Fri, 27 Jan 2017 16:48:34 +0000 (17:48 +0100)] 
policy.MIRROR: support IPv6 link-local addresses

8 years agolayer/iterate: some improvements in cname chain unrolling
Grigorii Demidov [Fri, 17 Feb 2017 10:36:11 +0000 (11:36 +0100)] 
layer/iterate: some improvements in cname chain unrolling

8 years agopolicy.FORWARD: support IPv6 link-local addresses
Vladimír Čunát [Fri, 27 Jan 2017 15:57:16 +0000 (16:57 +0100)] 
policy.FORWARD: support IPv6 link-local addresses

These shouldn't make any problems:
- the verbose messages don't print any scope, and
- reputation cache doesn't consider scope.

8 years agotests: sync deckard; cleanup
Grigorii Demidov [Tue, 28 Feb 2017 09:47:05 +0000 (10:47 +0100)] 
tests: sync deckard; cleanup

8 years agolayer/validate: fix duplicate records in AUTHORITY section in case of WC expansion...
Grigorii Demidov [Mon, 27 Feb 2017 12:19:48 +0000 (13:19 +0100)] 
layer/validate: fix duplicate records in AUTHORITY section in case of WC expansion proof

8 years agolua: do *not* truncate cache size to unsigned
Vladimír Čunát [Fri, 24 Feb 2017 10:26:28 +0000 (11:26 +0100)] 
lua: do *not* truncate cache size to unsigned

... and perform extra checks when converting from the floating-point
number.

8 years agoMerge !214: various fixes for 1.2.3 v1.2.3
Vladimír Čunát [Thu, 23 Feb 2017 14:37:53 +0000 (15:37 +0100)] 
Merge !214: various fixes for 1.2.3

8 years agoPrepare 1.2.3 release
Ondřej Surý [Thu, 23 Feb 2017 13:24:50 +0000 (14:24 +0100)] 
Prepare 1.2.3 release

8 years agoDisable storing GLUE records into the cache in the QUERY_PERMISSIVE mode
Ondřej Surý [Fri, 17 Feb 2017 14:18:25 +0000 (15:18 +0100)] 
Disable storing GLUE records into the cache in the QUERY_PERMISSIVE mode

8 years agoiterate: skip answer RRs that don't match the query
Vladimír Čunát [Mon, 20 Feb 2017 12:50:39 +0000 (13:50 +0100)] 
iterate: skip answer RRs that don't match the query

Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/160

8 years agolayer/iterate: some additional processing for referrals
Grigorii Demidov [Wed, 15 Feb 2017 11:57:08 +0000 (12:57 +0100)] 
layer/iterate: some additional processing for referrals

8 years agolib/resolve: zonecut fetching error was fixed
Grigorii Demidov [Thu, 16 Feb 2017 12:23:41 +0000 (13:23 +0100)] 
lib/resolve: zonecut fetching error was fixed

8 years agoMerge branch 'release-1.2.2' into '1.2' v1.2.2
Ondřej Surý [Fri, 10 Feb 2017 12:28:19 +0000 (13:28 +0100)] 
Merge branch 'release-1.2.2' into '1.2'

Release 1.2.2

See merge request !199

8 years agoUpdate NEWS for 1.2.2
Ondřej Surý [Fri, 10 Feb 2017 12:25:56 +0000 (13:25 +0100)] 
Update NEWS for 1.2.2

8 years agoMerge branch 'ta-boostrap-log-https' into '1.2'
Ondřej Surý [Fri, 10 Feb 2017 12:24:57 +0000 (13:24 +0100)] 
Merge branch 'ta-boostrap-log-https' into '1.2'

TA bootstrap: log HTTPS failures

See merge request !198

8 years agoTA bootstrap: log HTTPS failures
Petr Špaček [Fri, 10 Feb 2017 12:22:24 +0000 (13:22 +0100)] 
TA bootstrap: log HTTPS failures

8 years agoMerge branch 'ci-v1.2' into '1.2'
Ondřej Surý [Fri, 10 Feb 2017 12:22:10 +0000 (13:22 +0100)] 
Merge branch 'ci-v1.2' into '1.2'

Query name minimization tests in CI

See merge request !197

8 years agoCI: Run Deckard tests in parallel
Petr Špaček [Thu, 9 Feb 2017 12:14:12 +0000 (13:14 +0100)] 
CI: Run Deckard tests in parallel

8 years agoRun Deckard tests with qmin on & off
Petr Špaček [Thu, 9 Feb 2017 11:35:53 +0000 (12:35 +0100)] 
Run Deckard tests with qmin on & off

Latest version of Deckard provides script kresd_run.sh which executes
all the tests twice:
- without query name minimization
- with query name minimization

Let's use this for CI!

8 years agoPrepare 1.2.2 release
Ondřej Surý [Fri, 10 Feb 2017 07:52:31 +0000 (08:52 +0100)] 
Prepare 1.2.2 release

8 years agoMerge branch 'ta-multiple' into 'master'
Ondřej Surý [Fri, 10 Feb 2017 07:58:36 +0000 (08:58 +0100)] 
Merge branch 'ta-multiple' into 'master'

trust anchor fixes

Closes #151

See merge request !193

8 years agoFix -k argument processing to avoid out-of-bounds memory accesses
Petr Špaček [Fri, 3 Feb 2017 14:18:49 +0000 (15:18 +0100)] 
Fix -k argument processing to avoid out-of-bounds memory accesses

Mangling of keyfile_dir and allocation of keyfile_path led to rare
crashes (and Valgrind complaints).

The error was introduced in 21f3a6b9d0ed3b4ae05d4d1f1612f0f277235723.

8 years agolib/resolve: fix zonecut fetching for explicit DS queries
Grigorii Demidov [Thu, 2 Feb 2017 13:36:35 +0000 (14:36 +0100)] 
lib/resolve: fix zonecut fetching for explicit DS queries

8 years agohints: more NULL checks
Vladimír Čunát [Thu, 26 Jan 2017 14:10:03 +0000 (15:10 +0100)] 
hints: more NULL checks

Calling `hints.del()` would cause a crash.
It wasn't apparent to me that NULL could be passed through.

8 years agoMerge branch 'release-1.2.1' into 'master' v1.2.1
Ondřej Surý [Wed, 1 Feb 2017 19:27:39 +0000 (20:27 +0100)] 
Merge branch 'release-1.2.1' into 'master'

Final 1.2.1 changelog update

See merge request !189

8 years agoFinal changelog update
Ondřej Surý [Wed, 1 Feb 2017 19:25:44 +0000 (20:25 +0100)] 
Final changelog update

8 years agoMerge branch 'deckard-rhybar.cz' into 'master'
Ondřej Surý [Wed, 1 Feb 2017 19:22:49 +0000 (20:22 +0100)] 
Merge branch 'deckard-rhybar.cz' into 'master'

Merge deckard test for negative CD/no-AD answers (using rhybar.cz)

See merge request !188

8 years agoMerge deckard test for negative CD/no-AD answers (using rhybar.cz)
Ondřej Surý [Wed, 1 Feb 2017 19:08:05 +0000 (20:08 +0100)] 
Merge deckard test for negative CD/no-AD answers (using rhybar.cz)

8 years agoMerge branch 'policy-qtrace-documentation' into 'master'
Ondřej Surý [Wed, 1 Feb 2017 19:19:22 +0000 (20:19 +0100)] 
Merge branch 'policy-qtrace-documentation' into 'master'

Fix policy.TRACE -> policy.QTRACE mistake in the documentation

See merge request !187

8 years agoFix policy.TRACE -> policy.QTRACE mistake in the documentation
Ondřej Surý [Wed, 1 Feb 2017 19:16:29 +0000 (20:16 +0100)] 
Fix policy.TRACE -> policy.QTRACE mistake in the documentation

8 years agoMerge branch 'pktcache-insecure' into 'master'
Grigorii Demidov [Wed, 1 Feb 2017 17:09:06 +0000 (18:09 +0100)] 
Merge branch 'pktcache-insecure' into 'master'

Fix a possible Insecure vs Bogus bad cache reuse for negative answers

See merge request !186

8 years agorelease 1.2.1
Vladimír Čunát [Wed, 1 Feb 2017 14:33:49 +0000 (15:33 +0100)] 
release 1.2.1

8 years agopktcache: fix mixup of BOGUS and INSECURE DNSSEC
Vladimír Čunát [Wed, 1 Feb 2017 14:08:26 +0000 (15:08 +0100)] 
pktcache: fix mixup of BOGUS and INSECURE DNSSEC

A negative answer cached from a +cd query could be mistakenly used
even for a later query without +cd.

8 years agoMerge !185: lua: make the map command check its arguments
Vladimír Čunát [Tue, 31 Jan 2017 13:28:26 +0000 (14:28 +0100)] 
Merge !185: lua: make the map command check its arguments

8 years agolua: make the map command check its arguments
Vladimír Čunát [Tue, 31 Jan 2017 13:25:29 +0000 (14:25 +0100)] 
lua: make the map command check its arguments

Fixes #147.

8 years agoMerge !183: lua: get rid of knot_rrset_txt_dump
Vladimír Čunát [Fri, 27 Jan 2017 18:33:10 +0000 (19:33 +0100)] 
Merge !183: lua: get rid of knot_rrset_txt_dump

8 years agolua: get rid of knot_rrset_txt_dump
Vladimír Čunát [Fri, 27 Jan 2017 18:28:16 +0000 (19:28 +0100)] 
lua: get rid of knot_rrset_txt_dump

I believe it was unused, so no risk was caused, but better remove it.
There's the complication that its signature has changed since libknot-2.4.0.
Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/146

8 years agoMerge !179: doc nitpicks
Vladimír Čunát [Thu, 26 Jan 2017 15:07:04 +0000 (16:07 +0100)] 
Merge !179: doc nitpicks

8 years agodocs: misc warning fixes
Vladimír Čunát [Thu, 26 Jan 2017 14:50:26 +0000 (15:50 +0100)] 
docs: misc warning fixes

8 years agoredis doc: fix some hyperlinks
Vladimír Čunát [Fri, 20 Jan 2017 12:15:17 +0000 (13:15 +0100)] 
redis doc: fix some hyperlinks

I must say I have a hard time getting used to rst syntax myself.

8 years agoMerge !178: update link to Linux kernel coding style
Vladimír Čunát [Thu, 26 Jan 2017 09:32:30 +0000 (10:32 +0100)] 
Merge !178: update link to Linux kernel coding style

8 years agoupdate link to Linux kernel coding style
Petr Špaček [Thu, 26 Jan 2017 09:27:51 +0000 (10:27 +0100)] 
update link to Linux kernel coding style

8 years agoMerge branch 'release-1.2.0' into 'master' v1.2.0
Ondřej Surý [Wed, 25 Jan 2017 13:16:25 +0000 (14:16 +0100)] 
Merge branch 'release-1.2.0' into 'master'

Knot DNS Release 1.2.0

See merge request !176

8 years agoKnot Resolver 1.2.0
Ondřej Surý [Wed, 25 Jan 2017 12:55:46 +0000 (13:55 +0100)] 
Knot Resolver 1.2.0

8 years agoUpdate copyright information with 2017
Ondřej Surý [Wed, 25 Jan 2017 13:14:13 +0000 (14:14 +0100)] 
Update copyright information with 2017

8 years agoUse NEWS as a reference date for timestamp in man page
Ondřej Surý [Wed, 25 Jan 2017 13:06:27 +0000 (14:06 +0100)] 
Use NEWS as a reference date for timestamp in man page

8 years agoUpdate copyright in documentation
Ondřej Surý [Wed, 25 Jan 2017 13:06:09 +0000 (14:06 +0100)] 
Update copyright in documentation

8 years agoMerge branch 'deckard-update' into 'master'
Ondřej Surý [Wed, 25 Jan 2017 13:00:29 +0000 (14:00 +0100)] 
Merge branch 'deckard-update' into 'master'

Update deckard to latest version

See merge request !175

8 years agoUpdate deckard to latest version
Ondřej Surý [Wed, 25 Jan 2017 12:57:08 +0000 (13:57 +0100)] 
Update deckard to latest version

8 years agoMerge branch 'misc-issues' into 'master'
Ondřej Surý [Tue, 24 Jan 2017 22:12:10 +0000 (23:12 +0100)] 
Merge branch 'misc-issues' into 'master'

Fix insecure CNAME pointing to secure target returning AD flag in error

Closes #144

See merge request !174

8 years agoAdd a deckard test for www.nic.mx issue
Ondřej Surý [Tue, 24 Jan 2017 22:00:56 +0000 (23:00 +0100)] 
Add a deckard test for www.nic.mx issue

8 years agominor spelling fixes
Ondřej Surý [Tue, 24 Jan 2017 21:54:59 +0000 (22:54 +0100)] 
minor spelling fixes

8 years agolayer/iterate: revert some previous changes
Grigorii Demidov [Tue, 24 Jan 2017 19:23:15 +0000 (20:23 +0100)] 
layer/iterate: revert some previous changes

8 years agolayer/validate: fix for issue 144
Grigorii Demidov [Tue, 24 Jan 2017 15:55:31 +0000 (16:55 +0100)] 
layer/validate: fix for issue 144

8 years agoMerge !173: doc: fix luasec links
Vladimír Čunát [Tue, 24 Jan 2017 09:54:34 +0000 (10:54 +0100)] 
Merge !173: doc: fix luasec links

8 years agodoc: fix luasec links
Vladimír Čunát [Tue, 24 Jan 2017 09:51:58 +0000 (10:51 +0100)] 
doc: fix luasec links

8 years agoMerge branch '1.2.0-rc3' into 'master' v1.2.0-rc3
Ondřej Surý [Tue, 24 Jan 2017 09:21:24 +0000 (10:21 +0100)] 
Merge branch '1.2.0-rc3' into 'master'

Prepare 1.2.0-rc3 release

See merge request !171

8 years agoPrepare 1.2.0-rc3 release
Ondřej Surý [Mon, 23 Jan 2017 15:00:47 +0000 (16:00 +0100)] 
Prepare 1.2.0-rc3 release

8 years agoMerge branch 'fix-arpa-ds' into 'master'
Ondřej Surý [Tue, 24 Jan 2017 09:05:27 +0000 (10:05 +0100)] 
Merge branch 'fix-arpa-ds' into 'master'

layer/validate: some bugfixes

See merge request !170

8 years agoMerge branch 'policy-TRACE-docs' into 'master'
Grigorii Demidov [Tue, 24 Jan 2017 09:02:34 +0000 (10:02 +0100)] 
Merge branch 'policy-TRACE-docs' into 'master'

Update policy.TRACE documentation

See merge request !169

8 years agoMention that TRACE also prints answers for all subqueries
Ondřej Surý [Tue, 24 Jan 2017 08:59:38 +0000 (09:59 +0100)] 
Mention that TRACE also prints answers for all subqueries

8 years agolayer/validate: some bugfixes
Grigorii Demidov [Mon, 23 Jan 2017 20:14:29 +0000 (21:14 +0100)] 
layer/validate: some bugfixes

8 years agoUpdate policy.TRACE documentation
Ondřej Surý [Mon, 23 Jan 2017 15:07:16 +0000 (16:07 +0100)] 
Update policy.TRACE documentation

8 years agoMerge branch 'qry-trace' into 'master'
Ondřej Surý [Mon, 23 Jan 2017 14:55:30 +0000 (15:55 +0100)] 
Merge branch 'qry-trace' into 'master'

TRACE policy

See merge request !167

8 years agoMerge !168: iterate: fix typo from !165
Vladimír Čunát [Mon, 23 Jan 2017 14:52:42 +0000 (15:52 +0100)] 
Merge !168: iterate: fix typo from !165

8 years agoiterate: fix typo from !165
Vladimír Čunát [Mon, 23 Jan 2017 14:49:32 +0000 (15:49 +0100)] 
iterate: fix typo from !165

Oh, I failed to notice this typo. Clang is just better than gcc in this.

8 years agoUse WITH_VERBOSE instead of NDEBUG to enable debug printing via policy.TRACE()
Ondřej Surý [Mon, 23 Jan 2017 14:37:19 +0000 (15:37 +0100)] 
Use WITH_VERBOSE instead of NDEBUG to enable debug printing via policy.TRACE()

8 years agoMerge !166: accept packets with junk after end (by default)
Vladimír Čunát [Mon, 23 Jan 2017 14:00:18 +0000 (15:00 +0100)] 
Merge !166: accept packets with junk after end (by default)

Closes #133.