Re: [libsocketcan] add can_get_device_stats()

2011-10-18 Thread Marc Kleine-Budde
On 10/13/2011 04:43 PM, Kurt Van Dijck wrote: It will continue to loop for (nl_msg = (struct nlmsghdr *)nlbuf; NLMSG_OK(nl_msg, u_msglen); nl_msg = NLMSG_NEXT(nl_msg, u_msglen)) { until that exits and return ret; which was: int ret = -1; in the

Re: [libsocketcan] add can_get_device_stats()

2011-10-13 Thread Marc Kleine-Budde
On 10/12/2011 02:55 PM, Kurt Van Dijck wrote: Not sure where exactly to put this. When using libsocketcan on git://git.pengutronix.de/git/tools/libsocketcan.git, I kind of missed a method to fetch the can device statistics. This patch adds that functionality. I think this is the proper

Re: [libsocketcan] add can_get_device_stats()

2011-10-13 Thread Kurt Van Dijck
On Thu, Oct 13, 2011 at 11:24:59AM +0200, Marc Kleine-Budde wrote: On 10/12/2011 02:55 PM, Kurt Van Dijck wrote: Not sure where exactly to put this. When using libsocketcan on git://git.pengutronix.de/git/tools/libsocketcan.git, I kind of missed a method to fetch the can device

Re: [libsocketcan] add can_get_device_stats()

2011-10-13 Thread Marc Kleine-Budde
On 10/13/2011 01:02 PM, Kurt Van Dijck wrote: On Thu, Oct 13, 2011 at 11:24:59AM +0200, Marc Kleine-Budde wrote: On 10/12/2011 02:55 PM, Kurt Van Dijck wrote: Not sure where exactly to put this. When using libsocketcan on git://git.pengutronix.de/git/tools/libsocketcan.git, I kind of

Re: [libsocketcan] add can_get_device_stats()

2011-10-13 Thread Kurt Van Dijck
On Thu, Oct 13, 2011 at 03:23:32PM +0200, Marc Kleine-Budde wrote: On 10/13/2011 03:11 PM, Kurt Van Dijck wrote: On Thu, Oct 13, 2011 at 01:26:51PM +0200, Marc Kleine-Budde wrote: On 10/13/2011 01:02 PM, Kurt Van Dijck wrote: On Thu, Oct 13, 2011 at 11:24:59AM +0200, Marc Kleine-Budde