forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release_internal' into release_external
* release_internal: (170 commits) Add missing function macros (ARMmbed#1897) implemented wisun routing cost calculation Fix warning found by PVS-studio (ARMmbed#1891) Additional time for distribution of dataset added (ARMmbed#1892) Reverted commit ARMmbed#1888 and fixed thread_bbr_dua_entry_find (ARMmbed#1893) BBR route for added with preference. Route info updated. (ARMmbed#1888) Fix issues found by coverity (ARMmbed#1889) Fixes for Wi-SUN bbr behaviour Adjust COAP callback return values (ARMmbed#1886) Fix for multicast ping forwarding before adding MPL header(ARMmbed#1883) FHSS: fixed missing us convert FHSS: Traces in set parent FHSS: Time unit defines added FHSS: changed traces to use timestamp from MAC FHSS: use divider function in ufsi calculation FHSS: function to check if remaining slots is negative Address registration fix (ARMmbed#1882) FHSS unit tests: Fixed tr51 tests FHSS: fixed tr51 channel table size FHSS unit tests: Fixed tr51 tests ...
- Loading branch information
Showing
104 changed files
with
2,666 additions
and
942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Copyright (c) 2017-2018, Arm Limited and affiliates. | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* 3. Neither the name of the copyright holder nor the | ||
* names of its contributors may be used to endorse or promote products | ||
* derived from this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
/** | ||
* \file ws_bbr_api.h | ||
* \brief Wi-SUN backbone border router (BBR) application interface. | ||
* | ||
* This is Wi-SUN backbone Border router service. | ||
* When started the module takes care of starting the | ||
* components that enables default border router functionality in Wi-SUN network. | ||
* | ||
*/ | ||
|
||
#ifndef WS_BBR_API_H_ | ||
#define WS_BBR_API_H_ | ||
|
||
#include "ns_types.h" | ||
|
||
/** | ||
* Start backbone border router service. | ||
* | ||
* if backbone interface is enabled and allows routing. | ||
* Enables ND proxy for address found from backbone | ||
* | ||
* \param interface_id Wi-SUN network interface id. | ||
* \param backbone_interface_id backbone interface id. | ||
* | ||
* \return 0 on success | ||
* \return <0 in case of errors | ||
* | ||
*/ | ||
int ws_bbr_start(int8_t interface_id, int8_t backbone_interface_id); | ||
|
||
/** | ||
* Stop backbone Border router. | ||
* | ||
* \param interface_id interface ID of the Wi-SUN network | ||
* | ||
* \return 0 on success | ||
* \return <0 in case of errors | ||
* | ||
*/ | ||
void ws_bbr_stop(int8_t interface_id); | ||
|
||
|
||
#endif /* WS_BBR_API_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.