openthread-br  0.3.0-72c0388
Public Member Functions | Static Public Member Functions | List of all members
otbr::ubus::UbusServer Class Reference

Public Member Functions

void InstallUbusObject (void)
 
void HandleDiagnosticGetResponse (otError aError, otMessage *aMessage, const otMessageInfo *aMessageInfo)
 

Static Public Member Functions

static void Initialize (Ncp::ControllerOpenThread *aController, std::mutex *aMutex)
 
static UbusServerGetInstance (void)
 
static int UbusScanHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusChannelHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusSetChannelHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusNetworknameHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusSetNetworknameHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusStateHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusMacfilterSetStateHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusPanIdHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusSetPanIdHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusPskcHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusSetPskcHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusNetworkkeyHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusSetNetworkkeyHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusRloc16Handler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusExtPanIdHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusSetExtPanIdHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusModeHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusSetModeHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusPartitionIdHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusLeaderdataHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusNetworkdataHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusParentHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusNeighborHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusThreadStartHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusThreadStopHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusLeaveHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusMacfilterAddrHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusMacfilterStateHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusMacfilterAddHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusMacfilterClearHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusMacfilterRemoveHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusCommissionerStartHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusJoinerAddHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusJoinerRemoveHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusJoinerNumHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static int UbusMgmtsetHandler (struct ubus_context *aContext, struct ubus_object *aObj, struct ubus_request_data *aRequest, const char *aMethod, struct blob_attr *aMsg)
 
static void HandleDiagnosticGetResponse (otError aError, otMessage *aMessage, const otMessageInfo *aMessageInfo, void *aContext)
 

Member Function Documentation

◆ GetInstance()

UbusServer & otbr::ubus::UbusServer::GetInstance ( void  )
static

This method return the instance of the global UbusServer.

Return values
Thereference of the UbusServer Instance.

◆ HandleDiagnosticGetResponse() [1/2]

void otbr::ubus::UbusServer::HandleDiagnosticGetResponse ( otError  aError,
otMessage *  aMessage,
const otMessageInfo *  aMessageInfo 
)

This method handle diagnosticget response.

Parameters
[in]aErrorA error of receiving the diagnostic response.
[in]aMessageA pointer to the message.
[in]aMessageInfoA pointer to the message information.

< If the device has its receiver on when not transmitting.

< If the device is an FTD.

< If the device requires the full Network Data.

◆ HandleDiagnosticGetResponse() [2/2]

void otbr::ubus::UbusServer::HandleDiagnosticGetResponse ( otError  aError,
otMessage *  aMessage,
const otMessageInfo *  aMessageInfo,
void *  aContext 
)
static

This method handle initial diagnostic get response.

Parameters
[in]aErrorA error of receiving the diagnostic response.
[in]aMessageA pointer to the message.
[in]aMessageInfoA pointer to the message information.
[in]aContextA pointer to the context.

◆ Initialize()

void otbr::ubus::UbusServer::Initialize ( Ncp::ControllerOpenThread aController,
std::mutex *  aMutex 
)
static

Constructor

Parameters
[in]aControllerA pointer to OpenThread Controller structure.
[in]aMutexA pointer to mutex.

◆ InstallUbusObject()

void otbr::ubus::UbusServer::InstallUbusObject ( void  )

This method install ubus object onto OpenWRT.

◆ UbusChannelHandler()

int otbr::ubus::UbusServer::UbusChannelHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get channel function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusCommissionerStartHandler()

int otbr::ubus::UbusServer::UbusCommissionerStartHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus start commissioner function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusExtPanIdHandler()

int otbr::ubus::UbusServer::UbusExtPanIdHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get extpanid function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusJoinerAddHandler()

int otbr::ubus::UbusServer::UbusJoinerAddHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus add joiner function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusJoinerNumHandler()

int otbr::ubus::UbusServer::UbusJoinerNumHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get joiner information function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusJoinerRemoveHandler()

