Skip to content

Commit

Permalink
Merge pull request ARMmbed#2007 from ARMmbed/ws_mpl_fix
Browse files Browse the repository at this point in the history
MPL SEED ID compres disable for wi-sun.
  • Loading branch information
Juha Heiskanen committed Mar 13, 2019
2 parents 17e27a4 + 7b7e67c commit e921dcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/MPL/mpl.c
Expand Up @@ -33,6 +33,7 @@
#include "Service_Libs/Trickle/trickle.h"
#include "6LoWPAN/MAC/mac_helper.h"
#include "6LoWPAN/Thread/thread_common.h"
#include "6LoWPAN/ws/ws_common.h"
#include "MPL/mpl.h"

#define TRACE_GROUP "mpl"
Expand Down Expand Up @@ -1105,7 +1106,8 @@ static buffer_t *mpl_exthdr_provider(buffer_t *buf, ipv6_exthdr_stage_t stage, i

/* "Compress" seed ID if it's the IPv6 source address */
/* (For Thread, also compress if source is the 16-bit address) */
if (seed_id_len == 16 && addr_ipv6_equal(seed_id, buf->src_sa.address)) {
/* (For Wi-sun, not support seed id address compression */
if (!ws_info(buf->interface) && seed_id_len == 16 && addr_ipv6_equal(seed_id, buf->src_sa.address)) {
seed_id_len = 0;
} else if (seed_id_len == 2 && thread_addr_is_mesh_local_16(buf->src_sa.address, buf->interface) &&
seed_id[0] == buf->src_sa.address[14] && seed_id[1] == buf->src_sa.address[15]) {
Expand Down

0 comments on commit e921dcd

Please sign in to comment.