BA
/
BaBoRo1
Embed:
(wiki syntax)
Show/hide line numbers
pana_relay_table.h
00001 /* 00002 * Copyright (c) 2013-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 PANA_RELAY_TABLE_H_ 00019 #define PANA_RELAY_TABLE_H_ 00020 00021 typedef struct relay_table_entry_t { 00022 uint8_t relay_address[16]; /*!< destination address */ 00023 uint8_t parent_address[16]; /*!< destination address */ 00024 uint16_t parent_relay_port; 00025 uint8_t ttl; /*!< destination TTL */ 00026 struct relay_table_entry_t *next_info; /*!< Pointer to Next Route Information If is 0xff then this entry last one */ 00027 struct relay_table_entry_t *prev_info; /*!< Pointer to Next Route InformationIf this is 0xff then this entry is first one */ 00028 } relay_table_entry_t; 00029 00030 extern void pana_relay_table_init(void); 00031 extern relay_table_entry_t *pana_relay_table_update(uint8_t *address); 00032 extern relay_table_entry_t *pana_relay_detect(uint8_t *address); 00033 extern void pana_relay_ttl_update(uint16_t ttl_time); 00034 00035 #endif /* PANA_RELAY_TABLE_H_ */
Generated on Tue Jul 12 2022 12:22:16 by
