summaryrefslogtreecommitdiffstats
path: root/src/stkutil.h
diff options
context:
space:
mode:
authorYang Gu <yang.gu@intel.com>2010-04-06 18:06:47 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-04-14 12:57:28 -0500
commitf86c13ce8bd07025f98e0c7982ec4d3ccb0ecb62 (patch)
treebaac2334c0ecdca8cac948576ca4102e7eb60671 /src/stkutil.h
parentdb1e61cf3ce47aa4a53f9db4b346aa3bdd43884e (diff)
downloadofono-f86c13ce8bd07025f98e0c7982ec4d3ccb0ecb62.tar.bz2
Add parser for other address objects
Diffstat (limited to 'src/stkutil.h')
-rw-r--r--src/stkutil.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/stkutil.h b/src/stkutil.h
index 511b912f..08110484 100644
--- a/src/stkutil.h
+++ b/src/stkutil.h
@@ -332,6 +332,11 @@ enum stk_bearer_type {
STK_BEARER_TYPE_USB = 0x10
};
+enum stk_address_type {
+ STK_ADDRESS_IPV4 = 0x21,
+ STK_ADDRESS_IPV6 = 0x57
+};
+
/* For data object that only has a byte array with undetermined length */
struct stk_common_byte_array {
unsigned char *array;
@@ -553,6 +558,15 @@ struct stk_card_reader_id {
};
/*
+ * According to 102.223 Section 8.58 the address can be either ipv4 or ipv6.
+ * So the maximum size is 16 (for ipv6).
+ */
+struct stk_other_address {
+ unsigned char addr[16];
+ unsigned char type;
+};
+
+/*
* According to 102.223 Section 8.72 the length of text attribute CTLV is 1
* byte. This means that the maximum size is 127 according to the rules
* of CTLVs. Empty attribute options will have len of 0.