[riot-notifications] [RIOT-OS/RIOT] gnrc_ipv6_nib: fix preparation of delayed NA [backport 2019.01] (#11009)

Martine Lenders notifications at github.com
Tue Feb 12 21:07:04 CET 2019


# Backport of #10985



<!--
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
-->

### Contribution description
Currently the constructed NA for a delayed NA case is neither used nor released nor does it get an IPv6 header to be used properly. This fixes that case.

<!--
Put here the description of your contribution:
- describe which part(s) of RIOT is (are) involved
- if it's a bug fix, describe the bug that it solves and how it is solved
- you can also give more information to reviewers about how to test your changes
-->


### Testing procedure
Since this is currently an edge-case we shouldn't really enter ATM, I fear you have to read and understand the code ... But the test case proposed by @aabadie proposed in https://github.com/RIOT-OS/Release-Specs/issues/98#issuecomment-461587132 might be one to test if together with #10978 this reduces (or even eliminates) the leaks in the packet buffer.
<!--
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output
-->


### Issues/PRs references
I'm still not sure this fixes all leaks (this code shouldn't even be entered since we do not use anycasts addresses at least in the test case these leaks were found), but definitely closes more leaks together with #10978.
<!--
Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
-->

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11009

-- Commit Summary --

  * gnrc_ipv6_nib: fix preparation of delayed NA

-- File Changes --

    M sys/net/gnrc/network_layer/ipv6/nib/nib.c (60)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11009.patch
https://github.com/RIOT-OS/RIOT/pull/11009.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190212/13e4543f/attachment.html>


More information about the notifications mailing list