mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10231 from artokin/nanostack_armc6_update
Nanostack ARMC6 updatepull/10267/head
commit
cd8d362899
|
@ -408,8 +408,9 @@ static int send_to_real_socket(int8_t socket_id, const ns_address_t *address, co
|
||||||
.msg_iovlen = 1
|
.msg_iovlen = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
uint8_t ancillary_databuffer[NS_CMSG_SPACE(sizeof(ns_in6_pktinfo_t))];
|
||||||
|
|
||||||
if (memcmp(source_address, ns_in6addr_any, 16)) {
|
if (memcmp(source_address, ns_in6addr_any, 16)) {
|
||||||
uint8_t ancillary_databuffer[NS_CMSG_SPACE(sizeof(ns_in6_pktinfo_t))];
|
|
||||||
ns_cmsghdr_t *cmsg;
|
ns_cmsghdr_t *cmsg;
|
||||||
ns_in6_pktinfo_t *pktinfo;
|
ns_in6_pktinfo_t *pktinfo;
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ns_types.h"
|
#include "ns_types.h"
|
||||||
#include "fhss_api.h"
|
#include "fhss_api.h"
|
||||||
#include "fhss_config.h"
|
#include "fhss_config.h"
|
||||||
|
@ -70,7 +71,7 @@ static fhss_timeout_s *allocate_timeout(void)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < NUMBER_OF_SIMULTANEOUS_TIMEOUTS; i++) {
|
for (int i = 0; i < NUMBER_OF_SIMULTANEOUS_TIMEOUTS; i++) {
|
||||||
if (fhss_timeout[i].fhss_timer_callback == NULL) {
|
if (fhss_timeout[i].fhss_timer_callback == NULL) {
|
||||||
memset(&fhss_timeout[i], sizeof(fhss_timeout_s), 0);
|
memset(&fhss_timeout[i], 0, sizeof(fhss_timeout_s));
|
||||||
return &fhss_timeout[i];
|
return &fhss_timeout[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -170,3 +171,4 @@ fhss_timer_t fhss_functions = {
|
||||||
.fhss_get_timestamp = platform_fhss_timestamp_read,
|
.fhss_get_timestamp = platform_fhss_timestamp_read,
|
||||||
.fhss_resolution_divider = 1
|
.fhss_resolution_divider = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,12 @@
|
||||||
|
|
||||||
#include "mbedtls/entropy_poll.h"
|
#include "mbedtls/entropy_poll.h"
|
||||||
|
|
||||||
|
#ifdef MBEDTLS_ENTROPY_HARDWARE_ALT
|
||||||
|
#if defined(MBEDTLS_PLATFORM_C)
|
||||||
|
#include "mbedtls/platform.h"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
void arm_random_module_init(void)
|
void arm_random_module_init(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue