openthread-br
0.3.0-72c0388
|
Go to the documentation of this file.
34 #ifndef OTBR_DBUS_COMMON_TYPES_HPP_
35 #define OTBR_DBUS_COMMON_TYPES_HPP_
50 OTBR_DEVICE_ROLE_DISABLED = 0,
51 OTBR_DEVICE_ROLE_DETACHED = 1,
52 OTBR_DEVICE_ROLE_CHILD = 2,
53 OTBR_DEVICE_ROLE_ROUTER = 3,
54 OTBR_DEVICE_ROLE_LEADER = 4,
93 using Ip4Address = std::array<uint8_t, 4>;
94 using Ip6Address = std::array<uint8_t, 16>;
521 std::vector<uint8_t> mValue;
642 std::string mPrefixManagerState;
643 std::string mTranslatorState;
689 #endif // OTBR_DBUS_COMMON_TYPES_HPP_
uint32_t mRcpUnexpectedResetCount
The number of RCP unexcepted resets.
Definition: types.hpp:586
uint32_t mRxErrFcs
Definition: types.hpp:449
uint64_t mId
The unique id for a mapping session.
Definition: types.hpp:670
int8_t mLastRssi
Last observed RSSI.
Definition: types.hpp:500
uint32_t mRxDataPoll
Definition: types.hpp:377
uint32_t mRcpRestorationCount
The number of RCP restorations.
Definition: types.hpp:587
uint32_t mRxErrOther
Definition: types.hpp:455
bool mRxOnWhenIdle
rx-on-when-idle
Definition: types.hpp:503
uint32_t mNumRxRequest
Number of rx requests.
Definition: types.hpp:614
uint32_t mTxErrBusyChannel
Definition: types.hpp:344
uint8_t mVersion
Version.
Definition: types.hpp:68
uint64_t mTransferredGarbageFrameCount
The number of transferred garbage frames.
Definition: types.hpp:596
Ip4Address mIp4
The IPv4 address of the mapping.
Definition: types.hpp:671
uint32_t mServerFailureResponse
The number of server failure responses.
Definition: types.hpp:574
uint8_t mWeighting
Leader Weight.
Definition: types.hpp:512
uint32_t mTxRetry
Definition: types.hpp:305
uint32_t mTxTotal
Definition: types.hpp:223
uint32_t mTxFailure
The number of IPv6 packets failed to transmit.
Definition: types.hpp:462
uint32_t mServerFailure
The number of server failure responses.
Definition: types.hpp:556
uint32_t mPartitionId
Partition ID.
Definition: types.hpp:511
uint32_t mNumTxGrantWaitActivated
Number of tx requests while grant was inactive that were ultimately granted.
Definition: types.hpp:609
Definition: types.hpp:472
bool mSlaac
Definition: types.hpp:121
uint64_t mRxFrameByteCount
The number of received bytes.
Definition: types.hpp:598
SrpServerState
Definition: types.hpp:524
@ OTBR_SRP_SERVER_ADDRESS_MODE_ANYCAST
Anycast address mode.
Definition: types.hpp:534
bool mOnMesh
Definition: types.hpp:141
bool mDeviceType
1, if the sender is an FTD. 0, otherwise.
Definition: types.hpp:82
uint8_t mNetworkDataVersion
Network Data Version.
Definition: types.hpp:479
uint16_t mRloc16
Definition: types.hpp:171
uint16_t mFrameErrorRate
Frame error rate (0xffff->100%). Requires error tracking feature.
Definition: types.hpp:483
uint32_t mOther
The number of other responses.
Definition: types.hpp:560
uint32_t mTxAcked
Definition: types.hpp:247
uint32_t mTxDataPoll
Definition: types.hpp:265
uint32_t mRxFailure
The number of IPv6 packets failed to receive.
Definition: types.hpp:463
uint64_t mBytes
The number of bytes.
Definition: types.hpp:631
uint32_t mRxAddressFiltered
Definition: types.hpp:401
bool mNdDns
Definition: types.hpp:151
bool mFullNetworkData
Full Network Data.
Definition: types.hpp:487
bool mDp
Definition: types.hpp:156
Nat64TrafficCounters mTotal
Counters for sum of all protocols.
Definition: types.hpp:662
uint32_t mNumGrantGlitch
Number of grant glitches.
Definition: types.hpp:605
uint32_t mAvgTxRequestToGrantTime
Average time in usec from tx request to grant.
Definition: types.hpp:613
uint64_t m6To4Packets
Number of packets translated from IPv6 to IPv4.
Definition: types.hpp:650
bool mStable
Definition: types.hpp:146
int8_t mMaxRssi
The max RSSI (dBm)
Definition: types.hpp:76
uint8_t mStableDataVersion
Stable Network Data Version.
Definition: types.hpp:514
uint64_t mTxFrameCount
The number of transmitted frames.
Definition: types.hpp:599
bool mStable
Definition: types.hpp:181
uint32_t mFreshCount
The number of active hosts/services registered on the SRP server.
Definition: types.hpp:541
PacketsAndBytes mOutboundMulticast
The counters for outbound multicast.
Definition: types.hpp:637
Registration mServices
The registration information of services on the SRP server.
Definition: types.hpp:567
uint8_t mLeaderRouterId
Leader Router ID.
Definition: types.hpp:515
uint32_t mRxErrUnknownNeighbor
Definition: types.hpp:428
Definition: types.hpp:509
uint32_t mNumRxGrantDeactivatedDuringRequest
Number of rx that were in progress when grant was deactivated.
Definition: types.hpp:619
uint32_t mNumRxGrantWaitTimeout
Number of rx requests while grant was inactive that timed out.
Definition: types.hpp:618
uint32_t mAvgRxRequestToGrantTime
Average time in usec from rx request to grant.
Definition: types.hpp:621
Definition: types.hpp:466
@ OTBR_SRP_SERVER_STATE_RUNNING
The SRP server is running.
Definition: types.hpp:527
Definition: types.hpp:159
Definition: types.hpp:668
Definition: types.hpp:571
uint32_t mRxDuplicated
Definition: types.hpp:416
uint32_t mNumTxGrantWaitTimeout
Number of tx requests while grant was inactive that timed out.
Definition: types.hpp:610
uint32_t mRefused
The number of refused responses.
Definition: types.hpp:559
uint16_t mJoinerUdpPort
Joiner UDP Port.
Definition: types.hpp:64
uint64_t mKeyLeaseTimeTotal
Definition: types.hpp:545
uint32_t mTxBeacon
Definition: types.hpp:271
Nat64PacketCounters mNoMapping
Packet drop due to no mappings found or mapping pool exhausted.
Definition: types.hpp:683
uint32_t mFormatErrorResponse
The number of format error responses.
Definition: types.hpp:575
uint32_t mTimeout
Timeout.
Definition: types.hpp:475
uint32_t mNumRxDelayedGrant
Number of rx requests that were not granted within 50us.
Definition: types.hpp:620
uint32_t mTxUnicast
Definition: types.hpp:229
uint32_t mRxErrSec
Definition: types.hpp:443
uint32_t mRxBroadcast
Definition: types.hpp:365
Definition: types.hpp:458
@ OTBR_SRP_SERVER_ADDRESS_MODE_UNICAST
Unicast address mode.
Definition: types.hpp:533
uint64_t mPackets
The number of packets.
Definition: types.hpp:630
uint64_t mExtendedPanId
Thread Extended PAN ID.
Definition: types.hpp:61
ResponseCounters mResponseCounters
The counters of response codes sent by the SRP server.
Definition: types.hpp:568
uint32_t mRxDestAddrFiltered
Definition: types.hpp:407
SrpServerAddressMode
Definition: types.hpp:531
uint64_t mRemainingLeaseTimeTotal
Definition: types.hpp:547
Definition: types.hpp:539
uint32_t mFormatError
The number of format error responses.
Definition: types.hpp:557
uint64_t mExtAddress
IEEE 802.15.4 Extended Address.
Definition: types.hpp:493
uint8_t mLinkQualityIn
Link Quality In.
Definition: types.hpp:480
uint32_t mNumRxGrantWait
Number of rx requests while grant was inactive.
Definition: types.hpp:616
uint64_t m4To6Bytes
Sum of size of packets translated from IPv4 to IPv6.
Definition: types.hpp:649
uint32_t mRxErrInvalidSrcAddr
Definition: types.hpp:434
uint32_t mTxIndirectMaxRetryExpiry
Definition: types.hpp:317
uint32_t mAge
Time last heard.
Definition: types.hpp:494
PacketsAndBytes mInboundUnicast
The counters for inbound unicast.
Definition: types.hpp:634
int8_t mAverageRssi
Average RSSI.
Definition: types.hpp:481
int8_t mPreference
Definition: types.hpp:111
uint16_t mRloc16
RLOC16.
Definition: types.hpp:477
uint32_t mSuccess
The number of successful responses.
Definition: types.hpp:555
uint32_t mRcpTimeoutCount
The number of RCP timeouts.
Definition: types.hpp:585
bool mFullNetworkData
Full Network Data.
Definition: types.hpp:505
uint64_t m6To4Packets
Number of packets translated from IPv6 to IPv4.
Definition: types.hpp:657
uint32_t mRxErrNoFrame
Definition: types.hpp:422
uint32_t mRxTotal
Definition: types.hpp:353
uint32_t mNameExists
The number of 'name exists' responses.
Definition: types.hpp:558
uint32_t mTxBeaconRequest
Definition: types.hpp:277
Nat64TrafficCounters mTcp
Counters for TCP.
Definition: types.hpp:665
uint32_t mLinkFrameCounter
Link Frame Counter.
Definition: types.hpp:496
uint32_t mTxBroadcast
Definition: types.hpp:235
Ip6Prefix mPrefix
Definition: types.hpp:164
@ OTBR_SRP_SERVER_STATE_STOPPED
The SRP server is stopped.
Definition: types.hpp:528
Registration mHosts
The registration information of hosts on the SRP server.
Definition: types.hpp:566
uint32_t mRxUnicast
Definition: types.hpp:359
uint32_t mRxBeacon
Definition: types.hpp:383
Nat64PacketCounters mUnknown
Packet drop for unknown reasons.
Definition: types.hpp:680
Ip6Address mIp6
The IPv6 address of the mapping.
Definition: types.hpp:672
uint64_t m4To6Packets
Number of packets translated from IPv4 to IPv6.
Definition: types.hpp:656
bool mNextHopIsThisDevice
Definition: types.hpp:189
bool mIsChild
Is the neighbor a child.
Definition: types.hpp:506
bool mPreferred
Definition: types.hpp:116
uint32_t mNumRxGrantWaitActivated
Number of rx requests while grant was inactive that were ultimately granted.
Definition: types.hpp:617
Definition: types.hpp:628
Definition: types.hpp:654
uint64_t mExtAddress
IEEE 802.15.4 Extended Address.
Definition: types.hpp:59
bool mConfigure
Definition: types.hpp:131
Definition: types.hpp:583
bool mFullThreadDevice
Full Thread Device.
Definition: types.hpp:486
bool mDhcp
Definition: types.hpp:126
uint16_t mMessageErrorRate
(IPv6) msg error rate (0xffff->100%). Requires error tracking feature.
Definition: types.hpp:502
uint16_t mPort
The listening port number.
Definition: types.hpp:564
uint64_t mExtAddress
IEEE 802.15.4 Extended Address.
Definition: types.hpp:474
uint32_t mTxNoAckRequested
Definition: types.hpp:253
uint32_t mRxSuccess
The number of IPv6 packets successfully received.
Definition: types.hpp:461
uint8_t mDataVersion
Full Network Data Version.
Definition: types.hpp:513
int8_t mLastRssi
Last observed RSSI.
Definition: types.hpp:482
uint32_t mRemainingTimeMs
Remaining time before expiry in milliseconds.
Definition: types.hpp:673
bool mIsStateRestoring
Is in restoring state.
Definition: types.hpp:488
uint32_t mNumTxRequest
Number of tx requests.
Definition: types.hpp:606
Nat64PacketCounters mIllegalPacket
Packet drop due to failed to parse the datagram.
Definition: types.hpp:681
Definition: types.hpp:660
uint32_t mTxSuccess
The number of IPv6 packets successfully transmitted.
Definition: types.hpp:460
uint32_t mOtherResponse
The number of other responses.
Definition: types.hpp:578
uint16_t mRloc16
Definition: types.hpp:106
uint64_t m6To4Bytes
Sum of size of packets translated from IPv6 to IPv4.
Definition: types.hpp:651
Definition: types.hpp:603
Nat64PacketCounters mUnsupportedProto
Packet drop due to unsupported IP protocol.
Definition: types.hpp:682
bool mRxOnWhenIdle
1, if the sender has its receiver on when not transmitting. 0, otherwise.
Definition: types.hpp:81
uint32_t mNumRxGrantNone
Number of rx requests that completed without receiving grant.
Definition: types.hpp:622
uint8_t mLqi
LQI.
Definition: types.hpp:67
uint8_t mLength
The IPv6 prefix length.
Definition: types.hpp:90
uint32_t mTxOther
Definition: types.hpp:285
Definition: types.hpp:678
PacketsAndBytes mInboundMulticast
The counters for inbound multicast.
Definition: types.hpp:635
uint32_t mMleFrameCounter
MLE Frame Counter.
Definition: types.hpp:497
uint32_t mSuccessResponse
The number of successful responses.
Definition: types.hpp:573
bool mFullThreadDevice
Full Thread Device.
Definition: types.hpp:504
@ OTBR_SRP_SERVER_STATE_DISABLED
The SRP server is disabled.
Definition: types.hpp:526
SrpServerState mState
The state of the SRP server.
Definition: types.hpp:563
uint32_t mRxData
Definition: types.hpp:371
uint32_t mDeletedCount
The number of hosts/services in 'Deleted' state on the SRP server.
Definition: types.hpp:542
uint64_t mLeaseTimeTotal
Definition: types.hpp:543
Definition: types.hpp:537
uint32_t mTxErrCca
Definition: types.hpp:332
uint64_t mRemainingKeyLeaseTimeTotal
Definition: types.hpp:549
uint32_t mNotImplementedResponse
The number of 'not implemented' responses.
Definition: types.hpp:577
SrpServerAddressMode mAddressMode
The address mode {unicast, anycast} of the SRP server.
Definition: types.hpp:565
uint64_t mTransferredFrameCount
The number of transferred frames.
Definition: types.hpp:594
Definition: types.hpp:491
bool mNetworkData
1, if the sender requires the full Network Data. 0, otherwise.
Definition: types.hpp:83
uint32_t mNumTxGrantImmediate
Number of tx requests while grant was active.
Definition: types.hpp:607
uint32_t mTxDirectMaxRetryExpiry
Definition: types.hpp:311
std::vector< uint8_t > mPrefix
The IPv6 prefix.
Definition: types.hpp:88
uint64_t mTxFrameByteCount
The number of transmitted bytes.
Definition: types.hpp:600
uint8_t mLinkQualityIn
Link Quality In.
Definition: types.hpp:498
uint32_t mRxBeaconRequest
Definition: types.hpp:389
Definition: types.hpp:591
bool mDefaultRoute
Definition: types.hpp:136
uint32_t mNumTxDelayedGrant
Number of tx requests that were not granted within 50us.
Definition: types.hpp:612
uint32_t mNumTxGrantDeactivatedDuringRequest
Number of tx that were in progress when grant was deactivated.
Definition: types.hpp:611
uint64_t mRxFrameCount
The number of received frames.
Definition: types.hpp:597
int8_t mPreference
Definition: types.hpp:176
uint32_t mAge
Time last heard.
Definition: types.hpp:476
Definition: types.hpp:626
int8_t mAverageRssi
Average RSSI.
Definition: types.hpp:499
bool mDiscover
Result from MLE Discovery.
Definition: types.hpp:70
Nat64TrafficCounters mIcmp
Counters for ICMP and ICMPv6.
Definition: types.hpp:663
Ip6Prefix mPrefix
Definition: types.hpp:101
uint16_t mChildId
Child ID.
Definition: types.hpp:478
uint64_t m4To6Packets
Number of packets translated from IPv4 to IPv6.
Definition: types.hpp:648
uint32_t mTxErrAbort
Definition: types.hpp:338
uint16_t mPanId
IEEE 802.15.4 PAN ID.
Definition: types.hpp:63
uint8_t mChannel
IEEE 802.15.4 Channel.
Definition: types.hpp:65
Nat64TrafficCounters mUdp
Counters for UDP.
Definition: types.hpp:664
uint32_t mNumRxGrantImmediate
Number of rx requests while grant was active.
Definition: types.hpp:615
uint8_t mRcpInterfaceType
The RCP interface type.
Definition: types.hpp:593
uint16_t mFrameErrorRate
Frame error rate (0xffff->100%). Requires error tracking feature.
Definition: types.hpp:501
uint32_t mTxData
Definition: types.hpp:259
Definition: types.hpp:640
PacketsAndBytes mOutboundUnicast
The counters for outbound unicast.
Definition: types.hpp:636
uint32_t mResolvedBySrp
The number of queries completely resolved by the local SRP server.
Definition: types.hpp:580
Definition: types.hpp:553
uint16_t mRloc16
RLOC16.
Definition: types.hpp:495
std::vector< uint8_t > mSteeringData
Steering Data.
Definition: types.hpp:62
uint32_t mTxAckRequested
Definition: types.hpp:241
std::string mNetworkName
Thread Network Name.
Definition: types.hpp:60
uint8_t mChannel
IEEE 802.15.4 Channel.
Definition: types.hpp:75
int8_t mRssi
RSSI (dBm)
Definition: types.hpp:66
Definition: types.hpp:518
uint16_t mMessageErrorRate
(IPv6) msg error rate (0xffff->100%). Requires error tracking feature.
Definition: types.hpp:484
uint32_t mRxOther
Definition: types.hpp:395
Definition: types.hpp:646
bool mStopped
Stats collection stopped due to saturation.
Definition: types.hpp:623
bool mIsNative
Native Commissioner flag.
Definition: types.hpp:69
uint32_t mNumTxGrantWait
Number of tx requests while grant was inactive.
Definition: types.hpp:608
uint32_t mNameErrorResponse
The number of name error responses.
Definition: types.hpp:576
uint32_t mSpinelParseErrorCount
The number of spinel frame parse errors.
Definition: types.hpp:588
bool mRxOnWhenIdle
rx-on-when-idle
Definition: types.hpp:485
Definition: types.hpp:196
uint64_t mTransferredValidFrameCount
The number of transferred valid frames.
Definition: types.hpp:595