Tamagawa numbers in the function field case