Skip to content

Commit f1ae1c2

Browse files
maciejbaczmanskitmon-nordic
authored andcommitted
openthread: update libraries based on commit 2060039
Update OpenThread pre-built libraries. Signed-off-by: Maciej Baczmanski <[email protected]>
1 parent 0b135cd commit f1ae1c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+878
-565
lines changed

openthread/include/openthread/backbone_router_ftd.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ otError otBackboneRouterGetDomainPrefix(otInstance *aInstance, otBorderRouterCon
207207
*
208208
*
209209
*/
210-
void otBackboneRouterConfigNextDuaRegistrationResponse(otInstance * aInstance,
210+
void otBackboneRouterConfigNextDuaRegistrationResponse(otInstance *aInstance,
211211
const otIp6InterfaceIdentifier *aMlIid,
212212
uint8_t aStatus);
213213

@@ -242,9 +242,9 @@ typedef enum
242242
* @param[in] aAddress The IPv6 multicast address of the Multicast Listener.
243243
*
244244
*/
245-
typedef void (*otBackboneRouterMulticastListenerCallback)(void * aContext,
245+
typedef void (*otBackboneRouterMulticastListenerCallback)(void *aContext,
246246
otBackboneRouterMulticastListenerEvent aEvent,
247-
const otIp6Address * aAddress);
247+
const otIp6Address *aAddress);
248248

249249
/**
250250
* This method sets the Backbone Router Multicast Listener callback.
@@ -254,9 +254,9 @@ typedef void (*otBackboneRouterMulticastListenerCallback)(void *
254254
* @param[in] aContext A user context pointer.
255255
*
256256
*/
257-
void otBackboneRouterSetMulticastListenerCallback(otInstance * aInstance,
257+
void otBackboneRouterSetMulticastListenerCallback(otInstance *aInstance,
258258
otBackboneRouterMulticastListenerCallback aCallback,
259-
void * aContext);
259+
void *aContext);
260260

261261
/**
262262
* Clears the Multicast Listeners.
@@ -329,9 +329,9 @@ typedef struct otBackboneRouterMulticastListenerInfo
329329
* @sa otBackboneRouterMulticastListenerAdd
330330
*
331331
*/
332-
otError otBackboneRouterMulticastListenerGetNext(otInstance * aInstance,
332+
otError otBackboneRouterMulticastListenerGetNext(otInstance *aInstance,
333333
otBackboneRouterMulticastListenerIterator *aIterator,
334-
otBackboneRouterMulticastListenerInfo * aListenerInfo);
334+
otBackboneRouterMulticastListenerInfo *aListenerInfo);
335335

336336
/**
337337
* Represents the ND Proxy events.
@@ -354,9 +354,9 @@ typedef enum
354354
* `OT_BACKBONE_ROUTER_NDPROXY_CLEARED`.
355355
*
356356
*/
357-
typedef void (*otBackboneRouterNdProxyCallback)(void * aContext,
357+
typedef void (*otBackboneRouterNdProxyCallback)(void *aContext,
358358
otBackboneRouterNdProxyEvent aEvent,
359-
const otIp6Address * aDua);
359+
const otIp6Address *aDua);
360360

361361
/**
362362
* This method sets the Backbone Router ND Proxy callback.
@@ -366,9 +366,9 @@ typedef void (*otBackboneRouterNdProxyCallback)(void * aCo
366366
* @param[in] aContext A user context pointer.
367367
*
368368
*/
369-
void otBackboneRouterSetNdProxyCallback(otInstance * aInstance,
369+
void otBackboneRouterSetNdProxyCallback(otInstance *aInstance,
370370
otBackboneRouterNdProxyCallback aCallback,
371-
void * aContext);
371+
void *aContext);
372372

373373
/**
374374
* Represents the Backbone Router ND Proxy info.
@@ -392,8 +392,8 @@ typedef struct otBackboneRouterNdProxyInfo
392392
* @retval OT_ERROR_NOT_FOUND Failed to find the Domain Unicast Address in the ND Proxy table.
393393
*
394394
*/
395-
otError otBackboneRouterGetNdProxyInfo(otInstance * aInstance,
396-
const otIp6Address * aDua,
395+
otError otBackboneRouterGetNdProxyInfo(otInstance *aInstance,
396+
const otIp6Address *aDua,
397397
otBackboneRouterNdProxyInfo *aNdProxyInfo);
398398

399399
/**
@@ -415,9 +415,9 @@ typedef enum
415415
* @param[in] aDomainPrefix The new Domain Prefix if added or changed, nullptr otherwise.
416416
*
417417
*/
418-
typedef void (*otBackboneRouterDomainPrefixCallback)(void * aContext,
418+
typedef void (*otBackboneRouterDomainPrefixCallback)(void *aContext,
419419
otBackboneRouterDomainPrefixEvent aEvent,
420-
const otIp6Prefix * aDomainPrefix);
420+
const otIp6Prefix *aDomainPrefix);
421421
/**
422422
* This method sets the Backbone Router Domain Prefix callback.
423423
*
@@ -426,9 +426,9 @@ typedef void (*otBackboneRouterDomainPrefixCallback)(void *
426426
* @param[in] aContext A user context pointer.
427427
*
428428
*/
429-
void otBackboneRouterSetDomainPrefixCallback(otInstance * aInstance,
429+
void otBackboneRouterSetDomainPrefixCallback(otInstance *aInstance,
430430
otBackboneRouterDomainPrefixCallback aCallback,
431-
void * aContext);
431+
void *aContext);
432432

433433
/**
434434
* @}

openthread/include/openthread/border_router.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ otError otBorderRouterRemoveOnMeshPrefix(otInstance *aInstance, const otIp6Prefi
105105
* @retval OT_ERROR_NOT_FOUND No subsequent On Mesh prefix exists in the Thread Network Data.
106106
*
107107
*/
108-
otError otBorderRouterGetNextOnMeshPrefix(otInstance * aInstance,
108+
otError otBorderRouterGetNextOnMeshPrefix(otInstance *aInstance,
109109
otNetworkDataIterator *aIterator,
110-
otBorderRouterConfig * aConfig);
110+
otBorderRouterConfig *aConfig);
111111

112112
/**
113113
* Add an external route configuration to the local network data.
@@ -150,7 +150,7 @@ otError otBorderRouterRemoveRoute(otInstance *aInstance, const otIp6Prefix *aPre
150150
* @retval OT_ERROR_NOT_FOUND No subsequent external route entry exists in the Thread Network Data.
151151
*
152152
*/
153-
otError otBorderRouterGetNextRoute(otInstance * aInstance,
153+
otError otBorderRouterGetNextRoute(otInstance *aInstance,
154154
otNetworkDataIterator *aIterator,
155155
otExternalRouteConfig *aConfig);
156156

openthread/include/openthread/border_routing.h

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -141,30 +141,45 @@ otError otBorderRoutingInit(otInstance *aInstance, uint32_t aInfraIfIndex, bool
141141
otError otBorderRoutingSetEnabled(otInstance *aInstance, bool aEnabled);
142142

143143
/**
144-
* This function gets the preference used when advertising Route Info Options (e.g., for discovered OMR prefixes) in
145-
* Router Advertisement messages sent over the infrastructure link.
144+
* This function gets the current preference used when advertising Route Info Options (RIO) in Router Advertisement
145+
* messages sent over the infrastructure link.
146146
*
147-
* @param[in] aInstance A pointer to an OpenThread instance.
147+
* The RIO preference is determined as follows:
148148
*
149-
* @returns The OMR prefix advertisement preference.
149+
* - If explicitly set by user by calling `otBorderRoutingSetRouteInfoOptionPreference()`, the given preference is
150+
* used.
151+
* - Otherwise, it is determined based on device's current role: Medium preference when in router/leader role and
152+
* low preference when in child role.
153+
*
154+
* @returns The current Route Info Option preference.
150155
*
151156
*/
152157
otRoutePreference otBorderRoutingGetRouteInfoOptionPreference(otInstance *aInstance);
153158

154159
/**
155-
* This function sets the preference to use when advertising Route Info Options in Router Advertisement messages sent
156-
* over the infrastructure link, for example for discovered OMR prefixes.
160+
* This function explicitly sets the preference to use when advertising Route Info Options (RIO) in Router
161+
* Advertisement messages sent over the infrastructure link.
157162
*
158-
* By default BR will use `medium` preference level, but this function allows the default value to be changed. As an
159-
* example, it can be set to `low` preference in the case where device is a temporary BR (a mobile BR or a
160-
* battery-powered BR) to indicate that other BRs (if any) should be preferred over this BR on the infrastructure link.
163+
* After a call to this function, BR will use the given preference for all its advertised RIOs. The preference can be
164+
* cleared by calling `otBorderRoutingClearRouteInfoOptionPreference()`.
161165
*
162166
* @param[in] aInstance A pointer to an OpenThread instance.
163167
* @param[in] aPreference The route preference to use.
164168
*
165169
*/
166170
void otBorderRoutingSetRouteInfoOptionPreference(otInstance *aInstance, otRoutePreference aPreference);
167171

172+
/**
173+
* This function clears a previously set preference value for advertised Route Info Options.
174+
*
175+
* After a call to this function, BR will use device's role to determine the RIO preference: Medium preference when
176+
* in router/leader role and low preference when in child role.
177+
*
178+
* @param[in] aInstance A pointer to an OpenThread instance.
179+
*
180+
*/
181+
void otBorderRoutingClearRouteInfoOptionPreference(otInstance *aInstance);
182+
168183
/**
169184
* Gets the local Off-Mesh-Routable (OMR) Prefix, for example `fdfc:1ff5:1512:5622::/64`.
170185
*
@@ -190,7 +205,7 @@ otError otBorderRoutingGetOmrPrefix(otInstance *aInstance, otIp6Prefix *aPrefix)
190205
* @param[out] aPrefix A pointer to output the favored OMR prefix.
191206
* @param[out] aPreference A pointer to output the preference associated the favored prefix.
192207
*
193-
* @retval OT_ERROR_INVALID_STATE The Border Routing Manager is not initialized yet.
208+
* @retval OT_ERROR_INVALID_STATE The Border Routing Manager is not running yet.
194209
* @retval OT_ERROR_NONE Successfully retrieved the favored OMR prefix.
195210
*
196211
*/
@@ -240,8 +255,8 @@ otError otBorderRoutingGetNat64Prefix(otInstance *aInstance, otIp6Prefix *aPrefi
240255
* @retval OT_ERROR_NONE Successfully retrieved the favored NAT64 prefix.
241256
*
242257
*/
243-
otError otBorderRoutingGetFavoredNat64Prefix(otInstance * aInstance,
244-
otIp6Prefix * aPrefix,
258+
otError otBorderRoutingGetFavoredNat64Prefix(otInstance *aInstance,
259+
otIp6Prefix *aPrefix,
245260
otRoutePreference *aPreference);
246261

247262
/**
@@ -271,9 +286,9 @@ void otBorderRoutingPrefixTableInitIterator(otInstance *aInstance, otBorderRouti
271286
* @retval OT_ERROR_NOT_FOUND No more entries in the table.
272287
*
273288
*/
274-
otError otBorderRoutingGetNextPrefixTableEntry(otInstance * aInstance,
289+
otError otBorderRoutingGetNextPrefixTableEntry(otInstance *aInstance,
275290
otBorderRoutingPrefixTableIterator *aIterator,
276-
otBorderRoutingPrefixTableEntry * aEntry);
291+
otBorderRoutingPrefixTableEntry *aEntry);
277292

278293
/**
279294
* @}

openthread/include/openthread/cli.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ extern "C" {
5252
typedef struct otCliCommand
5353
{
5454
const char *mName; ///< A pointer to the command string.
55-
otError (*mCommand)(void * aContext,
55+
otError (*mCommand)(void *aContext,
5656
uint8_t aArgsLength,
57-
char * aArgs[]); ///< A function pointer to process the command.
57+
char *aArgs[]); ///< A function pointer to process the command.
5858
} otCliCommand;
5959

6060
/**

0 commit comments

Comments
 (0)