[IOT-2537] Filter eps returned from RD queries. 03/21603/6
authorTodd Malsbary <todd.malsbary@intel.com>
Wed, 19 Jul 2017 23:07:54 +0000 (16:07 -0700)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Sat, 19 Aug 2017 02:13:45 +0000 (02:13 +0000)
commit60c237df178b3fb031ea27e2b8b2ed1b74636db5
tree9500beb3fc442c166e23e057093ec686a04e05d6
parent0c7d2e6e04b1b4deddba9fa432ca0be9adc9e1a6
[IOT-2537] Filter eps returned from RD queries.

When resources in the RD are hosted on the same host as the RD server,
the eps returned in the /oic/res response may be filtered identically
to resources hosted by the RD server itself.  This ensures the
response from either the RD or the publishing device is identical.

Bug: https://jira.iotivity.org/browse/IOT-2537
Change-Id: I655fce9919e09305d1a09f2b6a286427e302e606
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21603
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/resource-directory/include/rd_database.h
resource/csdk/resource-directory/src/internal/rd_database.c
resource/csdk/resource-directory/src/rd_server.c
resource/csdk/stack/include/ocstack.h
resource/csdk/stack/src/ocresource.c
resource/csdk/stack/src/oicresourcedirectory.c