nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gn...@apache.org
Subject [incubator-nuttx] 16/31: SocketCAN added protocol 0 to suport netlib_ifup with NET_PKT disabled
Date Wed, 08 Apr 2020 14:21:46 GMT
This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch SocketCAN
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 0b67ec7bbaa11f9e9af93250d89654b4f821a1e0
Author: Peter van der Perk <peter.vanderperk@nxp.com>
AuthorDate: Mon Mar 9 13:49:11 2020 +0100

    SocketCAN added protocol 0 to suport netlib_ifup with NET_PKT disabled
---
 net/can/can_sockif.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/can/can_sockif.c b/net/can/can_sockif.c
index 573ddd8..4deef14 100644
--- a/net/can/can_sockif.c
+++ b/net/can/can_sockif.c
@@ -199,6 +199,7 @@ static int can_setup(FAR struct socket *psock, int protocol)
 
   switch (protocol)
     {
+      case 0:            /* INET subsystem for netlib_ifup */
       case CAN_RAW:      /* RAW sockets */
       case CAN_BCM:      /* Broadcast Manager */
       case CAN_TP16:     /* VAG Transport Protocol v1.6 */


Mime
View raw message