Răsfoiți Sursa

Rename VERB_CMA to the more descriptive VERB_PHYSICAL_ADDRESS_PUSH

Adam Ierymenko 10 ani în urmă
părinte
comite
0cbbcf2884
2 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 1 1
      node/Packet.cpp
  2. 4 4
      node/Packet.hpp

+ 1 - 1
node/Packet.cpp

@@ -51,7 +51,7 @@ const char *Packet::verbString(Verb v)
 		case VERB_MULTICAST_GATHER: return "MULTICAST_GATHER";
 		case VERB_MULTICAST_FRAME: return "MULTICAST_FRAME";
 		case VERB_SET_EPHEMERAL_KEY: return "SET_EPHEMERAL_KEY";
-		case VERB_CMA: return "CMA";
+		case VERB_PHYSICAL_ADDRESS_PUSH: return "PHYSICAL_ADDRESS_PUSH";
 	}
 	return "(unknown)";
 }

+ 4 - 4
node/Packet.hpp

@@ -825,7 +825,7 @@ public:
 		 */
 		VERB_SET_EPHEMERAL_KEY = 15,
 
-		/* "Call me at" -- push of potential endpoints for direct communication:
+		/* Push of potential endpoints for direct communication:
 		 *   <[1] flags>
 		 *   <[2] number of addresses>
 		 *   <[...] address types and addresses>
@@ -833,14 +833,14 @@ public:
 		 * Address types and addresses are of the same format as the destination
 		 * address type and address in HELLO.
 		 *
-		 * The receiver may, upon receiving a CMA push, attempt to establish a
+		 * The receiver may, upon receiving a push, attempt to establish a
 		 * direct link to one or more of the indicated addresses. Senders should
-		 * only send CMA pushes to peers that they have some relationship
+		 * only send address pushes to peers that they have some relationship
 		 * with such as a shared network membership or a mutual trust.
 		 *
 		 * OK/ERROR are not generated.
 		 */
-		VERB_CMA = 16
+		VERB_PHYSICAL_ADDRESS_PUSH = 16
 	};
 
 	/**