Skip to content

gnrc_sock: imply end-point netif only if unset#16643

Merged
MrKevinWeiss merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_sock/fix/imply-only-unset-netif
Jul 14, 2021
Merged

gnrc_sock: imply end-point netif only if unset#16643
MrKevinWeiss merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_sock/fix/imply-only-unset-netif

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Jul 14, 2021

Contribution description

Found this while testing #16606: When using the gnrc_netif_single optimization module gnrc_sock basically accepts any netif value in the gnrc_sock*_ep_t structs, as it is just overwritten with the ID only existing network interface. While this seems like a nice extra from a shell user perspective, I wouldn't call this behavior valid and it also might cause some faulty behavior if e.g. invalid interface IDs are received from the network (as might be the case with DHCPv6's Interface ID option #16606).

Testing procedure

The following tests should still pass:

  • tests/gnrc_sock_udp
  • tests/gnrc_sock_ip

Issues/PRs references

None

@miri64 miri64 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) 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: needs backport Integration Process: The PR is required to be backported to a release or feature branch CI: run tests If set, CI server will run tests on hardware for the labeled PR labels Jul 14, 2021
@miri64 miri64 added this to the Release 2021.07 milestone Jul 14, 2021
@miri64 miri64 requested review from MrKevinWeiss and jia200x July 14, 2021 08:37
@github-actions github-actions bot added the Area: sys Area: System label Jul 14, 2021
Copy link
Copy Markdown
Contributor

@MrKevinWeiss MrKevinWeiss left a comment

Choose a reason for hiding this comment

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

Looks good and test passes (with Murdock HiL). ACK

@MrKevinWeiss MrKevinWeiss merged commit 62ac6fb into RIOT-OS:master Jul 14, 2021
@miri64 miri64 deleted the gnrc_sock/fix/imply-only-unset-netif branch July 14, 2021 12:17
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 14, 2021

Backport provided in #16647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: run tests If set, CI server will run tests on hardware for the labeled PR Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch 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.

3 participants