Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
igmp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11#ifndef ZEPHYR_INCLUDE_NET_IGMP_H_
12#define ZEPHYR_INCLUDE_NET_IGMP_H_
13
21#include <zephyr/types.h>
22
23#include <net/net_if.h>
24#include <net/net_ip.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
38#if defined(CONFIG_NET_IPV4_IGMP)
39int net_ipv4_igmp_join(struct net_if *iface, const struct in_addr *addr);
40#else
41#define net_ipv4_igmp_join(iface, addr) -ENOSYS
42#endif
43
52#if defined(CONFIG_NET_IPV4_IGMP)
53int net_ipv4_igmp_leave(struct net_if *iface, const struct in_addr *addr);
54#else
55#define net_ipv4_igmp_leave(iface, addr) -ENOSYS
56#endif
57
58#ifdef __cplusplus
59}
60#endif
61
66#endif /* ZEPHYR_INCLUDE_NET_IGMP_H_ */
#define net_ipv4_igmp_join(iface, addr)
Join a given multicast group.
Definition: igmp.h:41
#define net_ipv4_igmp_leave(iface, addr)
Leave a given multicast group.
Definition: igmp.h:55
Public API for network interface.
IPv6 and IPv4 definitions.
Definition: net_ip.h:148
Network Interface structure.
Definition: net_if.h:468