Add Multipath TCP
[platform/core/connectivity/net-config.git] / src / main.c
index c19c3b1..107c9d0 100755 (executable)
@@ -32,6 +32,7 @@
 #include "wifi-agent.h"
 #include "wifi-power.h"
 #include "vpnsvc.h"
+#include "mptcp.h"
 #include "network-clock.h"
 #include "network-dpm.h"
 #include "network-state.h"
@@ -58,6 +59,7 @@ void _got_name_cb(void)
        state_object_create_and_init();
        statistics_object_create_and_init();
        vpnsvc_create_and_init();
+       mptcp_object_create_and_init();
 
        register_gdbus_signal();
        connman_register_agent();
@@ -73,6 +75,7 @@ static void _objects_deinit(void)
        state_object_deinit();
        statistics_object_deinit();
        vpnsvc_destroy_deinit();
+       mptcp_object_deinit();
 }
 
 int main(int argc, char *argv[])
@@ -132,7 +135,7 @@ int main(int argc, char *argv[])
        if (TIZEN_TV && emulator_is_emulated() == FALSE)
                __netconfig_set_ether_macaddr();
 
-       if (netconfig_check_feature_supported(ETHERNET_FEATURE)) {
+       if (netconfig_check_feature_supported(NETCONFIG_SUPPORTED_FEATURE_ETHERNET)) {
                /* Register the callback to check the ethernet Plug-in /Plug-out Status */
                check_ethernet_monitor_timer = g_timeout_add(ETH_POLLING_TIME,
                                __net_ethernet_cable_status_polling_callback,