@@ -11,10 +11,10 @@ namespace mesh {
1111#define PH_VER_SHIFT 6
1212#define PH_VER_MASK 0x03 // 2-bits
1313
14- #define ROUTE_TYPE_TRANS_FLOOD 0x00 // flood mode + transport codes
15- #define ROUTE_TYPE_FLOOD 0x01 // flood mode, needs 'path' to be built up (max 64 bytes)
16- #define ROUTE_TYPE_DIRECT 0x02 // direct route, 'path' is supplied
17- #define ROUTE_TYPE_TRANS_DIRECT 0x03 // direct route + transport codes
14+ #define ROUTE_TYPE_TRANSPORT_FLOOD 0x00 // flood mode + transport codes
15+ #define ROUTE_TYPE_FLOOD 0x01 // flood mode, needs 'path' to be built up (max 64 bytes)
16+ #define ROUTE_TYPE_DIRECT 0x02 // direct route, 'path' is supplied
17+ #define ROUTE_TYPE_TRANSPORT_DIRECT 0x03 // direct route + transport codes
1818
1919#define PAYLOAD_TYPE_REQ 0x00 // request (prefixed with dest/src hashes, MAC) (enc data: timestamp, blob)
2020#define PAYLOAD_TYPE_RESPONSE 0x01 // response to REQ or ANON_REQ (prefixed with dest/src hashes, MAC) (enc data: timestamp, blob)
@@ -43,7 +43,7 @@ class Packet {
4343
4444 uint8_t header;
4545 uint16_t payload_len, path_len;
46- uint16_t trans_codes [2 ];
46+ uint16_t transport_codes [2 ];
4747 uint8_t path[MAX_PATH_SIZE];
4848 uint8_t payload[MAX_PACKET_PAYLOAD];
4949 int8_t _snr;
@@ -59,10 +59,10 @@ class Packet {
5959 */
6060 uint8_t getRouteType () const { return header & PH_ROUTE_MASK; }
6161
62- bool isRouteFlood () const { return getRouteType () == ROUTE_TYPE_FLOOD || getRouteType () == ROUTE_TYPE_TRANS_FLOOD ; }
63- bool isRouteDirect () const { return getRouteType () == ROUTE_TYPE_DIRECT || getRouteType () == ROUTE_TYPE_TRANS_DIRECT ; }
62+ bool isRouteFlood () const { return getRouteType () == ROUTE_TYPE_FLOOD || getRouteType () == ROUTE_TYPE_TRANSPORT_FLOOD ; }
63+ bool isRouteDirect () const { return getRouteType () == ROUTE_TYPE_DIRECT || getRouteType () == ROUTE_TYPE_TRANSPORT_DIRECT ; }
6464
65- bool hasTransCodes () const { return getRouteType () == ROUTE_TYPE_TRANS_FLOOD || getRouteType () == ROUTE_TYPE_TRANS_DIRECT ; }
65+ bool hasTransportCodes () const { return getRouteType () == ROUTE_TYPE_TRANSPORT_FLOOD || getRouteType () == ROUTE_TYPE_TRANSPORT_DIRECT ; }
6666
6767 /* *
6868 * \returns one of PAYLOAD_TYPE_ values
0 commit comments