gprs: Add support for dual stack contexts

This commit is contained in:
Denis Kenzior 2011-03-09 18:42:35 -06:00
parent 9a4122f74b
commit 91a9425f21
1 changed files with 5 additions and 0 deletions

View File

@ -227,6 +227,8 @@ static const char *gprs_proto_to_string(enum ofono_gprs_proto proto)
return "ip";
case OFONO_GPRS_PROTO_IPV6:
return "ipv6";
case OFONO_GPRS_PROTO_IPV4V6:
return "dual";
};
return NULL;
@ -241,6 +243,9 @@ static gboolean gprs_proto_from_string(const char *str,
} else if (g_str_equal(str, "ipv6")) {
*proto = OFONO_GPRS_PROTO_IPV6;
return TRUE;
} else if (g_str_equal(str, "dual")) {
*proto = OFONO_GPRS_PROTO_IPV4V6;
return TRUE;
}
return FALSE;