Skip to content

Commit b2568a3

Browse files
committed
fix(eppp): Fix stack-overflow in ping task for TUN netif
Closes #867
1 parent 58a21e3 commit b2568a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/eppp_link/eppp_netif_tun.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ esp_err_t eppp_check_connection(esp_netif_t *netif)
167167
{
168168
esp_err_t ret = ESP_OK;
169169
esp_ping_config_t config = ESP_PING_DEFAULT_CONFIG();
170+
#if CONFIG_LOG_MAXIMUM_LEVEL > 3
171+
config.task_stack_size += 1024; // Some additional stack needed for verbose logs
172+
#endif
170173
config.count = 100;
171174
ESP_LOGI(TAG, "Checking connection on EPPP interface #%" PRIu32, config.interface);
172175
ip_addr_t target_addr = {0};

0 commit comments

Comments
 (0)