Section 30(4)(d) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(d)As regard return salutes, ships will be guided by Regulation 24, sub-regulation (2) or Regulation 42, sub-regulation (2)(b), whichever is applicable, according to whether the salute has been fired by a ship of the same nation or by a foreign ship.