]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commit
Added '-d' option to support the receive packet drop counting introduced in
authorOliver Hartkopp <socketcan@hartkopp.net>
Fri, 15 Jan 2010 18:35:37 +0000 (18:35 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Fri, 15 Jan 2010 18:35:37 +0000 (18:35 +0000)
commit3c019ea61169d7f08d10d1fece95433c629eb4a6
tree9c5019507f2e872053d9c0755210a9c374fec732
parentc11220e9c9105d4d264000e31e1e72d806642b0a
Added '-d' option to support the receive packet drop counting introduced in
http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=commitdiff;h=3b885787ea4112eaa80945999ea0901bf742707f

This is done by using recvmsg() instead of recvfrom() to allow the timestamp
and the dropcounter to be received within one syscall.

When the application (here 'candump') ist not fast enough to process the
incomming CAN frames the frames are dropped in the socket receive queue.
When this happens and '-d' is set, we get this info now:
DROPCOUNT: dropped 1 CAN frame on 'xxx' socket (total drops 1)
Makefile
candump.c