Use RTM_NEWADDR, RTM_DELADDR to receive info about an IP address.
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Mon, 14 Nov 2016 06:50:36 +0000 (15:50 +0900)
committerPhil Coval <philippe.coval@osg.samsung.com>
Tue, 22 Nov 2016 13:56:04 +0000 (13:56 +0000)
commita5b0636f8bb4b650ffb4f2b6bdb19912a8898b66
treedae0a0e373f5d963eed259abfede5f23cecfcef4
parent4a9e51461f982d2be78b1cfc5b1e655f6be86b22
Use RTM_NEWADDR, RTM_DELADDR to receive info about an IP address.

We use RTM_NEWLINK multicast group mask to receive information about
a created or removed network interface. and If a specific network
interface is added, we call getifaddrs() to get an IP address
associated with an interface. but it is more correct to use
RTM_NEWADDR, RTM_DELADDR to detect IP address changes.

Change-Id: I9389cac95473583a015dd4d40489943dc856e0fd
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14529
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: byonggon chun <bg.chun@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
resource/csdk/connectivity/src/ip_adapter/caipserver.c
resource/csdk/connectivity/src/ip_adapter/linux/caipnwmonitor.c