anchao commented on code in PR #7616: URL: https://github.com/apache/incubator-nuttx/pull/7616#discussion_r1027227212
########## arch/sim/src/sim/up_netdriver.c: ########## @@ -107,6 +120,10 @@ static void netdriver_reply(struct net_driver_s *dev) if (dev->d_len > 0) { +#ifdef SIM_NETDEV_IOB_OFFLOAD + dev->d_buf = (void *)ETHBUF; Review Comment: Yes, ETHBUF will be cast to (struct eth_hdr_s), and the type of d_buf is (uint8_t *) ``` FAR uint8_t *d_buf; #define ETHBUF ((FAR struct eth_hdr_s *) \ (dev->d_iob ? \ &dev->d_iob->io_data[CONFIG_NET_LL_GRUARDSIZE - NET_LL_HDRLEN(dev)] : \ dev->d_buf)) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org