dos_attack.c (ettercap-0.8.3) | : | dos_attack.c (ettercap-0.8.3.1) | ||
---|---|---|---|---|
skipping to change at line 156 | skipping to change at line 156 | |||
/* variable not used */ | /* variable not used */ | |||
(void) dummy; | (void) dummy; | |||
/* Remove the hooks */ | /* Remove the hooks */ | |||
hook_del(HOOK_PACKET_ARP_RQ, &parse_arp); | hook_del(HOOK_PACKET_ARP_RQ, &parse_arp); | |||
hook_del(HOOK_PACKET_TCP, &parse_tcp); | hook_del(HOOK_PACKET_TCP, &parse_tcp); | |||
pid = ec_thread_getpid("golem"); | pid = ec_thread_getpid("golem"); | |||
/* the thread is active or not ? */ | /* the thread is active or not ? */ | |||
if (!pthread_equal(pid, EC_PTHREAD_NULL)) | if (!pthread_equal(pid, ec_thread_getpid(NULL))) | |||
ec_thread_destroy(pid); | ec_thread_destroy(pid); | |||
INSTANT_USER_MSG("dos_attack: plugin terminated...\n"); | INSTANT_USER_MSG("dos_attack: plugin terminated...\n"); | |||
return PLUGIN_FINISHED; | return PLUGIN_FINISHED; | |||
} | } | |||
/*********************************************************/ | /*********************************************************/ | |||
/* | /* | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |