Skip to content
Snippets Groups Projects
Commit 94979362 authored by Martine Lenders's avatar Martine Lenders
Browse files

Merge pull request #3810 from DipSwitch/ndp_fix_pi_opt

ndp: fix NDP PI option length validation and option processing in RTR_ADV msg
parents 639fd006 d7705616
No related branches found
No related tags found
No related merge requests found
...@@ -642,8 +642,8 @@ bool gnrc_ndp_internal_pi_opt_handle(kernel_pid_t iface, uint8_t icmpv6_type, ...@@ -642,8 +642,8 @@ bool gnrc_ndp_internal_pi_opt_handle(kernel_pid_t iface, uint8_t icmpv6_type,
ipv6_addr_t *prefix; ipv6_addr_t *prefix;
gnrc_ipv6_netif_addr_t *netif_addr; gnrc_ipv6_netif_addr_t *netif_addr;
if ((pi_opt->len != NDP_OPT_MTU_LEN)) { if ((pi_opt->len != NDP_OPT_PI_LEN)) {
DEBUG("ndp: invalid MTU option received\n"); DEBUG("ndp: invalid PI option received\n");
return false; return false;
} }
if (icmpv6_type != ICMPV6_RTR_ADV || ipv6_addr_is_link_local(&pi_opt->prefix)) { if (icmpv6_type != ICMPV6_RTR_ADV || ipv6_addr_is_link_local(&pi_opt->prefix)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment