Skip to content

gnrc_sock: imply end-point netif only if unset [backport 2021.07]#16647

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

gnrc_sock: imply end-point netif only if unset [backport 2021.07]#16647
MrKevinWeiss merged 1 commit intoRIOT-OS:2021.07-branchfrom
miri64:backport/2021.07/gnrc_sock/fix/imply-only-unset-netif

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Jul 14, 2021

Backport of #16643

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 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: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Jul 14, 2021
@miri64 miri64 requested a review from MrKevinWeiss July 14, 2021 12:18
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.

Ack, just waiting for murdock.

@MrKevinWeiss MrKevinWeiss merged commit 60364b2 into RIOT-OS:2021.07-branch Jul 14, 2021
@miri64 miri64 deleted the backport/2021.07/gnrc_sock/fix/imply-only-unset-netif branch July 14, 2021 16:39
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: release backport Integration Process: The PR is a release backport of a change previously provided to master 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.

2 participants