net/devif_callback: change flags type from uint16_t to uint32_t

increase the size of the flag to prepare for precise xxx_POLL.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2025-11-12 11:34:06 +08:00
committed by Xiang Xiao
parent d377f6b788
commit a0b847bf1b
75 changed files with 224 additions and 223 deletions
+6 -6
View File
@@ -247,11 +247,11 @@ errout:
*
****************************************************************************/
static inline uint16_t
static inline uint32_t
net_dataevent(FAR struct net_driver_s *dev, FAR struct udp_conn_s *conn,
uint16_t flags)
uint32_t flags)
{
uint16_t ret;
uint32_t ret;
uint8_t *buffer = dev->d_appdata;
int buflen = dev->d_len;
uint16_t recvlen;
@@ -306,10 +306,10 @@ net_dataevent(FAR struct net_driver_s *dev, FAR struct udp_conn_s *conn,
*
****************************************************************************/
uint16_t udp_callback(FAR struct net_driver_s *dev,
FAR struct udp_conn_s *conn, uint16_t flags)
uint32_t udp_callback(FAR struct net_driver_s *dev,
FAR struct udp_conn_s *conn, uint32_t flags)
{
ninfo("flags: %04x\n", flags);
ninfo("flags: %" PRIx32 "\n", flags);
/* Some sanity checking */