123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef ZEPHYR_INCLUDE_NET_PROMISCUOUS_H_
- #define ZEPHYR_INCLUDE_NET_PROMISCUOUS_H_
- #include <net/net_pkt.h>
- #include <net/net_if.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if defined(CONFIG_NET_PROMISCUOUS_MODE)
- struct net_pkt *net_promisc_mode_wait_data(k_timeout_t timeout);
- #else
- static inline struct net_pkt *net_promisc_mode_wait_data(k_timeout_t timeout)
- {
- ARG_UNUSED(timeout);
- return NULL;
- }
- #endif
- #if defined(CONFIG_NET_PROMISCUOUS_MODE)
- int net_promisc_mode_on(struct net_if *iface);
- #else
- static inline int net_promisc_mode_on(struct net_if *iface)
- {
- ARG_UNUSED(iface);
- return -ENOTSUP;
- }
- #endif
- #if defined(CONFIG_NET_PROMISCUOUS_MODE)
- int net_promisc_mode_off(struct net_if *iface);
- #else
- static inline int net_promisc_mode_off(struct net_if *iface)
- {
- ARG_UNUSED(iface);
- return -ENOTSUP;
- }
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|