Research Article
[Retracted] Self-Adaptive Framework for Rectification and Detection of Black Hole and Wormhole Attacks in 6LoWPAN
Algorithm 3
Pseudocode of local repair attack.
1. start | 2. if event==NETWORK_IN_EVENT2.then | 3. if packets==control packets and are DIOmessages then | 4. if previous node is notnull then | 5. ID and rank of previous node are restroed to its previousvalues | 6. The rank and ID of current are stored in prev_node_id and prev_node_rank respectively. | 7. The rank of current node is changed toINFINITY. | 8. Endif | 9. endif | 10. if packets==data packets and currect node has rank==INFINITY then | 11. drop themessage | 12. endif | 13. endif |
|