Skip to content

gnrc_netdev2: do not override res for for ieee802154#5096

Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_netdev2_ieee802154/fix/dont-override-len
Mar 17, 2016
Merged

gnrc_netdev2: do not override res for for ieee802154#5096
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_netdev2_ieee802154/fix/dont-override-len

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Mar 16, 2016

res is used to set the frame header iovec's length afterwards so overriding it with a negative number is kind of a bad idea ;-).

Provides fix for #4646 (comment) when merged into #4646.

`res` is used to set the frame header iovec's length afterwards so overriding
it with a negative number is kind of a bad idea ;-).
@miri64 miri64 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: network Area: Networking GNRC labels Mar 16, 2016
@miri64 miri64 added this to the Release 2016.04 milestone Mar 16, 2016
@miri64 miri64 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 16, 2016
@@ -201,6 +200,9 @@ static int _send(gnrc_netdev2_t *gnrc_netdev2, gnrc_pktsnip_t *pkt)
vector[0].iov_len = (size_t)res;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is the line I'm talking about in the description ;-)

@zhuoshuguo
Copy link
Copy Markdown
Contributor

Got it, will test again~ :-)

@zhuoshuguo
Copy link
Copy Markdown
Contributor

Tested and ACK.

@zhuoshuguo
Copy link
Copy Markdown
Contributor

Bug fixed, it is now normal for sending packets.

miri64 added a commit that referenced this pull request Mar 17, 2016
…x/dont-override-len

gnrc_netdev2: do not override res for for ieee802154
@miri64 miri64 merged commit e7cfee8 into RIOT-OS:master Mar 17, 2016
@miri64 miri64 deleted the gnrc_netdev2_ieee802154/fix/dont-override-len branch March 17, 2016 16:20
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 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