summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2013-05-31 07:13:35 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-31 11:43:19 (GMT)
commit2ffa1d665f4a279c8a97264daf6568cf1d13cb95 (patch)
treea3f8ab3346c7085fb25bbcff6663fd15297f4bc2 /src
parent9c5cb53a5d85f9416bbbe4ebdc350474f61274b7 (diff)
downloadconnman-2ffa1d665f4a279c8a97264daf6568cf1d13cb95.zip
connman-2ffa1d665f4a279c8a97264daf6568cf1d13cb95.tar.gz
connman-2ffa1d665f4a279c8a97264daf6568cf1d13cb95.tar.bz2
session: Add session identification method to config
The session core needs to the know which kind of session identification method has been selected in the plugin in order to use the right iptables rules etc.
Diffstat (limited to 'src')
-rw-r--r--src/session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 236c599..bdb22d0 100644
--- a/src/session.c
+++ b/src/session.c
@@ -414,6 +414,10 @@ void connman_session_policy_unregister(struct connman_session_policy *policy)
void connman_session_set_default_config(struct connman_session_config *config)
{
+ config->id_type = CONNMAN_SESSION_ID_TYPE_UNKNOWN;
+ g_free(config->id);
+ config->id = NULL;
+
config->priority = FALSE;
config->roaming_policy = CONNMAN_SESSION_ROAMING_POLICY_DEFAULT;
config->type = CONNMAN_SESSION_TYPE_ANY;