pkt_recvfrom.c edited online with Bitbucket

This commit is contained in:
Gregory Nutt 2017-07-13 02:06:08 +00:00
parent 1e781ec4a7
commit 3d4b4c208e

View File

@ -398,7 +398,7 @@ ssize_t pkt_recvfrom(FAR struct socket *psock, FAR void *buf, size_t len,
return -EINVAL;
}
if (psock->s_type != -SOCK_RAW)
if (psock->s_type != SOCK_RAW)
{
nerr("ERROR: Unsupported socket type: %d\n", psock->s_type);
ret = -ENOSYS;
@ -426,7 +426,7 @@ ssize_t pkt_recvfrom(FAR struct socket *psock, FAR void *buf, size_t len,
/* TODO pkt_recvfrom_initialize() expects from to be of type sockaddr_in, but
* in our case is sockaddr_ll
*/
)
#if 0
ret = pkt_connect(conn, NULL);
if (ret < 0)