The correct response is: The general is ridiculing Ivan, as well as himself, for being a Cossack.
This response captures the satirical element of the general's comments, as it reflects the condescending and stereotypical views he holds about Cossacks, implying a critique of both his perceptions and the broader societal prejudices.