mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 01:03:33 +08:00
Update PIC32 Ethernet driver from debugging (still does not work
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4465 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -192,6 +192,7 @@ int getsockname(int sockfd, FAR struct sockaddr *addr, FAR socklen_t *addrlen)
|
||||
|
||||
/* Set the address family and the IP address */
|
||||
|
||||
#if defined(CONFIG_NET_TCP) || defined(CONFIG_NET_UDP)
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#error "Not big enough for IPv6 address"
|
||||
outaddr->sin_family = AF_INET6;
|
||||
@@ -201,6 +202,7 @@ int getsockname(int sockfd, FAR struct sockaddr *addr, FAR socklen_t *addrlen)
|
||||
outaddr->sin_family = AF_INET;
|
||||
outaddr->sin_addr.s_addr = dev->d_ipaddr;
|
||||
*addrlen = sizeof(struct sockaddr_in);
|
||||
#endif
|
||||
#endif
|
||||
netdev_semgive();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user