Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of OmniWheels by
rpl_data.h
00001 /* 00002 * Copyright (c) 2015-2017, Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #ifndef RPL_DATA_H_ 00019 #define RPL_DATA_H_ 00020 00021 struct rpl_domain; 00022 struct rpl_instance; 00023 struct ipv6_route_info; 00024 struct ns_sockaddr; 00025 00026 /* Internal API */ 00027 void rpl_data_sr_invalidate(void); 00028 00029 #ifdef HAVE_RPL 00030 /* Public API */ 00031 void rpl_data_init(void); 00032 #ifdef HAVE_RPL_ROOT 00033 void rpl_data_init_root(void); 00034 #endif 00035 ipv6_route_predicate_fn_t *rpl_data_get_route_predicate(struct rpl_domain *domain, const buffer_t *buf); 00036 bool rpl_data_process_hbh(buffer_t *buf, protocol_interface_info_entry_t *cur, uint8_t *opt, const struct ns_sockaddr *ll_src); 00037 bool rpl_data_remember_outer(buffer_t *buf); 00038 bool rpl_data_is_rpl_route(ipv6_route_src_t source); 00039 bool rpl_data_is_rpl_parent_route(ipv6_route_src_t source); 00040 bool rpl_data_forwarding_error(buffer_t *buf); 00041 buffer_t *rpl_data_process_routing_header(buffer_t *buf, protocol_interface_info_entry_t *cur, uint8_t *ptr, uint16_t *hdrlen_out, bool *forward_out); 00042 buffer_t *rpl_data_source_route_error_handler(buffer_t *buf, protocol_interface_info_entry_t *cur); 00043 bool rpl_data_get_srh_last_address(const uint8_t *srh, uint8_t *addr_out); 00044 #else 00045 #define rpl_data_remember_outer(buf) true 00046 #endif 00047 00048 #endif /* RPL_DATA_H_ */
Generated on Fri Jul 22 2022 04:53:59 by
 1.7.2
 1.7.2 
    