An attack in the Gulf of Oman and near Iran is well different:
The 28-strong crew of a Chinese cargo ship seized by pirates in the Gulf of Oman off Iran's coast have been rescued... The vessel was attacked by Somali pirates on Friday morning near the Iranian port of Chabahar......China immediately asked Iran to take the necessary steps to rescue the crew....
Link:http://www.bbc.co.uk/news/world-middle-east-17636649

One wonders whether the pirates will face justice in China or Iran? Assuming of course that is the route followed.

Both national navies participate in anti-piracy patrolling - in co-ordination with the multi-national flotillas.