diff --git a/test/nanostack/unittest/stub/thread_routing_stub.c b/test/nanostack/unittest/stub/thread_routing_stub.c index b51454f48fe..48d3339675e 100644 --- a/test/nanostack/unittest/stub/thread_routing_stub.c +++ b/test/nanostack/unittest/stub/thread_routing_stub.c @@ -21,11 +21,6 @@ #include #include -#ifndef UINT_FAST4_MAX -typedef uint_fast8_t uint_fast4_t; -#define UINT_FAST4_MAX UINT_FAST8_MAX -#endif - #define THREAD_ROUTING_FN extern #include @@ -40,30 +35,11 @@ typedef uint_fast8_t uint_fast4_t; #define TRACE_GROUP "trou" -/* MLE Route Data bit assignments (draft-kelsey-thread-routing-00) */ -#define ROUTE_DATA_OUT_MASK 0xC0 -#define ROUTE_DATA_OUT_SHIFT 6 -#define ROUTE_DATA_IN_MASK 0x30 -#define ROUTE_DATA_IN_SHIFT 4 -#define ROUTE_DATA_COST_MASK 0x0F - -#define MAX_ROUTE_COST 0x0F - -typedef uint_fast4_t thread_route_cost_t; -#define THREAD_COST_INFINITE 0 - -#define MAX_LINK_AGE 100*10 /* 100 seconds */ - -#define LINK_AGE_STATIC 0xFFFF /* Magic number to indicate "never expire" */ - - bool router_id_sequence_is_greater(const thread_routing_info_t *routing, uint8_t seq) { return false; } -#define LINK_QUALITY_HYSTERESIS (1 << THREAD_LINK_MARGIN_SCALING) /* 1dB */ - bool thread_i_am_router(const protocol_interface_info_entry_t *cur) { return false;