summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gprs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gprs.c b/src/gprs.c
index 2b0887f0..ba22374e 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -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;