SocketCAN and Incoming Packet Control

383 Views Asked by At

I have an application for linux. I am using SocketCAN to talk to the CAN bus. We are doing this on a Beaglebone Black based device we made ourselves.

We have another device we need to listen to traffic from. This device sends a ton of data way faster than we need it or can process it.

I am trying to figure out a good way to slow down the traffic coming from this device to ours over CAN.

I found the document that talks about using traffic control (tc) for linux. I have been trying the examples and not seeing any difference in the incoming traffic.

Everything I have read about this gives examples about limiting the OUTBOUND traffic from an app to the CAN bus.

My question is whether traffic control (tc) can be used to limit incoming traffic to the kernel (and the apps that are listening)?

If not, then is there another tool that can be used for this?

I am ok dropping a percentage of packets. I assume that would have to happen.

0

There are 0 best solutions below