Scientists in China have found that a rabies vaccine usually given to dogs can also protect livestock.