[riot-notifications] [RIOT] Rpl: Invalid padding in DIS (#3794)

DipSwitch notifications at github.com
Mon Sep 7 23:07:32 CEST 2015

The padding on de DIS packet is invalid according to the RFC.

Section 6.7.2 - RFC 6550:
The Pad1 option is used to insert a single octet of padding into the    message to enable options alignment.  If more than one octet of    padding is required, the PadN option should be used rather than    multiple Pad1 options.

So instead of 'memset(dis+1, 0, 4)' you must use the sequence '0x01, 0x02, 0x00, 0x00'

I'll create a PR tomorrow :)

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150907/2568a081/attachment.html>

More information about the notifications mailing list