Skip to content

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Aug 11, 2022

Contribution description

Existing entries should be expired, new entries should not be created.

Testing procedure

I added a test case for TTL=0 to the unittests, so

make -C tests/unittests/ tests-dns_cache test

should succeed.

Issues/PRs references

miri64 added 2 commits August 11, 2022 14:04
Existing entries should be expired, new entries should not be created.
@miri64 miri64 added the Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) label Aug 11, 2022
@miri64 miri64 requested a review from benpicco August 11, 2022 12:08
@github-actions github-actions bot added Area: network Area: Networking Area: sys Area: System Area: tests Area: tests and testing framework labels Aug 11, 2022
@miri64
Copy link
Member Author

miri64 commented Aug 11, 2022

See also RFC 1035 on that:

TTL             a 32 bit unsigned integer that specifies the time
                interval (in seconds) that the resource record may be
                cached before it should be discarded.  Zero values are
                interpreted to mean that the RR can only be used for the
                transaction in progress, and should not be cached.

@miri64 miri64 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Aug 11, 2022
@miri64 miri64 enabled auto-merge August 11, 2022 13:33
@benpicco benpicco added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Aug 22, 2022
@miri64 miri64 merged commit f15fbb3 into RIOT-OS:master Aug 23, 2022
@miri64 miri64 deleted the dns_cache/fix/ttl0 branch August 29, 2022 06:29
@maribu maribu added this to the Release 2022.10 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking Area: sys Area: System Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants