Merge pull request #10231 from artokin/nanostack_armc6_update

Nanostack ARMC6 update
pull/10267/head
Cruz Monrreal 2019-03-28 17:07:32 -05:00 committed by GitHub
commit cd8d362899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -408,8 +408,9 @@ static int send_to_real_socket(int8_t socket_id, const ns_address_t *address, co
.msg_iovlen = 1
};
uint8_t ancillary_databuffer[NS_CMSG_SPACE(sizeof(ns_in6_pktinfo_t))];
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_in6_pktinfo_t *pktinfo;

View File

@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "ns_types.h"
#include "fhss_api.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++) {
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];
}
}
@ -170,3 +171,4 @@ fhss_timer_t fhss_functions = {
.fhss_get_timestamp = platform_fhss_timestamp_read,
.fhss_resolution_divider = 1
};

View File

@ -19,6 +19,12 @@
#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)
{
}