]> The Tcpdump Group git mirrors - libpcap/commit
Don't just treat anything that contains "can" or "vcan" as a CANbus device.
authorGuy Harris <[email protected]>
Sat, 9 Jun 2012 18:12:55 +0000 (11:12 -0700)
committerGuy Harris <[email protected]>
Sat, 9 Jun 2012 18:12:55 +0000 (11:12 -0700)
commit2a74cb1ec2057f959050c6d05b732be246a30f61
tree31fc739e363b1c80aaf39380c0443a1ea0391af2
parentb04e3edd27cbd102668e27340e8716f5482487dc
Don't just treat anything that contains "can" or "vcan" as a CANbus device.

Instead, require that it *start* with "can" or "vcan", and be followed
by at least one digit.

This means that if you, for example, rename a regular interface as, for
example, "canopy", it will no longer be mistakenly treated as a CANbus
device (yes, this really happened, and a bug was filed against it).
pcap-linux.c