Diffusive shock acceleration requires the production of backstreaming superthermal ions (injection) as a first step. Such ions can be generated in the process of scattering of ions in the superthermal tail off the shock front. Knowledge of the scattering of high-energy ions is essential for matching conditions of upstream and downstream distributions at the shock transition. Here we analyze the generation of backstreaming ions as a function of their initial energy in a model stationary shock and in a similar rippled shock. Rippling substantially enhances ion reflection and the generation of backstreaming ions for slightly and moderately superthermal energies, and thus is capable of ensuring ion injection into a further diffusive shock acceleration process. For high-energy ions, there is almost no difference in the fraction of backstreaming ions produced and the ion distributions between the planar stationary shock and the rippled shock.