1: \begin{abstract}
2: We construct, for any symplectic, unitary or special orthogonal group over a
3: locally compact nonarchimedean local field of odd residual characteristic, a
4: type for each Bernstein component of the category of smooth representations, using
5: Bushnell--Kutzko's theory of covers. Moreover, for a component corresponding to
6: a cuspidal representation of a maximal Levi subgroup, we prove that the Hecke
7: algebra is either abelian, or a generic Hecke algebra on an infinite dihedral
8: group, with parameters which are, at least in principle, computable via results
9: of Lusztig.
10: \end{abstract}
11: