From cfef114c31f4edfa55d9c36eabd3fd319a94d307 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sat, 6 Jul 2013 13:34:35 -0400 Subject: Possible fix for issue #4 - segfault in ___removeIp helper function in EthernetTap on OSX -- I think the problem may have been that I was using set::erase(key) while also using an iterator, so now it uses erase(iterator). See if it happens again, cause I could not duplicate the issue. Possible minor difference in STL version. --- node/Packet.hpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'node/Packet.hpp') diff --git a/node/Packet.hpp b/node/Packet.hpp index 3fade674..f8f340b8 100644 --- a/node/Packet.hpp +++ b/node/Packet.hpp @@ -333,40 +333,40 @@ public: VERB_NOP = 0, /* Announcement of a node's existence: - * <[1] protocol version> + * <[1] protocol version> * <[1] software major version> * <[1] software minor version> * <[2] software revision> - * <[8] timestamp (ms since epoch)> - * <[...] binary serialized identity (see Identity)> + * <[8] timestamp (ms since epoch)> + * <[...] binary serialized identity (see Identity)> * * OK payload: - * <[8] timestamp (echoed from original HELLO)> + * <[8] timestamp (echoed from original HELLO)> * * ERROR has no payload. */ VERB_HELLO = 1, /* Error response: - * <[1] in-re verb> - * <[8] in-re packet ID> - * <[1] error code> - * <[...] error-dependent payload> + * <[1] in-re verb> + * <[8] in-re packet ID> + * <[1] error code> + * <[...] error-dependent payload> */ VERB_ERROR = 2, /* Success response: - * <[1] in-re verb> - * <[8] in-re packet ID> - * <[...] request-specific payload> + * <[1] in-re verb> + * <[8] in-re packet ID> + * <[...] request-specific payload> */ VERB_OK = 3, /* Query an identity by address: - * <[5] address to look up> + * <[5] address to look up> * * OK response payload: - * <[...] binary serialized identity> + * <[...] binary serialized identity> * * Error payload will be address queried. */ @@ -400,8 +400,8 @@ public: /* A ZT-to-ZT unicast ethernet frame: * <[8] 64-bit network ID> - * <[2] 16-bit ethertype> - * <[...] ethernet payload> + * <[2] 16-bit ethertype> + * <[...] ethernet payload> * * MAC addresses are derived from the packet's source and destination * ZeroTier addresses. ZeroTier does not support VLANs or other extensions -- cgit v1.2.3