The correct response is:
The general is ridiculing Ivan, as well as himself, for being a Cossack.
This choice highlights the satirical nature of the general's comments, as he both underscores stereotypes about Cossacks and diminishes Ivan's character while simultaneously revealing his own prejudiced views.