openthread-br  0.3.0-72c0388
types.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, The OpenThread Authors.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  * 1. Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  * 3. Neither the name of the copyright holder nor the
13  * names of its contributors may be used to endorse or promote products
14  * derived from this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26  * POSSIBILITY OF SUCH DAMAGE.
27  */
28 
34 #ifndef OTBR_DBUS_COMMON_TYPES_HPP_
35 #define OTBR_DBUS_COMMON_TYPES_HPP_
36 
37 #include "dbus/common/error.hpp"
38 
39 #include <stdint.h>
40 
41 #include <array>
42 #include <string>
43 #include <vector>
44 
45 namespace otbr {
46 namespace DBus {
47 
48 enum DeviceRole
49 {
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,
55 };
56 
58 {
59  uint64_t mExtAddress;
60  std::string mNetworkName;
61  uint64_t mExtendedPanId;
62  std::vector<uint8_t> mSteeringData;
63  uint16_t mPanId;
64  uint16_t mJoinerUdpPort;
65  uint8_t mChannel;
66  int8_t mRssi;
67  uint8_t mLqi;
68  uint8_t mVersion;
69  bool mIsNative;
70  bool mDiscover;
71 };
72 
74 {
75  uint8_t mChannel;
76  int8_t mMaxRssi;
77 };
78 
80 {
82  bool mDeviceType;
83  bool mNetworkData;
84 };
85 
86 struct Ip6Prefix
87 {
88  std::vector<uint8_t> mPrefix;
89 
90  uint8_t mLength;
91 };
92 
93 using Ip4Address = std::array<uint8_t, 4>;
94 using Ip6Address = std::array<uint8_t, 16>;
95 
97 {
102 
106  uint16_t mRloc16;
107 
111  int8_t mPreference;
112 
117 
121  bool mSlaac;
122 
126  bool mDhcp;
127 
132 
137 
141  bool mOnMesh;
142 
146  bool mStable;
147 
151  bool mNdDns;
152 
156  bool mDp;
157 };
158 
160 {
165 
171  uint16_t mRloc16;
172 
176  int8_t mPreference;
177 
181  bool mStable;
182 
190 };
191 
197 {
223  uint32_t mTxTotal;
224 
229  uint32_t mTxUnicast;
230 
235  uint32_t mTxBroadcast;
236 
241  uint32_t mTxAckRequested;
242 
247  uint32_t mTxAcked;
248 
254 
259  uint32_t mTxData;
260 
265  uint32_t mTxDataPoll;
266 
271  uint32_t mTxBeacon;
272 
278 
285  uint32_t mTxOther;
286 
305  uint32_t mTxRetry;
306 
312 
318 
332  uint32_t mTxErrCca;
333 
338  uint32_t mTxErrAbort;
339 
345 
353  uint32_t mRxTotal;
354 
359  uint32_t mRxUnicast;
360 
365  uint32_t mRxBroadcast;
366 
371  uint32_t mRxData;
372 
377  uint32_t mRxDataPoll;
378 
383  uint32_t mRxBeacon;
384 
390 
395  uint32_t mRxOther;
396 
402 
408 
416  uint32_t mRxDuplicated;
417 
422  uint32_t mRxErrNoFrame;
423 
429 
435 
443  uint32_t mRxErrSec;
444 
449  uint32_t mRxErrFcs;
450 
455  uint32_t mRxErrOther;
456 };
457 
459 {
460  uint32_t mTxSuccess;
461  uint32_t mRxSuccess;
462  uint32_t mTxFailure;
463  uint32_t mRxFailure;
464 };
465 
467 {
468  uint8_t mChannel;
469  uint16_t mOccupancy;
470 };
471 
472 struct ChildInfo
473 {
474  uint64_t mExtAddress;
475  uint32_t mTimeout;
476  uint32_t mAge;
477  uint16_t mRloc16;
478  uint16_t mChildId;
480  uint8_t mLinkQualityIn;
481  int8_t mAverageRssi;
482  int8_t mLastRssi;
483  uint16_t mFrameErrorRate;
484  uint16_t mMessageErrorRate;
489 };
490 
492 {
493  uint64_t mExtAddress;
494  uint32_t mAge;
495  uint16_t mRloc16;
496  uint32_t mLinkFrameCounter;
497  uint32_t mMleFrameCounter;
498  uint8_t mLinkQualityIn;
499  int8_t mAverageRssi;
500  int8_t mLastRssi;
501  uint16_t mFrameErrorRate;
502  uint16_t mMessageErrorRate;
506  bool mIsChild;
507 };
508 
510 {
511  uint32_t mPartitionId;
512  uint8_t mWeighting;
513  uint8_t mDataVersion;
515  uint8_t mLeaderRouterId;
516 };
517 
518 struct TxtEntry
519 {
520  std::string mKey;
521  std::vector<uint8_t> mValue;
522 };
523 
524 enum SrpServerState : uint8_t
525 {
529 };
530 
531 enum SrpServerAddressMode : uint8_t
532 {
535 };
536 
538 {
540  {
541  uint32_t mFreshCount;
542  uint32_t mDeletedCount;
543  uint64_t mLeaseTimeTotal;
544  uint64_t mKeyLeaseTimeTotal;
546  uint64_t mRemainingLeaseTimeTotal;
548  uint64_t mRemainingKeyLeaseTimeTotal;
550  };
552 
554  {
555  uint32_t mSuccess;
556  uint32_t mServerFailure;
557  uint32_t mFormatError;
558  uint32_t mNameExists;
559  uint32_t mRefused;
560  uint32_t mOther;
561  };
562 
564  uint16_t mPort;
569 };
570 
572 {
573  uint32_t mSuccessResponse;
578  uint32_t mOtherResponse;
579 
580  uint32_t mResolvedBySrp;
581 };
582 
584 {
585  uint32_t mRcpTimeoutCount;
589 };
590 
592 {
597  uint64_t mRxFrameCount;
598  uint64_t mRxFrameByteCount;
599  uint64_t mTxFrameCount;
600  uint64_t mTxFrameByteCount;
601 };
602 
604 {
605  uint32_t mNumGrantGlitch;
606  uint32_t mNumTxRequest;
608  uint32_t mNumTxGrantWait;
614  uint32_t mNumRxRequest;
616  uint32_t mNumRxGrantWait;
622  uint32_t mNumRxGrantNone;
623  bool mStopped;
624 };
625 
627 {
629  {
630  uint64_t mPackets;
631  uint64_t mBytes;
632  };
633 
638 };
639 
641 {
642  std::string mPrefixManagerState;
643  std::string mTranslatorState;
644 };
645 
647 {
648  uint64_t m4To6Packets;
649  uint64_t m4To6Bytes;
650  uint64_t m6To4Packets;
651  uint64_t m6To4Bytes;
652 };
653 
655 {
656  uint64_t m4To6Packets;
657  uint64_t m6To4Packets;
658 };
659 
661 {
666 };
667 
669 {
670  uint64_t mId;
671  Ip4Address mIp4;
672  Ip6Address mIp6;
673  uint32_t mRemainingTimeMs;
674 
675  Nat64ProtocolCounters mCounters;
676 };
677 
679 {
684 };
685 
686 } // namespace DBus
687 } // namespace otbr
688 
689 #endif // OTBR_DBUS_COMMON_TYPES_HPP_
otbr::DBus::RadioSpinelMetrics::mRcpUnexpectedResetCount
uint32_t mRcpUnexpectedResetCount
The number of RCP unexcepted resets.
Definition: types.hpp:586
otbr::DBus::MacCounters::mRxErrFcs
uint32_t mRxErrFcs
Definition: types.hpp:449
otbr::DBus::Nat64AddressMapping::mId
uint64_t mId
The unique id for a mapping session.
Definition: types.hpp:670
otbr::DBus::NeighborInfo::mLastRssi
int8_t mLastRssi
Last observed RSSI.
Definition: types.hpp:500
otbr::DBus::MacCounters::mRxDataPoll
uint32_t mRxDataPoll
Definition: types.hpp:377
otbr::DBus::RadioSpinelMetrics::mRcpRestorationCount
uint32_t mRcpRestorationCount
The number of RCP restorations.
Definition: types.hpp:587
otbr::DBus::MacCounters::mRxErrOther
uint32_t mRxErrOther
Definition: types.hpp:455
otbr::DBus::NeighborInfo::mRxOnWhenIdle
bool mRxOnWhenIdle
rx-on-when-idle
Definition: types.hpp:503
otbr::DBus::RadioCoexMetrics::mNumRxRequest
uint32_t mNumRxRequest
Number of rx requests.
Definition: types.hpp:614
otbr::DBus::MacCounters::mTxErrBusyChannel
uint32_t mTxErrBusyChannel
Definition: types.hpp:344
otbr::DBus::ActiveScanResult::mVersion
uint8_t mVersion
Version.
Definition: types.hpp:68
otbr::DBus::RcpInterfaceMetrics::mTransferredGarbageFrameCount
uint64_t mTransferredGarbageFrameCount
The number of transferred garbage frames.
Definition: types.hpp:596
otbr::DBus::LinkModeConfig
Definition: types.hpp:79
otbr::DBus::Nat64AddressMapping::mIp4
Ip4Address mIp4
The IPv4 address of the mapping.
Definition: types.hpp:671
otbr::DBus::DnssdCounters::mServerFailureResponse
uint32_t mServerFailureResponse
The number of server failure responses.
Definition: types.hpp:574
otbr::DBus::LeaderData::mWeighting
uint8_t mWeighting
Leader Weight.
Definition: types.hpp:512
otbr::DBus::MacCounters::mTxRetry
uint32_t mTxRetry
Definition: types.hpp:305
otbr::DBus::MacCounters::mTxTotal
uint32_t mTxTotal
Definition: types.hpp:223
otbr::DBus::IpCounters::mTxFailure
uint32_t mTxFailure
The number of IPv6 packets failed to transmit.
Definition: types.hpp:462
otbr::DBus::SrpServerInfo::ResponseCounters::mServerFailure
uint32_t mServerFailure
The number of server failure responses.
Definition: types.hpp:556
otbr::DBus::LeaderData::mPartitionId
uint32_t mPartitionId
Partition ID.
Definition: types.hpp:511
otbr::DBus::RadioCoexMetrics::mNumTxGrantWaitActivated
uint32_t mNumTxGrantWaitActivated
Number of tx requests while grant was inactive that were ultimately granted.
Definition: types.hpp:609
otbr::DBus::ChildInfo
Definition: types.hpp:472
otbr::DBus::OnMeshPrefix::mSlaac
bool mSlaac
Definition: types.hpp:121
otbr::DBus::RcpInterfaceMetrics::mRxFrameByteCount
uint64_t mRxFrameByteCount
The number of received bytes.
Definition: types.hpp:598
otbr::DBus::SrpServerState
SrpServerState
Definition: types.hpp:524
otbr::DBus::OTBR_SRP_SERVER_ADDRESS_MODE_ANYCAST
@ OTBR_SRP_SERVER_ADDRESS_MODE_ANYCAST
Anycast address mode.
Definition: types.hpp:534
otbr::DBus::OnMeshPrefix::mOnMesh
bool mOnMesh
Definition: types.hpp:141
otbr::DBus::LinkModeConfig::mDeviceType
bool mDeviceType
1, if the sender is an FTD. 0, otherwise.
Definition: types.hpp:82
otbr::DBus::ChildInfo::mNetworkDataVersion
uint8_t mNetworkDataVersion
Network Data Version.
Definition: types.hpp:479
otbr::DBus::ExternalRoute::mRloc16
uint16_t mRloc16
Definition: types.hpp:171
otbr::DBus::ChildInfo::mFrameErrorRate
uint16_t mFrameErrorRate
Frame error rate (0xffff->100%). Requires error tracking feature.
Definition: types.hpp:483
otbr::DBus::SrpServerInfo::ResponseCounters::mOther
uint32_t mOther
The number of other responses.
Definition: types.hpp:560
otbr::DBus::MacCounters::mTxAcked
uint32_t mTxAcked
Definition: types.hpp:247
otbr::DBus::MacCounters::mTxDataPoll
uint32_t mTxDataPoll
Definition: types.hpp:265
otbr::DBus::IpCounters::mRxFailure
uint32_t mRxFailure
The number of IPv6 packets failed to receive.
Definition: types.hpp:463
otbr::DBus::Ip6Prefix
Definition: types.hpp:86
otbr::DBus::BorderRoutingCounters::PacketsAndBytes::mBytes
uint64_t mBytes
The number of bytes.
Definition: types.hpp:631
otbr::DBus::MacCounters::mRxAddressFiltered
uint32_t mRxAddressFiltered
Definition: types.hpp:401
otbr::DBus::OnMeshPrefix::mNdDns
bool mNdDns
Definition: types.hpp:151
otbr::DBus::ChildInfo::mFullNetworkData
bool mFullNetworkData
Full Network Data.
Definition: types.hpp:487
otbr::DBus::OnMeshPrefix::mDp
bool mDp
Definition: types.hpp:156
otbr::DBus::Nat64ProtocolCounters::mTotal
Nat64TrafficCounters mTotal
Counters for sum of all protocols.
Definition: types.hpp:662
otbr::DBus::RadioCoexMetrics::mNumGrantGlitch
uint32_t mNumGrantGlitch
Number of grant glitches.
Definition: types.hpp:605
otbr::DBus::RadioCoexMetrics::mAvgTxRequestToGrantTime
uint32_t mAvgTxRequestToGrantTime
Average time in usec from tx request to grant.
Definition: types.hpp:613
otbr::DBus::Nat64TrafficCounters::m6To4Packets
uint64_t m6To4Packets
Number of packets translated from IPv6 to IPv4.
Definition: types.hpp:650
otbr::DBus::OnMeshPrefix::mStable
bool mStable
Definition: types.hpp:146
otbr::DBus::EnergyScanResult::mMaxRssi
int8_t mMaxRssi
The max RSSI (dBm)
Definition: types.hpp:76
otbr::DBus::LeaderData::mStableDataVersion
uint8_t mStableDataVersion
Stable Network Data Version.
Definition: types.hpp:514
otbr::DBus::RcpInterfaceMetrics::mTxFrameCount
uint64_t mTxFrameCount
The number of transmitted frames.
Definition: types.hpp:599
otbr::DBus::ExternalRoute::mStable
bool mStable
Definition: types.hpp:181
otbr::DBus::SrpServerInfo::Registration::mFreshCount
uint32_t mFreshCount
The number of active hosts/services registered on the SRP server.
Definition: types.hpp:541
otbr::DBus::BorderRoutingCounters::mOutboundMulticast
PacketsAndBytes mOutboundMulticast
The counters for outbound multicast.
Definition: types.hpp:637
otbr::DBus::SrpServerInfo::mServices
Registration mServices
The registration information of services on the SRP server.
Definition: types.hpp:567
otbr::DBus::LeaderData::mLeaderRouterId
uint8_t mLeaderRouterId
Leader Router ID.
Definition: types.hpp:515
otbr::DBus::MacCounters::mRxErrUnknownNeighbor
uint32_t mRxErrUnknownNeighbor
Definition: types.hpp:428
otbr::DBus::LeaderData
Definition: types.hpp:509
otbr::DBus::RadioCoexMetrics::mNumRxGrantDeactivatedDuringRequest
uint32_t mNumRxGrantDeactivatedDuringRequest
Number of rx that were in progress when grant was deactivated.
Definition: types.hpp:619
otbr::DBus::RadioCoexMetrics::mNumRxGrantWaitTimeout
uint32_t mNumRxGrantWaitTimeout
Number of rx requests while grant was inactive that timed out.
Definition: types.hpp:618
otbr::DBus::RadioCoexMetrics::mAvgRxRequestToGrantTime
uint32_t mAvgRxRequestToGrantTime
Average time in usec from rx request to grant.
Definition: types.hpp:621
otbr::DBus::ChannelQuality
Definition: types.hpp:466
otbr::DBus::OTBR_SRP_SERVER_STATE_RUNNING
@ OTBR_SRP_SERVER_STATE_RUNNING
The SRP server is running.
Definition: types.hpp:527
otbr::DBus::ExternalRoute
Definition: types.hpp:159
otbr::DBus::Nat64AddressMapping
Definition: types.hpp:668
otbr::DBus::DnssdCounters
Definition: types.hpp:571
otbr::DBus::MacCounters::mRxDuplicated
uint32_t mRxDuplicated
Definition: types.hpp:416
otbr::DBus::RadioCoexMetrics::mNumTxGrantWaitTimeout
uint32_t mNumTxGrantWaitTimeout
Number of tx requests while grant was inactive that timed out.
Definition: types.hpp:610
otbr::DBus::SrpServerInfo::ResponseCounters::mRefused
uint32_t mRefused
The number of refused responses.
Definition: types.hpp:559
otbr::DBus::ActiveScanResult::mJoinerUdpPort
uint16_t mJoinerUdpPort
Joiner UDP Port.
Definition: types.hpp:64
otbr::DBus::SrpServerInfo::Registration::mKeyLeaseTimeTotal
uint64_t mKeyLeaseTimeTotal
Definition: types.hpp:545
otbr::DBus::MacCounters::mTxBeacon
uint32_t mTxBeacon
Definition: types.hpp:271
otbr::DBus::Nat64ErrorCounters::mNoMapping
Nat64PacketCounters mNoMapping
Packet drop due to no mappings found or mapping pool exhausted.
Definition: types.hpp:683
otbr::DBus::DnssdCounters::mFormatErrorResponse
uint32_t mFormatErrorResponse
The number of format error responses.
Definition: types.hpp:575
otbr::DBus::ChildInfo::mTimeout
uint32_t mTimeout
Timeout.
Definition: types.hpp:475
otbr::DBus::RadioCoexMetrics::mNumRxDelayedGrant
uint32_t mNumRxDelayedGrant
Number of rx requests that were not granted within 50us.
Definition: types.hpp:620
otbr::DBus::MacCounters::mTxUnicast
uint32_t mTxUnicast
Definition: types.hpp:229
otbr::DBus::MacCounters::mRxErrSec
uint32_t mRxErrSec
Definition: types.hpp:443
otbr::DBus::MacCounters::mRxBroadcast
uint32_t mRxBroadcast
Definition: types.hpp:365
otbr::DBus::IpCounters
Definition: types.hpp:458
otbr::DBus::OTBR_SRP_SERVER_ADDRESS_MODE_UNICAST
@ OTBR_SRP_SERVER_ADDRESS_MODE_UNICAST
Unicast address mode.
Definition: types.hpp:533
otbr::DBus::BorderRoutingCounters::PacketsAndBytes::mPackets
uint64_t mPackets
The number of packets.
Definition: types.hpp:630
otbr::DBus::ActiveScanResult::mExtendedPanId
uint64_t mExtendedPanId
Thread Extended PAN ID.
Definition: types.hpp:61
otbr::DBus::SrpServerInfo::mResponseCounters
ResponseCounters mResponseCounters
The counters of response codes sent by the SRP server.
Definition: types.hpp:568
otbr::DBus::MacCounters::mRxDestAddrFiltered
uint32_t mRxDestAddrFiltered
Definition: types.hpp:407
otbr::DBus::SrpServerAddressMode
SrpServerAddressMode
Definition: types.hpp:531
otbr::DBus::SrpServerInfo::Registration::mRemainingLeaseTimeTotal
uint64_t mRemainingLeaseTimeTotal
Definition: types.hpp:547
otbr::DBus::SrpServerInfo::Registration
Definition: types.hpp:539
otbr::DBus::SrpServerInfo::ResponseCounters::mFormatError
uint32_t mFormatError
The number of format error responses.
Definition: types.hpp:557
otbr::DBus::NeighborInfo::mExtAddress
uint64_t mExtAddress
IEEE 802.15.4 Extended Address.
Definition: types.hpp:493
otbr::DBus::ChildInfo::mLinkQualityIn
uint8_t mLinkQualityIn
Link Quality In.
Definition: types.hpp:480
otbr::DBus::RadioCoexMetrics::mNumRxGrantWait
uint32_t mNumRxGrantWait
Number of rx requests while grant was inactive.
Definition: types.hpp:616
otbr::DBus::Nat64TrafficCounters::m4To6Bytes
uint64_t m4To6Bytes
Sum of size of packets translated from IPv4 to IPv6.
Definition: types.hpp:649
otbr::DBus::MacCounters::mRxErrInvalidSrcAddr
uint32_t mRxErrInvalidSrcAddr
Definition: types.hpp:434
otbr::DBus::MacCounters::mTxIndirectMaxRetryExpiry
uint32_t mTxIndirectMaxRetryExpiry
Definition: types.hpp:317
otbr::DBus::NeighborInfo::mAge
uint32_t mAge
Time last heard.
Definition: types.hpp:494
otbr::DBus::BorderRoutingCounters::mInboundUnicast
PacketsAndBytes mInboundUnicast
The counters for inbound unicast.
Definition: types.hpp:634
otbr::DBus::ChildInfo::mAverageRssi
int8_t mAverageRssi
Average RSSI.
Definition: types.hpp:481
otbr::DBus::OnMeshPrefix::mPreference
int8_t mPreference
Definition: types.hpp:111
otbr::DBus::ChildInfo::mRloc16
uint16_t mRloc16
RLOC16.
Definition: types.hpp:477
otbr::DBus::SrpServerInfo::ResponseCounters::mSuccess
uint32_t mSuccess
The number of successful responses.
Definition: types.hpp:555
otbr::DBus::RadioSpinelMetrics::mRcpTimeoutCount
uint32_t mRcpTimeoutCount
The number of RCP timeouts.
Definition: types.hpp:585
otbr::DBus::NeighborInfo::mFullNetworkData
bool mFullNetworkData
Full Network Data.
Definition: types.hpp:505
otbr::DBus::Nat64PacketCounters::m6To4Packets
uint64_t m6To4Packets
Number of packets translated from IPv6 to IPv4.
Definition: types.hpp:657
otbr::DBus::MacCounters::mRxErrNoFrame
uint32_t mRxErrNoFrame
Definition: types.hpp:422
otbr::DBus::MacCounters::mRxTotal
uint32_t mRxTotal
Definition: types.hpp:353
otbr::DBus::SrpServerInfo::ResponseCounters::mNameExists
uint32_t mNameExists
The number of 'name exists' responses.
Definition: types.hpp:558
otbr::DBus::MacCounters::mTxBeaconRequest
uint32_t mTxBeaconRequest
Definition: types.hpp:277
otbr::DBus::Nat64ProtocolCounters::mTcp
Nat64TrafficCounters mTcp
Counters for TCP.
Definition: types.hpp:665
otbr::DBus::NeighborInfo::mLinkFrameCounter
uint32_t mLinkFrameCounter
Link Frame Counter.
Definition: types.hpp:496
otbr::DBus::MacCounters::mTxBroadcast
uint32_t mTxBroadcast
Definition: types.hpp:235
otbr::DBus::ExternalRoute::mPrefix
Ip6Prefix mPrefix
Definition: types.hpp:164
otbr::DBus::OTBR_SRP_SERVER_STATE_STOPPED
@ OTBR_SRP_SERVER_STATE_STOPPED
The SRP server is stopped.
Definition: types.hpp:528
otbr::DBus::SrpServerInfo::mHosts
Registration mHosts
The registration information of hosts on the SRP server.
Definition: types.hpp:566
otbr::DBus::MacCounters::mRxUnicast
uint32_t mRxUnicast
Definition: types.hpp:359
otbr::DBus::MacCounters::mRxBeacon
uint32_t mRxBeacon
Definition: types.hpp:383
otbr::DBus::Nat64ErrorCounters::mUnknown
Nat64PacketCounters mUnknown
Packet drop for unknown reasons.
Definition: types.hpp:680
otbr::DBus::Nat64AddressMapping::mIp6
Ip6Address mIp6
The IPv6 address of the mapping.
Definition: types.hpp:672
otbr::DBus::Nat64PacketCounters::m4To6Packets
uint64_t m4To6Packets
Number of packets translated from IPv4 to IPv6.
Definition: types.hpp:656
otbr::DBus::ExternalRoute::mNextHopIsThisDevice
bool mNextHopIsThisDevice
Definition: types.hpp:189
otbr::DBus::NeighborInfo::mIsChild
bool mIsChild
Is the neighbor a child.
Definition: types.hpp:506
otbr::DBus::OnMeshPrefix::mPreferred
bool mPreferred
Definition: types.hpp:116
otbr::DBus::RadioCoexMetrics::mNumRxGrantWaitActivated
uint32_t mNumRxGrantWaitActivated
Number of rx requests while grant was inactive that were ultimately granted.
Definition: types.hpp:617
otbr::DBus::OnMeshPrefix
Definition: types.hpp:96
otbr::DBus::BorderRoutingCounters::PacketsAndBytes
Definition: types.hpp:628
otbr::DBus::EnergyScanResult
Definition: types.hpp:73
otbr::DBus::Nat64PacketCounters
Definition: types.hpp:654
otbr::DBus::ActiveScanResult::mExtAddress
uint64_t mExtAddress
IEEE 802.15.4 Extended Address.
Definition: types.hpp:59
otbr::DBus::OnMeshPrefix::mConfigure
bool mConfigure
Definition: types.hpp:131
otbr::DBus::RadioSpinelMetrics
Definition: types.hpp:583
otbr::DBus::ChildInfo::mFullThreadDevice
bool mFullThreadDevice
Full Thread Device.
Definition: types.hpp:486
otbr::DBus::OnMeshPrefix::mDhcp
bool mDhcp
Definition: types.hpp:126
otbr::DBus::NeighborInfo::mMessageErrorRate
uint16_t mMessageErrorRate
(IPv6) msg error rate (0xffff->100%). Requires error tracking feature.
Definition: types.hpp:502
otbr::DBus::SrpServerInfo::mPort
uint16_t mPort
The listening port number.
Definition: types.hpp:564
otbr::DBus::ChildInfo::mExtAddress
uint64_t mExtAddress
IEEE 802.15.4 Extended Address.
Definition: types.hpp:474
otbr::DBus::ActiveScanResult
Definition: types.hpp:57
otbr::DBus::MacCounters::mTxNoAckRequested
uint32_t mTxNoAckRequested
Definition: types.hpp:253
otbr::DBus::IpCounters::mRxSuccess
uint32_t mRxSuccess
The number of IPv6 packets successfully received.
Definition: types.hpp:461
otbr::DBus::LeaderData::mDataVersion
uint8_t mDataVersion
Full Network Data Version.
Definition: types.hpp:513
otbr::DBus::ChildInfo::mLastRssi
int8_t mLastRssi
Last observed RSSI.
Definition: types.hpp:482
otbr::DBus::Nat64AddressMapping::mRemainingTimeMs
uint32_t mRemainingTimeMs
Remaining time before expiry in milliseconds.
Definition: types.hpp:673
otbr::DBus::ChildInfo::mIsStateRestoring
bool mIsStateRestoring
Is in restoring state.
Definition: types.hpp:488
otbr::DBus::RadioCoexMetrics::mNumTxRequest
uint32_t mNumTxRequest
Number of tx requests.
Definition: types.hpp:606
otbr::DBus::Nat64ErrorCounters::mIllegalPacket
Nat64PacketCounters mIllegalPacket
Packet drop due to failed to parse the datagram.
Definition: types.hpp:681
otbr::DBus::Nat64ProtocolCounters
Definition: types.hpp:660
otbr::DBus::IpCounters::mTxSuccess
uint32_t mTxSuccess
The number of IPv6 packets successfully transmitted.
Definition: types.hpp:460
otbr::DBus::DnssdCounters::mOtherResponse
uint32_t mOtherResponse
The number of other responses.
Definition: types.hpp:578
otbr::DBus::OnMeshPrefix::mRloc16
uint16_t mRloc16
Definition: types.hpp:106
otbr::DBus::Nat64TrafficCounters::m6To4Bytes
uint64_t m6To4Bytes
Sum of size of packets translated from IPv6 to IPv4.
Definition: types.hpp:651
otbr::DBus::RadioCoexMetrics
Definition: types.hpp:603
otbr::DBus::Nat64ErrorCounters::mUnsupportedProto
Nat64PacketCounters mUnsupportedProto
Packet drop due to unsupported IP protocol.
Definition: types.hpp:682
otbr::DBus::LinkModeConfig::mRxOnWhenIdle
bool mRxOnWhenIdle
1, if the sender has its receiver on when not transmitting. 0, otherwise.
Definition: types.hpp:81
otbr::DBus::RadioCoexMetrics::mNumRxGrantNone
uint32_t mNumRxGrantNone
Number of rx requests that completed without receiving grant.
Definition: types.hpp:622
otbr::DBus::ActiveScanResult::mLqi
uint8_t mLqi
LQI.
Definition: types.hpp:67
otbr::DBus::Ip6Prefix::mLength
uint8_t mLength
The IPv6 prefix length.
Definition: types.hpp:90
otbr::DBus::MacCounters::mTxOther
uint32_t mTxOther
Definition: types.hpp:285
otbr::DBus::Nat64ErrorCounters
Definition: types.hpp:678
otbr::DBus::BorderRoutingCounters::mInboundMulticast
PacketsAndBytes mInboundMulticast
The counters for inbound multicast.
Definition: types.hpp:635
otbr::DBus::NeighborInfo::mMleFrameCounter
uint32_t mMleFrameCounter
MLE Frame Counter.
Definition: types.hpp:497
otbr::DBus::DnssdCounters::mSuccessResponse
uint32_t mSuccessResponse
The number of successful responses.
Definition: types.hpp:573
otbr::DBus::NeighborInfo::mFullThreadDevice
bool mFullThreadDevice
Full Thread Device.
Definition: types.hpp:504
otbr::DBus::OTBR_SRP_SERVER_STATE_DISABLED
@ OTBR_SRP_SERVER_STATE_DISABLED
The SRP server is disabled.
Definition: types.hpp:526
otbr::DBus::SrpServerInfo::mState
SrpServerState mState
The state of the SRP server.
Definition: types.hpp:563
otbr::DBus::MacCounters::mRxData
uint32_t mRxData
Definition: types.hpp:371
otbr::DBus::SrpServerInfo::Registration::mDeletedCount
uint32_t mDeletedCount
The number of hosts/services in 'Deleted' state on the SRP server.
Definition: types.hpp:542
otbr::DBus::SrpServerInfo::Registration::mLeaseTimeTotal
uint64_t mLeaseTimeTotal
Definition: types.hpp:543
otbr::DBus::SrpServerInfo
Definition: types.hpp:537
otbr::DBus::MacCounters::mTxErrCca
uint32_t mTxErrCca
Definition: types.hpp:332
otbr::DBus::SrpServerInfo::Registration::mRemainingKeyLeaseTimeTotal
uint64_t mRemainingKeyLeaseTimeTotal
Definition: types.hpp:549
otbr::DBus::DnssdCounters::mNotImplementedResponse
uint32_t mNotImplementedResponse
The number of 'not implemented' responses.
Definition: types.hpp:577
otbr::DBus::SrpServerInfo::mAddressMode
SrpServerAddressMode mAddressMode
The address mode {unicast, anycast} of the SRP server.
Definition: types.hpp:565
otbr::DBus::RcpInterfaceMetrics::mTransferredFrameCount
uint64_t mTransferredFrameCount
The number of transferred frames.
Definition: types.hpp:594
otbr::DBus::NeighborInfo
Definition: types.hpp:491
otbr::DBus::LinkModeConfig::mNetworkData
bool mNetworkData
1, if the sender requires the full Network Data. 0, otherwise.
Definition: types.hpp:83
otbr::DBus::RadioCoexMetrics::mNumTxGrantImmediate
uint32_t mNumTxGrantImmediate
Number of tx requests while grant was active.
Definition: types.hpp:607
otbr::DBus::MacCounters::mTxDirectMaxRetryExpiry
uint32_t mTxDirectMaxRetryExpiry
Definition: types.hpp:311
otbr::DBus::Ip6Prefix::mPrefix
std::vector< uint8_t > mPrefix
The IPv6 prefix.
Definition: types.hpp:88
otbr::DBus::RcpInterfaceMetrics::mTxFrameByteCount
uint64_t mTxFrameByteCount
The number of transmitted bytes.
Definition: types.hpp:600
otbr::DBus::NeighborInfo::mLinkQualityIn
uint8_t mLinkQualityIn
Link Quality In.
Definition: types.hpp:498
otbr::DBus::MacCounters::mRxBeaconRequest
uint32_t mRxBeaconRequest
Definition: types.hpp:389
otbr::DBus::RcpInterfaceMetrics
Definition: types.hpp:591
otbr::DBus::OnMeshPrefix::mDefaultRoute
bool mDefaultRoute
Definition: types.hpp:136
otbr::DBus::RadioCoexMetrics::mNumTxDelayedGrant
uint32_t mNumTxDelayedGrant
Number of tx requests that were not granted within 50us.
Definition: types.hpp:612
otbr::DBus::RadioCoexMetrics::mNumTxGrantDeactivatedDuringRequest
uint32_t mNumTxGrantDeactivatedDuringRequest
Number of tx that were in progress when grant was deactivated.
Definition: types.hpp:611
otbr::DBus::RcpInterfaceMetrics::mRxFrameCount
uint64_t mRxFrameCount
The number of received frames.
Definition: types.hpp:597
otbr::DBus::ExternalRoute::mPreference
int8_t mPreference
Definition: types.hpp:176
otbr::DBus::ChildInfo::mAge
uint32_t mAge
Time last heard.
Definition: types.hpp:476
otbr::DBus::BorderRoutingCounters
Definition: types.hpp:626
otbr::DBus::NeighborInfo::mAverageRssi
int8_t mAverageRssi
Average RSSI.
Definition: types.hpp:499
otbr::DBus::ActiveScanResult::mDiscover
bool mDiscover
Result from MLE Discovery.
Definition: types.hpp:70
otbr::DBus::Nat64ProtocolCounters::mIcmp
Nat64TrafficCounters mIcmp
Counters for ICMP and ICMPv6.
Definition: types.hpp:663
otbr::DBus::OnMeshPrefix::mPrefix
Ip6Prefix mPrefix
Definition: types.hpp:101
otbr::DBus::ChildInfo::mChildId
uint16_t mChildId
Child ID.
Definition: types.hpp:478
otbr::DBus::Nat64TrafficCounters::m4To6Packets
uint64_t m4To6Packets
Number of packets translated from IPv4 to IPv6.
Definition: types.hpp:648
otbr::DBus::MacCounters::mTxErrAbort
uint32_t mTxErrAbort
Definition: types.hpp:338
otbr::DBus::ActiveScanResult::mPanId
uint16_t mPanId
IEEE 802.15.4 PAN ID.
Definition: types.hpp:63
otbr::DBus::ActiveScanResult::mChannel
uint8_t mChannel
IEEE 802.15.4 Channel.
Definition: types.hpp:65
otbr::DBus::Nat64ProtocolCounters::mUdp
Nat64TrafficCounters mUdp
Counters for UDP.
Definition: types.hpp:664
otbr::DBus::RadioCoexMetrics::mNumRxGrantImmediate
uint32_t mNumRxGrantImmediate
Number of rx requests while grant was active.
Definition: types.hpp:615
otbr::DBus::RcpInterfaceMetrics::mRcpInterfaceType
uint8_t mRcpInterfaceType
The RCP interface type.
Definition: types.hpp:593
otbr::DBus::NeighborInfo::mFrameErrorRate
uint16_t mFrameErrorRate
Frame error rate (0xffff->100%). Requires error tracking feature.
Definition: types.hpp:501
otbr::DBus::MacCounters::mTxData
uint32_t mTxData
Definition: types.hpp:259
otbr::DBus::Nat64ComponentState
Definition: types.hpp:640
otbr::DBus::BorderRoutingCounters::mOutboundUnicast
PacketsAndBytes mOutboundUnicast
The counters for outbound unicast.
Definition: types.hpp:636
otbr::DBus::DnssdCounters::mResolvedBySrp
uint32_t mResolvedBySrp
The number of queries completely resolved by the local SRP server.
Definition: types.hpp:580
otbr::DBus::SrpServerInfo::ResponseCounters
Definition: types.hpp:553
otbr::DBus::NeighborInfo::mRloc16
uint16_t mRloc16
RLOC16.
Definition: types.hpp:495
otbr::DBus::ActiveScanResult::mSteeringData
std::vector< uint8_t > mSteeringData
Steering Data.
Definition: types.hpp:62
otbr::DBus::MacCounters::mTxAckRequested
uint32_t mTxAckRequested
Definition: types.hpp:241
otbr::DBus::ActiveScanResult::mNetworkName
std::string mNetworkName
Thread Network Name.
Definition: types.hpp:60
otbr::DBus::EnergyScanResult::mChannel
uint8_t mChannel
IEEE 802.15.4 Channel.
Definition: types.hpp:75
otbr::DBus::ActiveScanResult::mRssi
int8_t mRssi
RSSI (dBm)
Definition: types.hpp:66
otbr::DBus::TxtEntry
Definition: types.hpp:518
otbr::DBus::ChildInfo::mMessageErrorRate
uint16_t mMessageErrorRate
(IPv6) msg error rate (0xffff->100%). Requires error tracking feature.
Definition: types.hpp:484
otbr::DBus::MacCounters::mRxOther
uint32_t mRxOther
Definition: types.hpp:395
otbr::DBus::Nat64TrafficCounters
Definition: types.hpp:646
otbr::DBus::RadioCoexMetrics::mStopped
bool mStopped
Stats collection stopped due to saturation.
Definition: types.hpp:623
otbr::DBus::ActiveScanResult::mIsNative
bool mIsNative
Native Commissioner flag.
Definition: types.hpp:69
otbr::DBus::RadioCoexMetrics::mNumTxGrantWait
uint32_t mNumTxGrantWait
Number of tx requests while grant was inactive.
Definition: types.hpp:608
otbr::DBus::DnssdCounters::mNameErrorResponse
uint32_t mNameErrorResponse
The number of name error responses.
Definition: types.hpp:576
otbr::DBus::RadioSpinelMetrics::mSpinelParseErrorCount
uint32_t mSpinelParseErrorCount
The number of spinel frame parse errors.
Definition: types.hpp:588
otbr::DBus::ChildInfo::mRxOnWhenIdle
bool mRxOnWhenIdle
rx-on-when-idle
Definition: types.hpp:485
error.hpp
otbr::DBus::MacCounters
Definition: types.hpp:196
otbr::DBus::RcpInterfaceMetrics::mTransferredValidFrameCount
uint64_t mTransferredValidFrameCount
The number of transferred valid frames.
Definition: types.hpp:595