File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
components/mdns/test_afl_fuzz_host Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 284
284
#define CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED 1
285
285
#define CONFIG_MBEDTLS_ECP_NIST_OPTIM 1
286
286
#define CONFIG_MDNS_MAX_SERVICES 25
287
+ #define CONFIG_MDNS_MAX_INTERFACES 3
287
288
#define CONFIG_MDNS_TASK_PRIORITY 1
288
289
#define CONFIG_MDNS_TASK_STACK_SIZE 4096
289
290
#define CONFIG_MDNS_TASK_AFFINITY_CPU0 1
Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ extern mdns_server_t * _mdns_server;
34
34
// mdns function wrappers for mdns setup in test mode
35
35
static int mdns_test_hostname_set (const char * mdns_hostname )
36
36
{
37
- _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
38
- _mdns_server -> interfaces [MDNS_IF_STA ].pcbs [MDNS_IP_PROTOCOL_V6 ].state = PCB_RUNNING ;
37
+ for (int i = 0 ; i < MDNS_MAX_INTERFACES ; i ++ ) {
38
+ _mdns_server -> interfaces [i ].pcbs [MDNS_IP_PROTOCOL_V4 ].state = PCB_RUNNING ; // mark the PCB running to exercise mdns in fully operational mode
39
+ _mdns_server -> interfaces [i ].pcbs [MDNS_IP_PROTOCOL_V6 ].state = PCB_RUNNING ;
40
+ }
39
41
int ret = mdns_hostname_set (mdns_hostname );
40
42
mdns_action_t * a = NULL ;
41
43
GetLastItem (& a );
You can’t perform that action at this time.
0 commit comments