You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/03/18 13:35:25 UTC

[incubator-nuttx] 08/23: SocketCAN added protocol 0 to suport netlib_ifup with NET_PKT disabled

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 ddbada8b3ff11b43e5ce05cf3041940fceb20b68
Author: Peter van der Perk <pe...@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 */