Rtos API example

Embed: (wiki syntax)

« Back to documentation index

mld6.h File Reference

mld6.h File Reference

Multicast listener discovery for IPv6. More...

Go to the source code of this file.

Data Structures

struct  mld_group
 MLD group. More...

Functions

err_t mld6_stop (struct netif *netif)
 Stop MLD processing on interface.
void mld6_report_groups (struct netif *netif)
 Report MLD memberships for this interface.
void mld6_tmr (void)
 Periodic timer for mld processing.
struct mld_groupmld6_lookfor_group (struct netif *ifp, const ip6_addr_t *addr)
 Search for a group that is joined on a netif.
void mld6_input (struct pbuf *p, struct netif *inp)
 Process an input MLD message.
err_t mld6_joingroup (const ip6_addr_t *srcaddr, const ip6_addr_t *groupaddr)
 Join a group on a network interface.
err_t mld6_joingroup_netif (struct netif *netif, const ip6_addr_t *groupaddr)
 Join a group on a network interface.
err_t mld6_leavegroup (const ip6_addr_t *srcaddr, const ip6_addr_t *groupaddr)
 Leave a group on a network interface.
err_t mld6_leavegroup_netif (struct netif *netif, const ip6_addr_t *groupaddr)
 Leave a group on a network interface.

Detailed Description

Multicast listener discovery for IPv6.

Aims to be compliant with RFC 2710. No support for MLDv2.

Definition in file mld6.h.


Function Documentation

void mld6_input ( struct pbuf p,
struct netif inp 
)

Process an input MLD message.

Called by icmp6_input.

Parameters:
pthe mld packet, p->payload pointing to the icmpv6 header
inpthe netif on which this packet was received

Definition at line 222 of file lwip_mld6.c.

struct mld_group* mld6_lookfor_group ( struct netif ifp,
const ip6_addr_t addr 
) [read]

Search for a group that is joined on a netif.

Parameters:
ifpthe network interface for which to look
addrthe group ipv6 address to search for
Returns:
a struct mld_group* if the group has been found, NULL if the group wasn't found.

Definition at line 139 of file lwip_mld6.c.

void mld6_report_groups ( struct netif netif )

Report MLD memberships for this interface.

Parameters:
netifnetwork interface on which report MLD memberships

Definition at line 120 of file lwip_mld6.c.

err_t mld6_stop ( struct netif netif )

Stop MLD processing on interface.

Parameters:
netifnetwork interface on which stop MLD processing

Definition at line 91 of file lwip_mld6.c.

void mld6_tmr ( void   )

Periodic timer for mld processing.

Must be called every MLD6_TMR_INTERVAL milliseconds (100).

When a delaying member expires, a membership report is sent.

Definition at line 457 of file lwip_mld6.c.