diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-20 18:14:09 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-20 18:14:09 -0600 |
commit | 76a7272bad960a5d5abb6ec09a1aebc1e5fad1a5 (patch) | |
tree | eaaa435435196e67cd8bcdc0332530f8966094e9 /nuttx/net/udp | |
parent | 85b02aa80df6d162d17f3eaef4290c7e92a655e0 (diff) | |
download | px4-nuttx-76a7272bad960a5d5abb6ec09a1aebc1e5fad1a5.tar.gz px4-nuttx-76a7272bad960a5d5abb6ec09a1aebc1e5fad1a5.tar.bz2 px4-nuttx-76a7272bad960a5d5abb6ec09a1aebc1e5fad1a5.zip |
Correct name of fields in struct sockaddr_in6: sin6_port and sin6_family, not sin_port and sin_family
Diffstat (limited to 'nuttx/net/udp')
-rw-r--r-- | nuttx/net/udp/udp_conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/udp/udp_conn.c b/nuttx/net/udp/udp_conn.c index acce00d24..3f2106da0 100644 --- a/nuttx/net/udp/udp_conn.c +++ b/nuttx/net/udp/udp_conn.c @@ -604,7 +604,7 @@ int udp_bind(FAR struct udp_conn_s *conn, FAR const struct sockaddr *addr) /* Get the port number that we are binding to */ - portno = inaddr->sin_port; + portno = inaddr->sin6_port; #ifdef CONFIG_NETDEV_MULTINIC /* Bind the local IP address to the connection. NOTE this address may @@ -725,7 +725,7 @@ int udp_connect(FAR struct udp_conn_s *conn, FAR const struct sockaddr *addr) FAR const struct sockaddr_in6 *inaddr = (FAR const struct sockaddr_in6 *)addr; - conn->rport = inaddr->sin_port; + conn->rport = inaddr->sin6_port; net_ipv6addr_copy(conn->u.ipv6.raddr, inaddr->sin6_addr.s6_addr16); } #endif /* CONFIG_NET_IPv6 */ |