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 458127480a2dffd1e49a04b7a5430131980647e8 Author: Peter van der Perk <peter.vanderp...@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 */