Hi,
In Openthread's Coap_client sample, Following 2 libraries are there:
#include <net/net_l2.h> #include <net/net_pkt.h>
and while compiling my code I get multiple warning regarding to above 2 libraries.
Following are some such warnings:
zephyr/include/net/capture.h:51:14: warning: 'struct net_pkt' declared inside parameter list will not be visible outside of this definition or declaration
51 | struct net_pkt *pkt);
| ^~~~~~~
zephyr/include/net/capture.h:180:15: warning: 'struct net_pkt' declared inside parameter list will not be visible outside of this definition or declaration
180 | struct net_pkt *pkt)
| ^~~~~~~
zephyr/include/net/capture.h:208:65: warning: 'struct net_pkt' declared inside parameter list will not be visible outside of this definition or declaration
208 | static inline void net_capture_pkt(struct net_if *iface, struct net_pkt *pkt)
So can you explain me the use of these 2 libraries, what feature do they support, can I remove them If I don't require that feature?