int otbr::ubus::UbusServer::UbusJoinerRemoveHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus remove joiner function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusLeaderdataHandler()

int otbr::ubus::UbusServer::UbusLeaderdataHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get leaderdata function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusLeaveHandler()

int otbr::ubus::UbusServer::UbusLeaveHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus leave function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusMacfilterAddHandler()

int otbr::ubus::UbusServer::UbusMacfilterAddHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus macfilter address add function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusMacfilterAddrHandler()

int otbr::ubus::UbusServer::UbusMacfilterAddrHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get macfilter address function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusMacfilterClearHandler()

int otbr::ubus::UbusServer::UbusMacfilterClearHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus macfilter address clear function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusMacfilterRemoveHandler()

int otbr::ubus::UbusServer::UbusMacfilterRemoveHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus macfilter address remove function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusMacfilterSetStateHandler()

int otbr::ubus::UbusServer::UbusMacfilterSetStateHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus set state function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusMacfilterStateHandler()

int otbr::ubus::UbusServer::UbusMacfilterStateHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get macfilter state function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusMgmtsetHandler()

int otbr::ubus::UbusServer::UbusMgmtsetHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus mgmtset function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusModeHandler()

int otbr::ubus::UbusServer::UbusModeHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get mode function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusNeighborHandler()

int otbr::ubus::UbusServer::UbusNeighborHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get neighbor function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusNetworkdataHandler()

int otbr::ubus::UbusServer::UbusNetworkdataHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get networkdata function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusNetworkkeyHandler()

int otbr::ubus::UbusServer::UbusNetworkkeyHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get networkkey function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusNetworknameHandler()

int otbr::ubus::UbusServer::UbusNetworknameHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get networkname function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusPanIdHandler()

int otbr::ubus::UbusServer::UbusPanIdHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get panid function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusParentHandler()

int otbr::ubus::UbusServer::UbusParentHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get parent function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusPartitionIdHandler()

int otbr::ubus::UbusServer::UbusPartitionIdHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get partitionid function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusPskcHandler()

int otbr::ubus::UbusServer::UbusPskcHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get pskc function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusRloc16Handler()

int otbr::ubus::UbusServer::UbusRloc16Handler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get rloc16 function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusScanHandler()

int otbr::ubus::UbusServer::UbusScanHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus scan function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusSetChannelHandler()

int otbr::ubus::UbusServer::UbusSetChannelHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus set channel function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusSetExtPanIdHandler()

int otbr::ubus::UbusServer::UbusSetExtPanIdHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus set extpanid function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusSetModeHandler()

int otbr::ubus::UbusServer::UbusSetModeHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus set mode function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusSetNetworkkeyHandler()

int otbr::ubus::UbusServer::UbusSetNetworkkeyHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus set networkkey function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusSetNetworknameHandler()

int otbr::ubus::UbusServer::UbusSetNetworknameHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus set networkname function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusSetPanIdHandler()

int otbr::ubus::UbusServer::UbusSetPanIdHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus set panid function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusSetPskcHandler()

int otbr::ubus::UbusServer::UbusSetPskcHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus set pskc function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusStateHandler()

int otbr::ubus::UbusServer::UbusStateHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus get state function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusThreadStartHandler()

int otbr::ubus::UbusServer::UbusThreadStartHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus start thread function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

◆ UbusThreadStopHandler()

int otbr::ubus::UbusServer::UbusThreadStopHandler ( struct ubus_context *  aContext,
struct ubus_object *  aObj,
struct ubus_request_data *  aRequest,
const char *  aMethod,
struct blob_attr *  aMsg 
)
static

This method handle ubus stop thread function request.

Parameters
[in]aContextA pointer to the ubus context.
[in]aObjA pointer to the ubus object.
[in]aRequestA pointer to the ubus request.
[in]aMethodA pointer to the ubus method.
[in]aMsgA pointer to the ubus message.
Return values
0Successfully handler the request.

The documentation for this class was generated from the following files: