Infection and immunity in farm animals