|
openthread-br
0.3.0-72c0388
|
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 UbusServer & | GetInstance (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) |
|
static |
This method return the instance of the global UbusServer.
| The | reference of the UbusServer Instance. |
| void otbr::ubus::UbusServer::HandleDiagnosticGetResponse | ( | otError | aError, |
| otMessage * | aMessage, | ||
| const otMessageInfo * | aMessageInfo | ||
| ) |
This method handle diagnosticget response.
| [in] | aError | A error of receiving the diagnostic response. |
| [in] | aMessage | A pointer to the message. |
| [in] | aMessageInfo | A 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.
|
static |
This method handle initial diagnostic get response.
| [in] | aError | A error of receiving the diagnostic response. |
| [in] | aMessage | A pointer to the message. |
| [in] | aMessageInfo | A pointer to the message information. |
| [in] | aContext | A pointer to the context. |
|
static |
Constructor
| [in] | aController | A pointer to OpenThread Controller structure. |
| [in] | aMutex | A pointer to mutex. |
| void otbr::ubus::UbusServer::InstallUbusObject | ( | void | ) |
This method install ubus object onto OpenWRT.
|
static |
This method handle ubus get channel function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus start commissioner function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get extpanid function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus add joiner function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get joiner information function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus remove joiner function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get leaderdata function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus leave function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus macfilter address add function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get macfilter address function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus macfilter address clear function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus macfilter address remove function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus set state function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get macfilter state function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus mgmtset function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get mode function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get neighbor function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get networkdata function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get networkkey function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get networkname function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get panid function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get parent function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get partitionid function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get pskc function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get rloc16 function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus scan function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus set channel function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus set extpanid function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus set mode function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus set networkkey function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus set networkname function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus set panid function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus set pskc function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus get state function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus start thread function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
|
static |
This method handle ubus stop thread function request.
| [in] | aContext | A pointer to the ubus context. |
| [in] | aObj | A pointer to the ubus object. |
| [in] | aRequest | A pointer to the ubus request. |
| [in] | aMethod | A pointer to the ubus method. |
| [in] | aMsg | A pointer to the ubus message. |
| 0 | Successfully handler the request. |
1.8.17