summaryrefslogtreecommitdiff
path: root/networkAddress.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 15:20:17 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 15:20:17 +0000
commitae3955b4d84c5654e58b95d7475cc4323e156eac (patch)
tree414d4e2f99abf9ac49eaa58489e954bda81cb6c3 /networkAddress.h
parentadded joobla template (diff)
fixed route serialisation
Diffstat (limited to 'networkAddress.h')
-rw-r--r--networkAddress.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/networkAddress.h b/networkAddress.h
index ccc0750..44c5b59 100644
--- a/networkAddress.h
+++ b/networkAddress.h
@@ -79,8 +79,9 @@ private:
void serialize(Archive & ar, const unsigned int version)
{
ar & network_address_type_;
- ar & ipv4_address_;
- ar & ipv6_address_;
+ ar & ipv4_address_.s_addr;
+ for(int i=0;i<4;i++)
+ ar & ipv6_address_.s6_addr32;
ar & ethernet_address_;
}
};