Skip to content

Commit b68e5ed

Browse files
author
Arto Kinnunen
committed
Merge commit '780e9afb8f3b8f09e66573e7d4ba096dd9a87dd7'
Nanostack v10.1.0 for Mbed OS 5.12 * commit '780e9afb8f3b8f09e66573e7d4ba096dd9a87dd7': Squashed 'features/nanostack/sal-stack-nanostack/' changes from 513a38e..c5ee9e4
2 parents 433ab3e + 780e9af commit b68e5ed

File tree

275 files changed

+23238
-443
lines changed

Some content is hidden

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

275 files changed

+23238
-443
lines changed

features/nanostack/sal-stack-nanostack/.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.settings/
2-
.yotta.json
32
*.dep
43
*.htm
54
*.crf
@@ -66,8 +65,7 @@ cscope.files
6665
!debugger.ini
6766
*Log.txt
6867
*.mpw
69-
yotta_modules
70-
yotta_targets
7168
build
7269
html
7370
site
71+

features/nanostack/sal-stack-nanostack/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ clean-extra: $(CLEANTESTDIRS)
109109
# 3. TBD: importing to mbed OS
110110

111111
TARGET_DIR:=release
112-
CONFIGURATIONS_TO_BUILD:=lowpan_border_router lowpan_host lowpan_router nanostack_full thread_border_router thread_router thread_end_device ethernet_host
112+
CONFIGURATIONS_TO_BUILD:=lowpan_border_router lowpan_host lowpan_router nanostack_full thread_border_router thread_router thread_end_device ethernet_host ws_border_router ws_router
113113
TOOLCHAINS_TO_BUILD:=GCC ARM ARMC6 IAR
114114
CORES_TO_BUILD:=Cortex-M0 Cortex-M3
115115

features/nanostack/sal-stack-nanostack/nanostack/dhcp_service_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2018, Arm Limited and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

features/nanostack/sal-stack-nanostack/nanostack/ethernet_mac_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2018, Arm Limited and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

features/nanostack/sal-stack-nanostack/nanostack/mlme.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ typedef enum {
264264
macAutoRequestKeyIndex = 0x7b, /*<The index of the key used for automatic data*/
265265
macDefaultKeySource = 0x7c, /*<Default key source*/
266266
//NON standard extension
267+
macRfConfiguration = 0xfb, /*<RF channel configuration parameters*/
267268
macAcceptByPassUnknowDevice = 0xfc, /*< Accept data trough MAC if packet is data can be authenticated by group key nad MIC. Security enforsment point must be handled carefully these packets */
268269
macLoadBalancingBeaconTx = 0xfd, /*< Trig Beacon from load balance module periodic */
269270
macLoadBalancingAcceptAnyBeacon = 0xfe, /*<Beacon accept state control from other network. Value size bool, data true=Enable, false=disable .*/

features/nanostack/sal-stack-nanostack/nanostack/multicast_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2012-2018, Arm Limited and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

features/nanostack/sal-stack-nanostack/nanostack/net_address_extension.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2018, Arm Limited and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

features/nanostack/sal-stack-nanostack/nanostack/net_interface.h

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2019, Arm Limited and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -235,6 +235,18 @@ typedef struct {
235235
const uint8_t *key_chain[4]; /**< Certificate private key. */
236236
} arm_certificate_chain_entry_s;
237237

238+
/** Certificate structure. */
239+
typedef struct {
240+
const uint8_t *cert; /**< Certificate pointer. */
241+
uint16_t cert_len; /**< Certificate length. */
242+
} arm_certificate_entry_s;
243+
244+
/** Certificate Revocation List structure. */
245+
typedef struct {
246+
const uint8_t *crl; /**< Certificate Revocation List pointer. */
247+
uint16_t crl_len; /**< Certificate Revocation List length. */
248+
} arm_cert_revocation_list_entry_s;
249+
238250
/** Structure for the network keys used by net_network_key_get */
239251
typedef struct ns_keys_t
240252

@@ -880,12 +892,56 @@ extern int8_t arm_net_route_delete(const uint8_t *prefix, uint8_t prefix_len, co
880892
extern int8_t arm_nwk_6lowpan_border_router_nd_context_load(int8_t interface_id, uint8_t *contex_data); //NVM
881893

882894
/**
883-
* Set certificate chain for PANA
895+
* Set certificate chain
896+
*
884897
* \param chain_info Certificate chain.
885898
* \return 0 on success, negative on failure.
886899
*/
887900
extern int8_t arm_network_certificate_chain_set(const arm_certificate_chain_entry_s *chain_info);
888901

902+
/**
903+
* Add trusted certificate
904+
*
905+
* This is used to add trusted root or intermediate certificate in addition to those
906+
* added using certificate chain set call. Function can be called several times to add
907+
* more than one certificate.
908+
*
909+
* \param cert Certificate.
910+
* \return 0 on success, negative on failure.
911+
*/
912+
extern int8_t arm_network_trusted_certificate_add(const arm_certificate_entry_s *cert);
913+
914+
/**
915+
* Remove trusted certificate
916+
*
917+
* This is used to remove trusted root or intermediate certificate.
918+
*
919+
* \param cert Certificate.
920+
* \return 0 on success, negative on failure.
921+
*/
922+
extern int8_t arm_network_trusted_certificate_remove(const arm_certificate_entry_s *cert);
923+
924+
/**
925+
* Add Certificate Revocation List
926+
*
927+
* This is used to add Certificate Revocation List (CRL). Function can be called several
928+
* times to add more than one Certificate Revocation List.
929+
*
930+
* \param crl Certificate revocation list
931+
* \return 0 on success, negative on failure.
932+
*/
933+
extern int8_t arm_network_certificate_revocation_list_add(const arm_cert_revocation_list_entry_s *crl);
934+
935+
/**
936+
* Remove Certificate Revocation List
937+
*
938+
* This is used to remove Certificate Revocation List.
939+
*
940+
* \param crl Certificate revocation list
941+
* \return 0 on success, negative on failure.
942+
*/
943+
extern int8_t arm_network_certificate_revocation_list_remove(const arm_cert_revocation_list_entry_s *crl);
944+
889945
/**
890946
* \brief Add PSK key to TLS library.
891947
*

features/nanostack/sal-stack-nanostack/nanostack/net_load_balance_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2018, Arm Limited and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

features/nanostack/sal-stack-nanostack/nanostack/net_nvm_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2018, Arm Limited and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)