Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
filter.h
Go to the documentation of this file.
1
12#ifndef INFUSE_SDK_INCLUDE_INFUSE_EPACKET_FILTER_H_
13#define INFUSE_SDK_INCLUDE_INFUSE_EPACKET_FILTER_H_
14
15#include <zephyr/net_buf.h>
16#include <zephyr/sys/util.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
38
49bool epacket_gateway_forward_filter(uint8_t flags, uint8_t percent, struct net_buf *buf);
50
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* INFUSE_SDK_INCLUDE_INFUSE_EPACKET_FILTER_H_ */
bool epacket_gateway_forward_filter(uint8_t flags, uint8_t percent, struct net_buf *buf)
Determine whether a packet should be forwarded.
epacket_filter_flags
Definition filter.h:28
@ FILTER_FORWARD_ONLY_TDF
Only forward TDF packets.
Definition filter.h:32
@ FILTER_FORWARD_ONLY_TDF_ANNOUNCE
Only forward TDF packets that contain a TDF_ANNOUNCE reading.
Definition filter.h:36
@ FILTER_FORWARD_ONLY_DECRYPTED
Only forward packets that successfully decrypted.
Definition filter.h:30