diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-14 13:10:45 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-14 13:10:45 -0500 |
commit | 962d2fff509e251ae715875e89e5a080a37ab588 (patch) | |
tree | 2938bc889356ffc8a20a611d18c851a83137d731 /src/stkutil.h | |
parent | f86c13ce8bd07025f98e0c7982ec4d3ccb0ecb62 (diff) | |
download | ofono-962d2fff509e251ae715875e89e5a080a37ab588.tar.bz2 |
Fix: Use a union for other address objects
Diffstat (limited to 'src/stkutil.h')
-rw-r--r-- | src/stkutil.h | 6 |
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; }; |