Skip to content

Commit

Permalink
Revert "ESP32: Drop Invalid RA packets (project-chip#33060) (project-…
Browse files Browse the repository at this point in the history
…chip#33104)"

This reverts commit 4431f18.

Signed-off-by: Adrian Gielniewski <[email protected]>
  • Loading branch information
adigie committed Nov 28, 2024
1 parent b059c10 commit 1ea6591
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/platform/ESP32/route_hook/ESP32RouteHook.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ static void ra_recv_handler(struct netif * netif, const uint8_t * icmp_payload,
{
uint8_t opt_type = icmp_payload[0];
uint8_t opt_len = (uint8_t) (icmp_payload[1] << 3);
if (opt_len == 0 || opt_len > payload_len)
{
ESP_LOGE(TAG, "Invalid ND6 option length");
break;
}

if (opt_type == ND6_OPTION_TYPE_ROUTE_INFO && opt_len >= sizeof(route_option_t) - sizeof(ip6_addr_p_t) &&
!is_self_address(netif, src_addr) && payload_len >= opt_len)
Expand Down

0 comments on commit 1ea6591

Please sign in to comment.