m10k / canny

Simple CAN-over-IP gateway
GNU General Public License v3.0
24 stars 12 forks source link

Virtual CAN seems to be ignored #4

Open pompushko opened 1 year ago

pompushko commented 1 year ago

I have a Raspberry Pi and use virtual can interface. But it not in list of interfaces of struct ifreq

2023-09-22 00:28:36+0200 [INF] Found CAN interface: lo
2023-09-22 00:28:36+0200 [INF] Found CAN interface: eth0
2023-09-22 00:28:36+0200 [INF] Found CAN interface: wlan0
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:0e:50:e5  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 32  bytes 2682 (2.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 32  bytes 2682 (2.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vcan0: flags=193<UP,RUNNING,NOARP>  mtu 72
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 1268178  bytes 8674723 (8.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1268178  bytes 8674723 (8.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.3.75  netmask 255.255.255.0  broadcast 192.168.3.255
        inet6 fe80::c441:e7:e65d:db09  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:5b:05:b0  txqueuelen 1000  (Ethernet)
        RX packets 64424  bytes 24806192 (23.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 73311  bytes 10967443 (10.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

This is a bug?