123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #ifndef ZEPHYR_INCLUDE_NET_UDP_H_
- #define ZEPHYR_INCLUDE_NET_UDP_H_
- #include <zephyr/types.h>
- #include <net/net_core.h>
- #include <net/net_ip.h>
- #include <net/net_pkt.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if defined(CONFIG_NET_UDP)
- struct net_udp_hdr *net_udp_get_hdr(struct net_pkt *pkt,
- struct net_udp_hdr *hdr);
- #else
- static inline struct net_udp_hdr *net_udp_get_hdr(struct net_pkt *pkt,
- struct net_udp_hdr *hdr)
- {
- return NULL;
- }
- #endif
- #if defined(CONFIG_NET_UDP)
- struct net_udp_hdr *net_udp_set_hdr(struct net_pkt *pkt,
- struct net_udp_hdr *hdr);
- #else
- static inline struct net_udp_hdr *net_udp_set_hdr(struct net_pkt *pkt,
- struct net_udp_hdr *hdr)
- {
- return NULL;
- }
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|