Gun and ammunition makers sell to militaries, police, and civilian buyers through dealers, under widely varying national laws.