lwIP
2.0.2
Lightweight IP stack
|
Data Structures | |
struct | igmp_group |
Macros | |
#define | netif_igmp_data(netif) ((struct igmp_group *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_IGMP)) |
Functions | |
void | igmp_init (void) |
err_t | igmp_start (struct netif *netif) |
err_t | igmp_stop (struct netif *netif) |
void | igmp_report_groups (struct netif *netif) |
struct igmp_group * | igmp_lookfor_group (struct netif *ifp, const ip4_addr_t *addr) |
void | igmp_input (struct pbuf *p, struct netif *inp, const ip4_addr_t *dest) |
err_t | igmp_joingroup (const ip4_addr_t *ifaddr, const ip4_addr_t *groupaddr) |
err_t | igmp_joingroup_netif (struct netif *netif, const ip4_addr_t *groupaddr) |
err_t | igmp_leavegroup (const ip4_addr_t *ifaddr, const ip4_addr_t *groupaddr) |
err_t | igmp_leavegroup_netif (struct netif *netif, const ip4_addr_t *groupaddr) |
void | igmp_tmr (void) |
IGMP API
void igmp_init | ( | void | ) |
Initialize the IGMP module
void igmp_input | ( | struct pbuf * | p, |
struct netif * | inp, | ||
const ip4_addr_t * | dest | ||
) |
Called from ip_input() if a new IGMP packet is received.
p | received igmp packet, p->payload pointing to the igmp header |
inp | network interface on which the packet was received |
dest | destination ip address of the igmp packet |
struct igmp_group* igmp_lookfor_group | ( | struct netif * | ifp, |
const ip4_addr_t * | addr | ||
) |
Search for a group in the global igmp_group_list
ifp | the network interface for which to look |
addr | the group ip address to search for |
void igmp_report_groups | ( | struct netif * | netif | ) |
Report IGMP memberships for this interface
netif | network interface on which report IGMP memberships |
Start IGMP processing on interface
netif | network interface on which start IGMP processing |
Stop IGMP processing on interface
netif | network interface on which stop IGMP processing |
void igmp_tmr | ( | void | ) |
The igmp timer function (both for NO_SYS=1 and =0) Should be called every IGMP_TMR_INTERVAL milliseconds (100 ms is default).