Please explain where exactly does International Law make the difference about the nature of the war. UNSCR 242 only talks about "inadmissibility of the acquisition of territory by war", and not "offensive war", or any other specific kind. "War", in general. Besides, Israel started that war with its surprise attack on Egypt, so your claim is hardly valid under any point of view.
10 arrested at Israeli Arab protest in Ramle (Haaretz)
from the article: Israel can't put occupation up for immoral referendum