MLD (Multicast Listener Discovery for IPv6) More...
#include "core/net.h"
Go to the source code of this file.
Macros | |
#define | MLD_SUPPORT DISABLED |
#define | MLD_TICK_INTERVAL 1000 |
#define | MLD_UNSOLICITED_REPORT_INTERVAL 10000 |
#define | MLD_HOP_LIMIT 1 |
Enumerations | |
enum | MldState { MLD_STATE_NON_LISTENER = 0, MLD_STATE_DELAYING_LISTENER = 1, MLD_STATE_IDLE_LISTENER = 2 } |
MLD node states. More... | |
Functions | |
error_t | mldInit (NetInterface *interface) |
MLD initialization. More... | |
error_t | mldStartListening (NetInterface *interface, Ipv6FilterEntry *entry) |
Start listening to the address on the interface. More... | |
error_t | mldStopListening (NetInterface *interface, Ipv6FilterEntry *entry) |
Stop listening to the address on the interface. More... | |
void | mldTick (NetInterface *interface) |
MLD timer handler. More... | |
void | mldLinkChangeEvent (NetInterface *interface) |
Callback function for link change event. More... | |
void | mldProcessListenerQuery (NetInterface *interface, const Ipv6PseudoHeader *pseudoHeader, const NetBuffer *buffer, size_t offset, uint8_t hopLimit) |
Process incoming Multicast Listener Query message. More... | |
void | mldProcessListenerReport (NetInterface *interface, const Ipv6PseudoHeader *pseudoHeader, const NetBuffer *buffer, size_t offset, uint8_t hopLimit) |
Process incoming Multicast Listener Report message. More... | |
error_t | mldSendListenerReport (NetInterface *interface, Ipv6Addr *ipAddr) |
Send Multicast Listener Report message. More... | |
error_t | mldSendListenerDone (NetInterface *interface, Ipv6Addr *ipAddr) |
Send Multicast Listener Done message. More... | |
void | mldDumpMessage (const MldMessage *message) |
Dump MLD message for debugging purpose. More... | |
Variables | |
typedef | __packed_struct |
MLD message. More... | |
uint8_t | code |
uint16_t | checksum |
uint16_t | maxRespDelay |
uint16_t | reserved |
Ipv6Addr | multicastAddr |
MldMessage | |
systime_t | mldTickCounter |
Detailed Description
MLD (Multicast Listener Discovery for IPv6)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.2
Definition in file mld.h.
Macro Definition Documentation
◆ MLD_HOP_LIMIT
◆ MLD_SUPPORT
◆ MLD_TICK_INTERVAL
◆ MLD_UNSOLICITED_REPORT_INTERVAL
Enumeration Type Documentation
◆ MldState
enum MldState |
Function Documentation
◆ mldDumpMessage()
void mldDumpMessage | ( | const MldMessage * | message | ) |
◆ mldInit()
error_t mldInit | ( | NetInterface * | interface | ) |
◆ mldLinkChangeEvent()
void mldLinkChangeEvent | ( | NetInterface * | interface | ) |
◆ mldProcessListenerQuery()
void mldProcessListenerQuery | ( | NetInterface * | interface, |
const Ipv6PseudoHeader * | pseudoHeader, | ||
const NetBuffer * | buffer, | ||
size_t | offset, | ||
uint8_t | hopLimit | ||
) |
Process incoming Multicast Listener Query message.
- Parameters
-
[in] interface Underlying network interface [in] pseudoHeader IPv6 pseudo header [in] buffer Multi-part buffer containing the incoming MLD message [in] offset Offset to the first byte of the MLD message [in] hopLimit Hop Limit field from IPv6 header
◆ mldProcessListenerReport()
void mldProcessListenerReport | ( | NetInterface * | interface, |
const Ipv6PseudoHeader * | pseudoHeader, | ||
const NetBuffer * | buffer, | ||
size_t | offset, | ||
uint8_t | hopLimit | ||
) |
Process incoming Multicast Listener Report message.
- Parameters
-
[in] interface Underlying network interface [in] pseudoHeader IPv6 pseudo header [in] buffer Multi-part buffer containing the incoming MLD message [in] offset Offset to the first byte of the MLD message [in] hopLimit Hop Limit field from IPv6 header
◆ mldSendListenerDone()
error_t mldSendListenerDone | ( | NetInterface * | interface, |
Ipv6Addr * | ipAddr | ||
) |
◆ mldSendListenerReport()
error_t mldSendListenerReport | ( | NetInterface * | interface, |
Ipv6Addr * | ipAddr | ||
) |
◆ mldStartListening()
error_t mldStartListening | ( | NetInterface * | interface, |
Ipv6FilterEntry * | entry | ||
) |
◆ mldStopListening()
error_t mldStopListening | ( | NetInterface * | interface, |
Ipv6FilterEntry * | entry | ||
) |
◆ mldTick()
void mldTick | ( | NetInterface * | interface | ) |
Variable Documentation
◆ __packed_struct
typedef __packed_struct |