From: Wolfgang Subject: max dlc Date: Tue, 7 Feb 2012 14:21:14 +0000 (UTC) Message-ID: References: <20120110085105.GB330@e-circ.dyndns.org> <20120110152341.GD2524@e-circ.dyndns.org> <4F0F2195.7050109@hartkopp.net> <20120113111251.GD319@e-circ.dyndns.org> <20120116133140.GA26427@e-circ.dyndns.org> <20120116153644.GA7763@e-circ.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from plane.gmane.org ([80.91.229.3]:32982 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756483Ab2BGOVd (ORCPT ); Tue, 7 Feb 2012 09:21:33 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RulvF-0006Gb-F0 for linux-can@vger.kernel.org; Tue, 07 Feb 2012 15:21:29 +0100 Received: from fire.d-i-f.com ([80.152.230.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Feb 2012 15:21:29 +0100 Received: from wutz by fire.d-i-f.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Feb 2012 15:21:29 +0100 Sender: linux-can-owner@vger.kernel.org List-ID: To: linux-can@vger.kernel.org Hi Kurt, I am back working a little my gw. As the defined in the j1939-21 the maximum dlc is 1785. static struct { int pkt_len; } s = { .pkt_len = 1024, }; buf = malloc(s.pkt_len); recvmsg(sockfd, &msg, 0); Did I get that right, that a dlc more than 1024 bytes is not possible with recvmsg or sendmsg. For my application I won't need so many data but for understanding the code! Kind regards, Wolfgang