ipconfig: Have separate callbacks for route changes.
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 3 Jan 2012 12:36:26 +0000 (14:36 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 5 Jan 2012 10:09:16 +0000 (11:09 +0100)
commitfc3d4097fcdbbcc6ca870ed24fec47bfb15ad90a
treea5c67ed314738ce1c385cd39a4b8a7edbad23057
parent86adee5b6fa2ee97ff28d412a620dc3028a209e0
ipconfig: Have separate callbacks for route changes.

Route changes should not trigger ip_bound or ip_release callbacks
in service.c as that can cause too early transition into IPv6 ready state.
The ip_bound (in __connman_ipconfig_newaddr()) and ip_release (in
__connman_ipconfig_deladdr()) are enough to trigger a transition
in IPv6 state.

This also prevents too many notifier calls in session as we only
notify session when address changes.
include/ipconfig.h
src/ipconfig.c