'How to creat a new ICMP message in contiki?

I'm doing a project about selective forwarding attack. The attack will drop the UDP packets of its child. But I wish every node can send a message to sink during the attack. So I want to creat a new type of ICMP message to avoid being dropped. I use uip_icmp6_send to send a message to sink. But when attack is launched, the message is also being dropped. How can I solve it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source