This document contains code for implementing a jamming attack in a mobile ad hoc network (MANET). It includes code for functions related to sending and processing Hello messages used for neighbor discovery and route maintenance. It also includes code for functions related to creating, sending, forwarding, and processing route reply (RREP) messages used for route discovery and maintenance in the ad hoc on-demand distance vector (AODV) routing protocol. The code implements optimizations for dealing with unidirectional links and extensions for including additional information in messages.