lwIP
2.1.0
Lightweight IP stack
|
#include "lwip/opt.h"
#include "lwip/igmp.h"
#include "lwip/debug.h"
#include "lwip/def.h"
#include "lwip/mem.h"
#include "lwip/ip.h"
#include "lwip/inet_chksum.h"
#include "lwip/netif.h"
#include "lwip/stats.h"
#include "lwip/prot/igmp.h"
#include <string.h>
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 - Internet Group Management Protocol
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 netif's 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).