From commits-return-6732-archive-asf-public=cust-asf.ponee.io@nuttx.apache.org Wed Apr 8 14:21:36 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 310911806D5 for ; Wed, 8 Apr 2020 16:21:34 +0200 (CEST) Received: (qmail 31059 invoked by uid 500); 8 Apr 2020 14:21:33 -0000 Mailing-List: contact commits-help@nuttx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nuttx.apache.org Delivered-To: mailing list commits@nuttx.apache.org Received: (qmail 30497 invoked by uid 99); 8 Apr 2020 14:21:32 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2020 14:21:32 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 2807F8B6A4; Wed, 8 Apr 2020 14:21:32 +0000 (UTC) Date: Wed, 08 Apr 2020 14:21:46 +0000 To: "commits@nuttx.apache.org" Subject: [incubator-nuttx] 16/31: SocketCAN added protocol 0 to suport netlib_ifup with NET_PKT disabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: gnutt@apache.org In-Reply-To: <158635569027.4740.17276242767012299828@gitbox.apache.org> References: <158635569027.4740.17276242767012299828@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-nuttx X-Git-Refname: refs/heads/SocketCAN X-Git-Reftype: branch X-Git-Rev: 0b67ec7bbaa11f9e9af93250d89654b4f821a1e0 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20200408142132.2807F8B6A4@gitbox.apache.org> 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 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 */