Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds test code for new net_mgmt events relating to adding and removing DNS servers Signed-off-by: Jamie McCrae <jamie.mccrae@lairdtech.com>
- Loading branch information
Showing
4 changed files
with
602 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.13.1) | ||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) | ||
project(dns_addremove) | ||
|
||
target_include_directories(app PRIVATE $ENV{ZEPHYR_BASE}/subsys/net/ip) | ||
FILE(GLOB app_sources src/*.c) | ||
target_sources(app PRIVATE ${app_sources}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_TEST=y | ||
CONFIG_ENTROPY_GENERATOR=y | ||
CONFIG_TEST_RANDOM_GENERATOR=y | ||
CONFIG_NET_L2_DUMMY=y | ||
CONFIG_DNS_RESOLVER=y | ||
CONFIG_DNS_RESOLVER_MAX_SERVERS=2 | ||
CONFIG_DNS_NUM_CONCUR_QUERIES=1 | ||
CONFIG_NET_LOG=y | ||
CONFIG_NET_MGMT=y | ||
CONFIG_NET_MGMT_EVENT=y | ||
CONFIG_NET_MGMT_EVENT_STACK_SIZE=768 | ||
CONFIG_NET_MGMT_EVENT_THREAD_PRIO=7 | ||
CONFIG_NET_MGMT_EVENT_QUEUE_SIZE=2 | ||
CONFIG_NET_IPV4=y | ||
CONFIG_NET_IPV6=y | ||
CONFIG_NET_ARP=n | ||
CONFIG_PRINTK=y | ||
CONFIG_ZTEST=y | ||
CONFIG_MAIN_STACK_SIZE=1344 |
Oops, something went wrong.