Use same function to open BCM and RAW CAN sockets