mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-04 22:09:57 +02:00
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)
This commit is contained in: