Based on comment from @JLPLabs we should consider adding support to aggregate multiple CAN frames into a single Ethernet frame.
Adriaan,
You'll see a 3rd commit on this PR.
NOTE PLEASE LET ME KNOW:
a) if this is more than you want,
b) if there is a better / more idiomatic approach I should be taking.
This last change can be summarized as:
-
LISTENER
- updated one line in
acf-can-listener so that the acf_pdu pointer is moved through the ethernet frame. (right now there is logic that seems to imply that was the desired behavior, but the pointer wasn't actually being updated).
-
TALKER
- added a
--count COUNT flag to the command line. This allows the user to require COUNT number of CAN frames to be packed into one Ethernet frame.
- used the variable that already existed,
num_acf_msgs for handling the count logic.
Originally posted by @JLPLabs in #18 (comment)
Based on comment from @JLPLabs we should consider adding support to aggregate multiple CAN frames into a single Ethernet frame.