ec_ip6nd_poison.c (ettercap-0.8.3) | : | ec_ip6nd_poison.c (ettercap-0.8.3.1) | ||
---|---|---|---|---|
skipping to change at line 116 | skipping to change at line 116 | |||
} | } | |||
static void ndp_poison_stop(void) | static void ndp_poison_stop(void) | |||
{ | { | |||
struct hosts_list *h; | struct hosts_list *h; | |||
pthread_t pid; | pthread_t pid; | |||
DEBUG_MSG("ndp_poison_stop"); | DEBUG_MSG("ndp_poison_stop"); | |||
pid = ec_thread_getpid("ndp_poisoner"); | pid = ec_thread_getpid("ndp_poisoner"); | |||
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 { | |||
DEBUG_MSG("no poisoner thread found"); | DEBUG_MSG("no poisoner thread found"); | |||
return; | return; | |||
} | } | |||
USER_MSG("NDP poisoner deactivated.\n"); | USER_MSG("NDP poisoner deactivated.\n"); | |||
USER_MSG("Depoisoning the victims.\n"); | USER_MSG("Depoisoning the victims.\n"); | |||
ndp_antidote(); | ndp_antidote(); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |