ftao / python-ifcfg

Python cross-platform network interface discovery (ifconfig/ipconfig/ip)
BSD 3-Clause "New" or "Revised" License
55 stars 37 forks source link

With slcand (serial can) can0 is always found, even when deleted #74

Open MacGH23 opened 1 year ago

MacGH23 commented 1 year ago

Hello, If I use slcand to use a RS232 to Can adapter ifcfg find the can0 device, even if not up. Ifconfig don't show it

from for name, interface in ifcfg.interfaces().items(): print(interface['device'])

can0 eth0 lo

ifconfig: eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536