Skip to content
Commit 6493af27 authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Anas Nashif
Browse files

tests: net: dns: Add tests for catching malformed packets



Add more tests to verify that we discard malformed packets.
In order to simplify the testing, separate message validation to
dns_validate_msg() function in resolve.c. Allow that function to
be called from unit test. This way we can construct invalid DNS
messages in unit test and verify that they are discarded when
needed.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 50def60b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment