Skip to content

Commit

Permalink
fucked networking
Browse files Browse the repository at this point in the history
  • Loading branch information
indexds committed Jan 18, 2025
1 parent aac034f commit 939db40
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 90 deletions.
6 changes: 3 additions & 3 deletions partitions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
nvs, data, nvs, 0x12000, 0x4000,
nvs_keys, data, nvs_keys, 0x17000, 0x1000,
otadata, data, ota, 0x18000, 0x2000,
factory, app, factory, 0x20000, 1M,
ota_0, app, ota_0, , 1M,
ota_1, app, ota_1, , 1M,
factory, app, factory, 0x20000, 2M,
# ota_0, app, ota_0, , 1M,
# ota_1, app, ota_1, , 1M,
62 changes: 27 additions & 35 deletions sdkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -692,17 +692,15 @@ CONFIG_ETH_TRANSMIT_MUTEX=y
# Event Loop Library
#
# CONFIG_ESP_EVENT_LOOP_PROFILING is not set
CONFIG_ESP_EVENT_POST_FROM_ISR=y
CONFIG_ESP_EVENT_POST_FROM_IRAM_ISR=y
# CONFIG_ESP_EVENT_POST_FROM_ISR is not set
# end of Event Loop Library

#
# GDB Stub
#
CONFIG_ESP_GDBSTUB_ENABLED=y
# CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME is not set
CONFIG_ESP_GDBSTUB_SUPPORT_TASKS=y
CONFIG_ESP_GDBSTUB_MAX_TASKS=32
# CONFIG_ESP_GDBSTUB_SUPPORT_TASKS is not set
# end of GDB Stub

#
Expand Down Expand Up @@ -1135,12 +1133,12 @@ CONFIG_FREERTOS_TASK_NOTIFICATION_ARRAY_ENTRIES=1
# Port
#
# CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK is not set
CONFIG_FREERTOS_TLSP_DELETION_CALLBACKS=y
# CONFIG_FREERTOS_TLSP_DELETION_CALLBACKS is not set
# CONFIG_FREERTOS_TASK_PRE_DELETION_HOOK is not set
# CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP is not set
CONFIG_FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER=y
CONFIG_FREERTOS_ISR_STACKSIZE=1536
CONFIG_FREERTOS_INTERRUPT_BACKTRACE=y
# CONFIG_FREERTOS_INTERRUPT_BACKTRACE is not set
# CONFIG_FREERTOS_FPU_IN_ISR is not set
CONFIG_FREERTOS_TICK_SUPPORT_CORETIMER=y
CONFIG_FREERTOS_CORETIMER_0=y
Expand Down Expand Up @@ -1227,8 +1225,8 @@ CONFIG_LWIP_SO_REUSE=y
CONFIG_LWIP_SO_RCVBUF=y
CONFIG_LWIP_NETBUF_RECVINFO=y
CONFIG_LWIP_IP_DEFAULT_TTL=64
CONFIG_LWIP_IP4_FRAG=y
CONFIG_LWIP_IP4_REASSEMBLY=y
# CONFIG_LWIP_IP4_FRAG is not set
# CONFIG_LWIP_IP4_REASSEMBLY is not set
CONFIG_LWIP_IP_REASS_MAX_PBUFS=10
CONFIG_LWIP_IP_FORWARD=y
# CONFIG_LWIP_IPV4_NAPT is not set
Expand All @@ -1248,7 +1246,7 @@ CONFIG_LWIP_DHCP_COARSE_TIMER_SECS=5
#
CONFIG_LWIP_DHCPS=y
CONFIG_LWIP_DHCPS_LEASE_UNIT=3600
CONFIG_LWIP_DHCPS_MAX_STATION_NUM=5
CONFIG_LWIP_DHCPS_MAX_STATION_NUM=2
CONFIG_LWIP_DHCPS_STATIC_ENTRIES=y
# end of DHCP server

Expand Down Expand Up @@ -1305,7 +1303,16 @@ CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=24576
CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0=y
# CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU1 is not set
CONFIG_LWIP_TCPIP_TASK_AFFINITY=0x0
# CONFIG_LWIP_PPP_SUPPORT is not set
CONFIG_LWIP_PPP_SUPPORT=y
# CONFIG_LWIP_PPP_NOTIFY_PHASE_SUPPORT is not set
# CONFIG_LWIP_PPP_PAP_SUPPORT is not set
# CONFIG_LWIP_PPP_CHAP_SUPPORT is not set
# CONFIG_LWIP_PPP_MSCHAP_SUPPORT is not set
# CONFIG_LWIP_PPP_MPPE_SUPPORT is not set
# CONFIG_LWIP_PPP_SERVER_SUPPORT is not set
# CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION is not set
# CONFIG_LWIP_ENABLE_LCP_ECHO is not set
# CONFIG_LWIP_PPP_DEBUG_ON is not set
# CONFIG_LWIP_SLIP_SUPPORT is not set

#
Expand Down Expand Up @@ -1353,26 +1360,7 @@ CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_NONE=y
# CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_CUSTOM is not set
# end of Hooks

CONFIG_LWIP_DEBUG=y
CONFIG_LWIP_DEBUG_ESP_LOG=y
# CONFIG_LWIP_NETIF_DEBUG is not set
# CONFIG_LWIP_PBUF_DEBUG is not set
# CONFIG_LWIP_ETHARP_DEBUG is not set
# CONFIG_LWIP_API_LIB_DEBUG is not set
# CONFIG_LWIP_SOCKETS_DEBUG is not set
CONFIG_LWIP_IP_DEBUG=y
# CONFIG_LWIP_ICMP_DEBUG is not set
# CONFIG_LWIP_DHCP_STATE_DEBUG is not set
# CONFIG_LWIP_DHCP_DEBUG is not set
# CONFIG_LWIP_IP6_DEBUG is not set
# CONFIG_LWIP_ICMP6_DEBUG is not set
# CONFIG_LWIP_TCP_DEBUG is not set
# CONFIG_LWIP_UDP_DEBUG is not set
# CONFIG_LWIP_SNTP_DEBUG is not set
# CONFIG_LWIP_DNS_DEBUG is not set
# CONFIG_LWIP_BRIDGEIF_DEBUG is not set
# CONFIG_LWIP_BRIDGEIF_FDB_DEBUG is not set
# CONFIG_LWIP_BRIDGEIF_FW_DEBUG is not set
# CONFIG_LWIP_DEBUG is not set
# end of LWIP

#
Expand Down Expand Up @@ -1754,10 +1742,8 @@ CONFIG_ESP32_APPTRACE_LOCK_ENABLE=y
CONFIG_ADC2_DISABLE_DAC=y
# CONFIG_MCPWM_ISR_IN_IRAM is not set
# CONFIG_EVENT_LOOP_PROFILING is not set
CONFIG_POST_EVENTS_FROM_ISR=y
CONFIG_POST_EVENTS_FROM_IRAM_ISR=y
CONFIG_GDBSTUB_SUPPORT_TASKS=y
CONFIG_GDBSTUB_MAX_TASKS=32
# CONFIG_POST_EVENTS_FROM_ISR is not set
# CONFIG_GDBSTUB_SUPPORT_TASKS is not set
CONFIG_OTA_ALLOW_HTTP=y
# CONFIG_TWO_UNIVERSAL_MAC_ADDRESS is not set
CONFIG_FOUR_UNIVERSAL_MAC_ADDRESS=y
Expand Down Expand Up @@ -1880,7 +1866,13 @@ CONFIG_TCPIP_TASK_STACK_SIZE=24576
CONFIG_TCPIP_TASK_AFFINITY_CPU0=y
# CONFIG_TCPIP_TASK_AFFINITY_CPU1 is not set
CONFIG_TCPIP_TASK_AFFINITY=0x0
# CONFIG_PPP_SUPPORT is not set
CONFIG_PPP_SUPPORT=y
# CONFIG_PPP_NOTIFY_PHASE_SUPPORT is not set
# CONFIG_PPP_PAP_SUPPORT is not set
# CONFIG_PPP_CHAP_SUPPORT is not set
# CONFIG_PPP_MSCHAP_SUPPORT is not set
# CONFIG_PPP_MPPE_SUPPORT is not set
# CONFIG_PPP_DEBUG_ON is not set
CONFIG_ESP32_TIME_SYSCALL_USE_RTC_HRT=y
CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1=y
# CONFIG_ESP32_TIME_SYSCALL_USE_RTC is not set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ static esp_err_t esp_wireguard_netif_create(const wireguard_config_t *config)
/* Mark the interface as administratively up, link up flag is set
* automatically when peer connects
*/

netif_set_up(wg_netif);
netif_set_up(wg_netif);
err = ESP_OK;
fail:
return err;
Expand Down
Loading

0 comments on commit 939db40

Please sign in to comment.