|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
IGMP (Internet Group Management Protocol). More...
Data Structures | |
| struct | igmp_param |
| IGMP parameters. More... | |
Functions | |
| static int | net_ipv4_igmp_join (struct net_if *iface, const struct net_in_addr *addr, const struct igmp_param *param) |
| Join a given multicast group. | |
| static int | net_ipv4_igmp_leave (struct net_if *iface, const struct net_in_addr *addr) |
| Leave a given multicast group. | |
IGMP (Internet Group Management Protocol).
|
inlinestatic |
#include <zephyr/net/igmp.h>
Join a given multicast group.
| iface | Network interface where join message is sent |
| addr | Multicast group to join |
| param | Optional parameters |
| 0 | If multicast address was registered and joined successfully. |
| -ENETDOWN | If multicast address was registered but not joined yet due to network interface being down. The address will be joined when interface is up again. This is non-fatal return code, the caller should still release the address with net_ipv4_igmp_leave() if no longer needed. |
| Other | Any other error should be considered fatal, multicast address was not registered for the interface. |
|
inlinestatic |
#include <zephyr/net/igmp.h>
Leave a given multicast group.
| iface | Network interface where leave message is sent |
| addr | Multicast group to leave |