/* * Copyright (c) 2021, Pelion and affiliates. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef WS_BOOTSTRAP_6LR_H_ #define WS_BOOTSTRAP_6LR_H_ #if defined(HAVE_WS) && defined(HAVE_WS_ROUTER) void ws_bootstrap_6lr_asynch_ind(struct protocol_interface_info_entry *cur, const struct mcps_data_ind_s *data, const struct mcps_data_ie_list *ie_ext, uint8_t message_type); void ws_bootstrap_6lr_asynch_confirm(struct protocol_interface_info_entry *interface, uint8_t asynch_message); bool ws_bootstrap_6lr_eapol_relay_state_active(protocol_interface_info_entry_t *cur); void ws_bootstrap_6lr_event_handler(protocol_interface_info_entry_t *cur, arm_event_s *event); void ws_bootstrap_6lr_state_machine(protocol_interface_info_entry_t *cur); void ws_bootstrap_6lr_seconds_timer(protocol_interface_info_entry_t *cur, uint32_t seconds); void ws_bootstrap_6lr_primary_parent_update(protocol_interface_info_entry_t *interface, mac_neighbor_table_entry_t *neighbor); void ws_bootstrap_6lr_secondary_parent_update(protocol_interface_info_entry_t *interface); void ws_bootstrap_6lr_address_registration_update(protocol_interface_info_entry_t *interface, const uint8_t addr[16]); #define wisun_mode_router(cur) (cur->bootsrap_mode == ARM_NWK_BOOTSRAP_MODE_6LoWPAN_ROUTER) #else #define ws_bootstrap_6lr_asynch_ind(cur, data, ie_ext, message_type) ((void) 0) #define ws_bootstrap_6lr_asynch_confirm(interface, asynch_message) ((void) 0) #define ws_bootstrap_6lr_eapol_relay_state_active false #define ws_bootstrap_6lr_event_handler(cur, event) ((void) 0) #define ws_bootstrap_6lr_state_machine(cur) ((void) 0) #define ws_bootstrap_6lr_seconds_timer(cur, seconds) ((void) 0) #define ws_bootstrap_6lr_primary_parent_update(interface, neighbor) ((void) 0) #define ws_bootstrap_6lr_secondary_parent_update(interface) ((void) 0) #define ws_bootstrap_6lr_address_registration_update(interface, addr) ((void) 0) #define wisun_mode_router(cur) (false) #endif //HAVE_WS #endif /* WS_BOOTSTRAP_6LR_H_ */