Is it possible to bridge to can interfaces via socat?
My setup looks something like this:
HOST A Host B vcan0 <-> vcan0 Where i have 2 hosts with a can interface and i want to bridge them ideally via socat.
I got as far as sending can messages which the following config. But CanFD messages are just silently dropped and are not forwarded to the remote vcan interface. (I would like to avoid using something like cannelloni.)
Server
sudo socat INTERFACE:vcan0,pf=29,type=3,prototype=1 TCP-LISTEN:2000,fork,reuseaddr,nodelay Client
sudo socat INTERFACE:vcan0,pf=29,type=3,prototype=1 TCP:SERVERIP:2000,nodelay Is forwarding CanFD even possible with socat?
More debugging
Running socat with -d -d -d shows that the socat process doesn't even register CanFD frames.
For a can frame these 2 messages are produced:
2024/12/13 09:26:12 socat[8514] N local address: AF=29 AF=29 0x0000060000000400000000000000 2024/12/13 09:26:12 socat[8514] I transferred 16 bytes from 7 to 5 And nothing for CanFD.