-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xbee: make address length configurable #3158
Conversation
@@ -104,6 +117,7 @@ typedef struct { | |||
gpio_t sleep_pin; /**< GPIO pin connected to SLEEP */ | |||
ng_nettype_t proto; /**< protocol the interface speaks */ | |||
uint8_t options; /**< options field */ | |||
uint8_t addr_flags; /**< address flags as defined above */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you introduce a new flag? Just use one bit of the options flag (thats what it is for...).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure if these were not device dependent, since they are added to the tx-buffer in https://github.com/authmillenon/RIOT/blob/xbee/enh/addr-len/drivers/xbee/xbee.c#L553
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, forget what I said..
If you test this and say its working I will give my ACK. |
Works:
|
6LoWPAN-ND states [1] that the IPv6 address should be generated from the EUI-64 of the interface, since it can be assumed as globally unique and would not require duplicate address detection. Currently the xbee module is not able to use any other address for short address with IPv6 since NETCONF_OPT_SRC_LEN always returns 2. This patch fixes that. [1] https://tools.ietf.org/html/rfc6775#section-5.2
069247c
to
f4392f7
Compare
Accidentally amended fix ( |
ACK when Travis is happy. |
and go. |
xbee: make address length configurable
6LoWPAN-ND states [1] that the IPv6 address should be generated from the EUI-64 of the interface, since it can be assumed as globally unique and would not require duplicate address detection. Currently the xbee module is not able to use any other address for short address with IPv6 since
NETCONF_OPT_SRC_LEN always returns 2. This patch fixes that.
[1] https://tools.ietf.org/html/rfc6775#section-5.2