enum, bearer: added non-ip bearer
This commit is contained in:

committed by
Aleksander Morgado

parent
664610819e
commit
4ab2c80858
@@ -1223,7 +1223,8 @@ typedef enum { /*< underscore_name=mm_bearer_ip_method >*/
|
||||
* @MM_BEARER_IP_FAMILY_IPV4: IPv4.
|
||||
* @MM_BEARER_IP_FAMILY_IPV6: IPv6.
|
||||
* @MM_BEARER_IP_FAMILY_IPV4V6: IPv4 and IPv6.
|
||||
* @MM_BEARER_IP_FAMILY_ANY: Mask specifying all IP families.
|
||||
* @MM_BEARER_IP_FAMILY_NON_IP: Non-IP Bearer. Since 1.20.
|
||||
* @MM_BEARER_IP_FAMILY_ANY: Mask specifying all IP based families.
|
||||
*
|
||||
* Type of IP family to be used in a given Bearer.
|
||||
*
|
||||
@@ -1234,7 +1235,8 @@ typedef enum { /*< underscore_name=mm_bearer_ip_family >*/
|
||||
MM_BEARER_IP_FAMILY_IPV4 = 1 << 0,
|
||||
MM_BEARER_IP_FAMILY_IPV6 = 1 << 1,
|
||||
MM_BEARER_IP_FAMILY_IPV4V6 = 1 << 2,
|
||||
MM_BEARER_IP_FAMILY_ANY = 0xFFFFFFFF
|
||||
MM_BEARER_IP_FAMILY_NON_IP = 1 << 3,
|
||||
MM_BEARER_IP_FAMILY_ANY = 0xFFFFFFF7
|
||||
} MMBearerIpFamily;
|
||||
|
||||
/**
|
||||
|
@@ -1665,6 +1665,7 @@ mm_bearer_ip_family_to_qmi_pdp_type (MMBearerIpFamily ip_family,
|
||||
case MM_BEARER_IP_FAMILY_IPV4V6:
|
||||
*out_pdp_type = QMI_WDS_PDP_TYPE_IPV4_OR_IPV6;
|
||||
return TRUE;
|
||||
case MM_BEARER_IP_FAMILY_NON_IP:
|
||||
case MM_BEARER_IP_FAMILY_NONE:
|
||||
case MM_BEARER_IP_FAMILY_ANY:
|
||||
default:
|
||||
|
@@ -4067,6 +4067,8 @@ mm_3gpp_get_pdp_type_from_ip_family (MMBearerIpFamily family)
|
||||
return "IPV6";
|
||||
case MM_BEARER_IP_FAMILY_IPV4V6:
|
||||
return "IPV4V6";
|
||||
case MM_BEARER_IP_FAMILY_NON_IP:
|
||||
return "Non-IP";
|
||||
case MM_BEARER_IP_FAMILY_NONE:
|
||||
case MM_BEARER_IP_FAMILY_ANY:
|
||||
default:
|
||||
@@ -4087,6 +4089,8 @@ mm_3gpp_get_ip_family_from_pdp_type (const gchar *pdp_type)
|
||||
return MM_BEARER_IP_FAMILY_IPV6;
|
||||
if (g_str_equal (pdp_type, "IPV4V6"))
|
||||
return MM_BEARER_IP_FAMILY_IPV4V6;
|
||||
if (g_str_equal (pdp_type, "Non-IP"))
|
||||
return MM_BEARER_IP_FAMILY_NON_IP;
|
||||
return MM_BEARER_IP_FAMILY_NONE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user