ZPS_tsAplZdpMgmtRtgRsp#
This structure is used to store Mgmt_Rtg_rsp message data - a response to a call to the function ZPS_eAplZdpMgmtRtgRequest(). This response reports the contents of the remote node’s Routing table
The ZPS_tsAplZdpMgmtRtgRspstructure is detailed below.
typedef struct {
uint8 u8Status;
uint8 u8RoutingTableEntries;
uint8 u8StartIndex;
uint8 u8RoutingTableCount;
/* Rest of the message is variable length */
ZPS_tsAplZdpRtEntry* pRoutingTableList;
} ZPS_tsAplZdpMgmtRtgRsp;
where:
u8Statusis the return status for ZPS_eAplZdpMgmtRtgRequest()u8RoutingTableEntriesis the total number of Routing table entries on the remote nodeu8StartIndexis the Routing table index of the first entry reported in this response (throughpRoutingTableList)u8RoutingTableCountis the number of Routing table entries reported in this response (throughpRoutingTableList)pRoutingTableListis a pointer to the first entry in the list of reported Routing table entries. Each entry is of the typeZPS_tsAplZdpRtEntrydetailed belowtypedef struct { uint16 u16NwkDstAddr; /**< Destination Network address */ uint16 u16NwkNxtHopAddr; /**< Next hop Network address */ union { struct { unsigned u3Status:3; unsigned u1MemConst:1; unsigned u1ManyToOne:1; unsigned u1RouteRecordReqd:1; unsigned u1Reserved:2; } bfBitfields; uint8 u8Field; } uAncAttrs; } ZPS_tsAplZdpRtEntry;
where:
u16NwkDstAddris the destination network address of the route.u16NwkNxtHopAddris the ‘next hop’ network address of the route.u3Status:3is the 3-bit status for the route:000 = ACTIVE
001 = DISCOVERY_UNDERWAY
010 = DISCOVERY_FAILED
011 = INACTIVE
100 = VALIDATION_UNDERWAY
101-111 = Reserved.
u1MemConst:1is a bit indicating whether the device is a memory-constrained concentrator.u1ManyToOne:1is a bit indicating whether the destination node is a concentrator that issued a many-to-one request.u1RouteRecordReqd:1is a bit indicating whether a route record command frame. should be sent to the destination before the next data packet.u1Reserved:2are reserved bits.u8Fieldcontains the full set of flags of thebfBitfieldssub-structure, withu3Status:3occupying the most significant bits andu1Reserved:2occupying the least significant bits (for a big-endian device).
Parent topic:ZDP response structures