BA
/
BaBoRo1
Embed:
(wiki syntax)
Show/hide line numbers
mld.h
00001 /* 00002 * Copyright (c) 2016-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 MLD_H_ 00019 #define MLD_H_ 00020 00021 /* MLDv2 Record Types */ 00022 #define MLD_MODE_IS_INCLUDE 1 00023 #define MLD_MODE_IS_EXCLUDE 2 00024 #define MLD_CHANGE_TO_INCLUDE_MODE 3 00025 #define MLD_CHANGE_TO_EXCLUDE_MODE 4 00026 #define MLD_ALLOW_NEW_SOURCES 5 00027 #define MLD_BLOCK_OLD_SOURCES 6 00028 00029 struct protocol_interface_info_entry; 00030 struct if_group_entry; 00031 struct buffer; 00032 00033 struct buffer *mld_build(struct protocol_interface_info_entry *cur, uint8_t type, uint16_t max_response_delay, const uint8_t address[static 16]); 00034 00035 struct buffer *mld_report_handler(struct buffer *buf , struct protocol_interface_info_entry *cur); 00036 struct buffer *mld_query_handler(struct buffer *buf , struct protocol_interface_info_entry *cur); 00037 00038 void mld_start_listening(struct protocol_interface_info_entry *interface , struct if_group_entry *entry); 00039 void mld_stop_listening(struct protocol_interface_info_entry *interface , struct if_group_entry *entry); 00040 00041 void mld_slow_timer(struct protocol_interface_info_entry *interface , uint_fast16_t seconds); 00042 void mld_fast_timer(struct protocol_interface_info_entry *interface , uint_fast16_t ticks); 00043 00044 #endif /* MLD_H_ */
Generated on Tue Jul 12 2022 12:22:12 by
