summaryrefslogtreecommitdiffstats
path: root/src/stkutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stkutil.h')
-rw-r--r--src/stkutil.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stkutil.h b/src/stkutil.h
index 08110484..1c05440f 100644
--- a/src/stkutil.h
+++ b/src/stkutil.h
@@ -562,7 +562,11 @@ struct stk_card_reader_id {
* So the maximum size is 16 (for ipv6).
*/
struct stk_other_address {
- unsigned char addr[16];
+ union {
+ /* Network Byte Order */
+ unsigned int ipv4;
+ unsigned char ipv6[16];
+ } addr;
unsigned char type;
};