wangchen61698 commented on code in PR #10319:
URL: https://github.com/apache/nuttx/pull/10319#discussion_r1302364600
##########
net/udp/udp_send.c:
##########
@@ -146,7 +159,7 @@ void udp_send(FAR struct net_driver_s *dev, FAR struct
udp_conn_s *conn)
* header size
*/
- dev->d_len = dev->d_sndlen + UDP_HDRLEN;
+ dev->d_len = dev->d_sndlen + UDP_HDRLEN;
ipv6_build_header(IPv6BUF, dev->d_len, IP_PROTO_UDP,
dev->d_ipv6addr, conn->u.ipv6.raddr,
Review Comment:
It refer to linux defination,The argument is a pointer to an interface
index,we just need chose which net device to send multicast pkt,not to change
the address of the device
IPV6_MULTICAST_IF
Set the device for outgoing multicast packets on the
socket. This is allowed only for SOCK_DGRAM and SOCK_RAW
socket. The argument is a pointer to an interface index
(see
[netdevice(7)](https://man7.org/linux/man-pages/man7/netdevice.7.html)) in an
integer.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]