ec_port_stealing.c (ettercap-0.8.3) | : | ec_port_stealing.c (ettercap-0.8.3.1) | ||
---|---|---|---|---|
skipping to change at line 212 | skipping to change at line 212 | |||
struct packet_list *p, *tmp_p = NULL; | struct packet_list *p, *tmp_p = NULL; | |||
int i; | int i; | |||
DEBUG_MSG("port_stealing_stop"); | DEBUG_MSG("port_stealing_stop"); | |||
/* destroy the poisoner thread */ | /* destroy the poisoner thread */ | |||
pid = ec_thread_getpid("port_stealer"); | pid = ec_thread_getpid("port_stealer"); | |||
/* 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); | |||
else | else | |||
return; | return; | |||
/* Remove the Hooks */ | /* Remove the Hooks */ | |||
hook_del(HOOK_PACKET_ETH, &parse_received); | hook_del(HOOK_PACKET_ETH, &parse_received); | |||
hook_del(HOOK_PRE_FORWARD, &put_queue); | hook_del(HOOK_PRE_FORWARD, &put_queue); | |||
hook_del(HOOK_PACKET_ARP_RP, &send_queue); | hook_del(HOOK_PACKET_ARP_RP, &send_queue); | |||
USER_MSG("Prot Stealing deactivated.\n"); | USER_MSG("Prot Stealing deactivated.\n"); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |