mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-16 12:02:11 +02:00
CI/mdns: Fix fuzzer build
* Original commit: espressif/esp-idf@98e9426b66
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
05675c7d63
commit
4b5f24f5b8
@ -284,6 +284,7 @@
|
|||||||
#define CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED 1
|
#define CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED 1
|
||||||
#define CONFIG_MBEDTLS_ECP_NIST_OPTIM 1
|
#define CONFIG_MBEDTLS_ECP_NIST_OPTIM 1
|
||||||
#define CONFIG_MDNS_MAX_SERVICES 25
|
#define CONFIG_MDNS_MAX_SERVICES 25
|
||||||
|
#define CONFIG_MDNS_MAX_INTERFACES 3
|
||||||
#define CONFIG_MDNS_TASK_PRIORITY 1
|
#define CONFIG_MDNS_TASK_PRIORITY 1
|
||||||
#define CONFIG_MDNS_TASK_STACK_SIZE 4096
|
#define CONFIG_MDNS_TASK_STACK_SIZE 4096
|
||||||
#define CONFIG_MDNS_TASK_AFFINITY_CPU0 1
|
#define CONFIG_MDNS_TASK_AFFINITY_CPU0 1
|
||||||
|
@ -34,8 +34,10 @@ extern mdns_server_t * _mdns_server;
|
|||||||
// mdns function wrappers for mdns setup in test mode
|
// mdns function wrappers for mdns setup in test mode
|
||||||
static int mdns_test_hostname_set(const char * mdns_hostname)
|
static int mdns_test_hostname_set(const char * mdns_hostname)
|
||||||
{
|
{
|
||||||
_mdns_server->interfaces[MDNS_IF_STA].pcbs[MDNS_IP_PROTOCOL_V4].state = PCB_RUNNING; // mark the PCB running to exercise mdns in fully operational mode
|
for (int i=0; i<MDNS_MAX_INTERFACES; i++) {
|
||||||
_mdns_server->interfaces[MDNS_IF_STA].pcbs[MDNS_IP_PROTOCOL_V6].state = PCB_RUNNING;
|
_mdns_server->interfaces[i].pcbs[MDNS_IP_PROTOCOL_V4].state = PCB_RUNNING; // mark the PCB running to exercise mdns in fully operational mode
|
||||||
|
_mdns_server->interfaces[i].pcbs[MDNS_IP_PROTOCOL_V6].state = PCB_RUNNING;
|
||||||
|
}
|
||||||
int ret = mdns_hostname_set(mdns_hostname);
|
int ret = mdns_hostname_set(mdns_hostname);
|
||||||
mdns_action_t * a = NULL;
|
mdns_action_t * a = NULL;
|
||||||
GetLastItem(&a);
|
GetLastItem(&a);
|
||||||
|
Reference in New Issue
Block a user