net/: Correct some comments.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche
2021-01-15 10:01:00 +01:00
committed by hartmannathan
parent 154949403c
commit 6385408483
9 changed files with 27 additions and 26 deletions
+3 -3
View File
@@ -163,7 +163,7 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev,
*
* Returned Value:
* On success, returns the number of characters sent. On error,
* a negated errno value is retruend. See send() for the complete list
* a negated errno value is returned. See send() for the complete list
* of return values.
*
****************************************************************************/
@@ -192,7 +192,7 @@ ssize_t psock_pkt_send(FAR struct socket *psock, FAR const void *buf,
/* Perform the send operation */
/* Initialize the state structure. This is done with the network locked
/* Initialize the state structure. This is done with the network locked
* because we don't want anything to happen until we are ready.
*/
@@ -244,7 +244,7 @@ ssize_t psock_pkt_send(FAR struct socket *psock, FAR const void *buf,
nxsem_destroy(&state.snd_sem);
net_unlock();
/* Check for a errors, Errors are signalled by negative errno values
/* Check for errors. Errors are signalled by negative errno values
* for the send length
*/
+4 -4
View File
@@ -176,8 +176,8 @@ static int pkt_sockif_alloc(FAR struct socket *psock)
static int pkt_setup(FAR struct socket *psock, int protocol)
{
/* Allocate the appropriate connection structure. This reserves the
* the connection structure is is unallocated at this point. It will
* not actually be initialized until the socket is connected.
* connection structure, it is unallocated at this point. It will not
* actually be initialized until the socket is connected.
*
* Only SOCK_RAW is supported.
*/
@@ -361,14 +361,14 @@ static int pkt_bind(FAR struct socket *psock,
return -EBADF;
}
/* Bind a raw socket to an network device. */
/* Bind a raw socket to a network device. */
if (psock->s_type == SOCK_RAW)
{
FAR struct pkt_conn_s *conn = (FAR struct pkt_conn_s *)psock->s_conn;
FAR struct net_driver_s *dev;
/* Look at the addr and identify network interface */
/* Look at the addr and identify the network interface */
ifindex = ((FAR struct sockaddr_ll *)addr)->sll_ifindex;