@@ -73,7 +73,7 @@ extern "C" {
7373otError otBorderRoutingInit (otInstance * aInstance , uint32_t aInfraIfIndex , bool aInfraIfIsRunning );
7474
7575/**
76- * This method enables/ disables the Border Routing Manager.
76+ * Enables or disables the Border Routing Manager.
7777 *
7878 * @note The Border Routing Manager is disabled by default.
7979 *
@@ -87,10 +87,36 @@ otError otBorderRoutingInit(otInstance *aInstance, uint32_t aInfraIfIndex, bool
8787otError otBorderRoutingSetEnabled (otInstance * aInstance , bool aEnabled );
8888
8989/**
90- * This method returns the off-mesh-routable (OMR) prefix.
90+ * This function gets the preference used when advertising Route Info Options (e.g., for discovered OMR prefixes) in
91+ * Router Advertisement messages sent over the infrastructure link.
9192 *
92- * The randomly generated 64-bit prefix will be published
93- * in the Thread network if there isn't already an OMR prefix.
93+ * @param[in] aInstance A pointer to an OpenThread instance.
94+ *
95+ * @returns The OMR prefix advertisement preference.
96+ *
97+ */
98+ otRoutePreference otBorderRoutingGetRouteInfoOptionPreference (otInstance * aInstance );
99+
100+ /**
101+ * This function sets the preference to use when advertising Route Info Options (e.g., for discovered OMR prefixes) in
102+ * Router Advertisement messages sent over the infrastructure link.
103+ *
104+ * By default BR will use 'medium' preference level but this function allows the default value to be changed. As an
105+ * example, it can be set to 'low' preference in the case where device is a temporary BR (a mobile BR or a
106+ * battery-powered BR) to indicate that other BRs (if any) should be preferred over this BR on the infrastructure link.
107+ *
108+ * @param[in] aInstance A pointer to an OpenThread instance.
109+ * @param[in] aPreference The route preference to use.
110+ *
111+ */
112+ void otBorderRoutingSetRouteInfoOptionPreference (otInstance * aInstance , otRoutePreference aPreference );
113+
114+ /**
115+ * Gets the Off-Mesh-Routable (OMR) Prefix, for example `fdfc:1ff5:1512:5622::/64`.
116+ *
117+ * An OMR Prefix is a randomly generated 64-bit prefix that's published in the
118+ * Thread network if there isn't already an OMR prefix. This prefix can be reached
119+ * from the local Wi-Fi or Ethernet network.
94120 *
95121 * @param[in] aInstance A pointer to an OpenThread instance.
96122 * @param[out] aPrefix A pointer to where the prefix will be output to.
@@ -102,11 +128,10 @@ otError otBorderRoutingSetEnabled(otInstance *aInstance, bool aEnabled);
102128otError otBorderRoutingGetOmrPrefix (otInstance * aInstance , otIp6Prefix * aPrefix );
103129
104130/**
105- * This method returns the on-link prefix for the adjacent infrastructure link.
131+ * Gets the On-Link Prefix for the adjacent infrastructure link, for example `fd41:2650:a6f5:0::/64` .
106132 *
107- * The randomly generated 64-bit prefix will be advertised
108- * on the infrastructure link if there isn't already a usable
109- * on-link prefix being advertised on the link.
133+ * An On-Link Prefix is a randomly generated 64-bit prefix that's advertised on the infrastructure
134+ * link if there isn't already a usable on-link prefix being advertised on the link.
110135 *
111136 * @param[in] aInstance A pointer to an OpenThread instance.
112137 * @param[out] aPrefix A pointer to where the prefix will be output to.
@@ -118,12 +143,11 @@ otError otBorderRoutingGetOmrPrefix(otInstance *aInstance, otIp6Prefix *aPrefix)
118143otError otBorderRoutingGetOnLinkPrefix (otInstance * aInstance , otIp6Prefix * aPrefix );
119144
120145/**
121- * This function returns the local NAT64 prefix .
146+ * Gets the local NAT64 Prefix of the Border Router .
122147 *
123- * This prefix might not be advertised in the Thread network.
148+ * NAT64 Prefix might not be advertised in the Thread network.
124149 *
125- * This function is only available when `OPENTHREAD_CONFIG_BORDER_ROUTING_NAT64_ENABLE`
126- * is enabled.
150+ * `OPENTHREAD_CONFIG_BORDER_ROUTING_NAT64_ENABLE` must be enabled.
127151 *
128152 * @param[in] aInstance A pointer to an OpenThread instance.
129153 * @param[out] aPrefix A pointer to where the prefix will be output to.
0 commit comments