summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-01-28 11:02:31 +0200
committerAlon Levy <alevy@redhat.com>2011-02-03 16:54:23 +0200
commit209ef9cd5c77be2ac990c450364f30ef2b55bdec (patch)
treee41f0d784495ad830ecd232102dc59f2c3807a3c
parentf1d3294fd3ca5f21693d7389238ab5484f329628 (diff)
vscard_common: VSCMsgReconnect stringified
Keep host and port as a pair of strings, instead of two uint32_t, for IPv6 and IPv4 support, and possible string service name instead of port.
-rw-r--r--vscard_common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/vscard_common.h b/vscard_common.h
index a1af430..b092980 100644
--- a/vscard_common.h
+++ b/vscard_common.h
@@ -124,10 +124,12 @@ typedef struct VSCMsgAPDU {
} VSCMsgAPDU;
/* VSCMsgReconnect Host -> Client
+ * Contains new host address as two strings for IPv4 and
+ * IPv6 support.
* */
typedef struct VSCMsgReconnect {
- uint32_t ip;
- uint16_t port;
+ char host[128];
+ char port[128];
} VSCMsgReconnect;
#endif // VSCARD_COMMON_H