Sometimes when running cangen, canplayer or any other can-utils that sends many messages to the
can0 socket in linux, you may run into this error:
sendto: No buffer space available
Without changing anything else, type in the command line:
sudo ifconfig can0 txqueuelen 1000
This will do two things: increase queue length for packet transmission, and generate a default queueing discipline (qdisc) within the
can0 socket. There is a great paper here that explains in depth why this works.