lwIP  2.0.2
Lightweight IP stack

Macros

#define netif_mld6_data(netif)   ((struct mld_group *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_MLD6))
 

Functions

err_t mld6_joingroup (const ip6_addr_t *srcaddr, const ip6_addr_t *groupaddr)
 
err_t mld6_joingroup_netif (struct netif *netif, const ip6_addr_t *groupaddr)
 
err_t mld6_leavegroup (const ip6_addr_t *srcaddr, const ip6_addr_t *groupaddr)
 
err_t mld6_leavegroup_netif (struct netif *netif, const ip6_addr_t *groupaddr)
 

Detailed Description

Multicast listener discovery for IPv6. Aims to be compliant with RFC 2710. No support for MLDv2.
To be called from TCPIP thread

Macro Definition Documentation

◆ netif_mld6_data

#define netif_mld6_data (   netif)    ((struct mld_group *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_MLD6))

Get list head of MLD6 groups for netif. Note: The allnodes group IP is NOT in the list, since it must always be received for correct IPv6 operation.

See also
netif_set_mld_mac_filter()

Function Documentation

◆ mld6_joingroup()

err_t mld6_joingroup ( const ip6_addr_t srcaddr,
const ip6_addr_t groupaddr 
)

Join a group on a network interface.

Parameters
srcaddripv6 address of the network interface which should join a new group. If IP6_ADDR_ANY, join on all netifs
groupaddrthe ipv6 address of the group to join
Returns
ERR_OK if group was joined on the netif(s), an err_t otherwise

◆ mld6_joingroup_netif()

err_t mld6_joingroup_netif ( struct netif netif,
const ip6_addr_t groupaddr 
)

Join a group on a network interface.

Parameters
netifthe network interface which should join a new group.
groupaddrthe ipv6 address of the group to join
Returns
ERR_OK if group was joined on the netif, an err_t otherwise

◆ mld6_leavegroup()

err_t mld6_leavegroup ( const ip6_addr_t srcaddr,
const ip6_addr_t groupaddr 
)

Leave a group on a network interface.

Parameters
srcaddripv6 address of the network interface which should leave the group. If IP6_ISANY, leave on all netifs
groupaddrthe ipv6 address of the group to leave
Returns
ERR_OK if group was left on the netif(s), an err_t otherwise

◆ mld6_leavegroup_netif()

err_t mld6_leavegroup_netif ( struct netif netif,
const ip6_addr_t groupaddr 
)

Leave a group on a network interface.

Parameters
netifthe network interface which should leave the group.
groupaddrthe ipv6 address of the group to leave
Returns
ERR_OK if group was left on the netif, an err_t otherwise