Section 48(4)(c) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(c)Officers of superior grades are to return the visits as follows :-Flag Officers and Commodores are to return the visits of Captains and those of grades superior to Captain; they shall send their Flag Captains to return the visits of Commanders, Lieutenant-Commanders and other officers in command. Captains and officers of a lower grade shall return the visits of Commanders and officers of inferior rank in command.