From 72fffdeff226a7ded9867f90e99ebb83f3545a1b Mon Sep 17 00:00:00 2001 From: Robert Quattlebaum Date: Mon, 24 Oct 2016 14:56:01 -0700 Subject: [PATCH] ncp: Allow underspecification of remove command for IPV6_ADDRESS_TABLE. (#875) For removal operations, Spinel allows you to underspecify the entry in question by omitting any fields after the "key" field, since they would be ignored anyway. Without this change, underspecified IPV6 address removals will fail. --- src/ncp/ncp_base.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ncp/ncp_base.cpp b/src/ncp/ncp_base.cpp index 86d7be69a..dfdc5b0bf 100644 --- a/src/ncp/ncp_base.cpp +++ b/src/ncp/ncp_base.cpp @@ -4575,11 +4575,8 @@ ThreadError NcpBase::RemovePropertyHandler_IPV6_ADDRESS_TABLE(uint8_t header, sp parsedLength = spinel_datatype_unpack( value_ptr, value_len, - "6CLL", - &addr_ptr, - NULL, - NULL, - NULL + "6", + &addr_ptr ); if (parsedLength > 0)