Added check to make sure default interface is always first in list.
authorMandeep Shetty <mandeep.shetty@intel.com>
Mon, 11 May 2015 18:17:08 +0000 (11:17 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 12 May 2015 17:30:01 +0000 (17:30 +0000)
commit53e416fb253a87df4eeab7bec0b92f1b1b45e5e0
tree5a1e019eed305cd6ac58483b6cf29db9a436b37c
parent769bf8a256e17255c032eaa22868691f76df2ea9
Added check to make sure default interface is always first in list.

This changeset ensures the default interface, if present, is always
first in the interface list. This addresses spec compliance for section
7.1.4.2.3.
Also added unit tests to test changes made in this changeset and to test
for duplicate interfaces.

Change-Id: Iccfbb297c1745a86ce2cb0010f5b24519d567658
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/954
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocstack.c
resource/csdk/stack/test/stacktests.cpp