Skip to content

gnrc_ipv6_nib: Allow l2addr == NULL for gnrc_ipv6_nib_nc_set()#8179

Merged
smlng merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_ipv6_nib/api/NULL-l2addr
Nov 29, 2017
Merged

gnrc_ipv6_nib: Allow l2addr == NULL for gnrc_ipv6_nib_nc_set()#8179
smlng merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_ipv6_nib/api/NULL-l2addr

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Nov 29, 2017

Link-layer addresses are allowed to be NULL (e.g. for SLIP), so this PR fixes that for the NIB-NC API.

@miri64 miri64 added Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) GNRC Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 29, 2017
@bergzand
Copy link
Copy Markdown
Member

For what reason would a protocol (SLIP), that doesn't need link layer addresses, need the neighbor cache for?

@smlng
Copy link
Copy Markdown
Member

smlng commented Nov 29, 2017

🤔

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Nov 29, 2017

To allow for the right interface to be identified in a multi-interface scenario e.g..

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Nov 29, 2017

Anyhow... The shell command allows for it, the NIB internals allow for it (where it makes even more sense to have no L2 address for INCOMPLETE state e.g.), just this single assert (and the missing check before the memcpy()) put a damper on NIB-NC.

@bergzand
Copy link
Copy Markdown
Member

Thanks for the explanation, the situation makes sense :)

Copy link
Copy Markdown
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested ACK

@smlng smlng merged commit 8f7de7c into RIOT-OS:master Nov 29, 2017
@miri64 miri64 deleted the gnrc_ipv6_nib/api/NULL-l2addr branch November 29, 2017 20:51
@aabadie aabadie added this to the Release 2018.01 milestone Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants