openthread-br  0.3.0-72c0388
Classes | Macros | Enumerations
types.hpp File Reference
#include "openthread-br/config.h"
#include <netinet/in.h>
#include <stdint.h>
#include <string.h>
#include <string>
#include <vector>
#include "common/byteswap.hpp"

Go to the source code of this file.

Classes

class  otbr::Ip6Address
 
class  otbr::Ip6Prefix
 
class  otbr::MacAddress
 
struct  otbr::MdnsResponseCounters
 
struct  otbr::MdnsTelemetryInfo
 

Macros

#define IN6ADDR_ANY   "::"
 
#define OTBR_IP6_ADDRESS_SIZE   16
 
#define OTBR_IP6_PREFIX_SIZE   8
 
#define OTBR_IP4_ADDRESS_SIZE   4
 
#define OTBR_NETWORK_KEY_SIZE   16
 
#define OTBR_PSKC_SIZE   16
 

Enumerations

enum  otbrError {
  OTBR_ERROR_NONE = 0, OTBR_ERROR_ERRNO = -1, OTBR_ERROR_DBUS = -2, OTBR_ERROR_MDNS = -3,
  OTBR_ERROR_OPENTHREAD = -4, OTBR_ERROR_REST = -5, OTBR_ERROR_SMCROUTE = -6, OTBR_ERROR_NOT_FOUND = -7,
  OTBR_ERROR_PARSE = -8, OTBR_ERROR_NOT_IMPLEMENTED = -9, OTBR_ERROR_INVALID_ARGS = -10, OTBR_ERROR_DUPLICATED = -11,
  OTBR_ERROR_ABORTED = -12, OTBR_ERROR_INVALID_STATE = -13, OTBR_ERROR_INFRA_LINK_CHANGED = -14
}
 
enum  {
  otbr::kSizePSKc = 16, otbr::kSizeNetworkName = 16, otbr::kSizeExtPanId = 8, otbr::kSizeEui64 = 8,
  otbr::kSizeExtAddr = kSizeEui64
}
 

Detailed Description

This file includes definition for data types used by Thread border agent.

Macro Definition Documentation

◆ IN6ADDR_ANY

#define IN6ADDR_ANY   "::"

Any IPv6 address literal.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kSizePSKc 

Size of PSKc.

kSizeNetworkName 

Max size of Network Name.

kSizeExtPanId 

Size of Extended PAN ID.

kSizeEui64 

Size of Eui64.

kSizeExtAddr 

Size of Extended Address.

◆ otbrError

enum otbrError

This enumeration represents error codes used throughout OpenThread Border Router.

Enumerator
OTBR_ERROR_NONE 

No error.

OTBR_ERROR_ERRNO 

Error defined by errno.

OTBR_ERROR_DBUS 

DBus error.

OTBR_ERROR_MDNS 

mDNS error.

OTBR_ERROR_OPENTHREAD 

OpenThread error.

OTBR_ERROR_REST 

Rest Server error.

OTBR_ERROR_SMCROUTE 

SMCRoute error.

OTBR_ERROR_NOT_FOUND 

Not found.

OTBR_ERROR_PARSE 

Parse error.

OTBR_ERROR_NOT_IMPLEMENTED 

Not implemented error.

OTBR_ERROR_INVALID_ARGS 

Invalid arguments error.

OTBR_ERROR_DUPLICATED 

Duplicated operation, resource or name.

OTBR_ERROR_ABORTED 

The operation is aborted.

OTBR_ERROR_INVALID_STATE 

The target isn't in a valid state.

OTBR_ERROR_INFRA_LINK_CHANGED 

The infrastructure link is changed.