"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ec_sniff_unified.c" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

ec_sniff_unified.c  (ettercap-0.8.3):ec_sniff_unified.c  (ettercap-0.8.3.1)
skipping to change at line 57 skipping to change at line 57
return; return;
} }
USER_MSG("Starting Unified sniffing...\n\n"); USER_MSG("Starting Unified sniffing...\n\n");
/* create the timeouter thread */ /* create the timeouter thread */
if (!EC_GBL_OPTIONS->read) { if (!EC_GBL_OPTIONS->read) {
pthread_t pid; pthread_t pid;
pid = ec_thread_getpid("timer"); pid = ec_thread_getpid("timer");
if (pthread_equal(pid, EC_PTHREAD_NULL)) if (pthread_equal(pid, ec_thread_getpid(NULL)))
ec_thread_new("timer", "conntrack timeouter", &conntrack_timeouter, NUL L); ec_thread_new("timer", "conntrack timeouter", &conntrack_timeouter, NUL L);
} }
/* create the thread for packet capture */ /* create the thread for packet capture */
capture_start(EC_GBL_IFACE); capture_start(EC_GBL_IFACE);
if(EC_GBL_OPTIONS->secondary) if(EC_GBL_OPTIONS->secondary)
secondary_sources_foreach(capture_start); secondary_sources_foreach(capture_start);
/* start ssl_wrapper thread */ /* start ssl_wrapper thread */
skipping to change at line 95 skipping to change at line 95
return; return;
} }
/* kill it */ /* kill it */
capture_stop(EC_GBL_IFACE); capture_stop(EC_GBL_IFACE);
if(EC_GBL_OPTIONS->secondary) if(EC_GBL_OPTIONS->secondary)
secondary_sources_foreach(capture_stop); secondary_sources_foreach(capture_stop);
pid = ec_thread_getpid("sslwrap"); pid = ec_thread_getpid("sslwrap");
if (!pthread_equal(pid, EC_PTHREAD_NULL)) if (!pthread_equal(pid, ec_thread_getpid(NULL)))
ec_thread_destroy(pid); ec_thread_destroy(pid);
USER_MSG("Unified sniffing was stopped.\n"); USER_MSG("Unified sniffing was stopped.\n");
EC_GBL_SNIFF->active = 0; EC_GBL_SNIFF->active = 0;
} }
void forward_unified_sniff(struct packet_object *po) void forward_unified_sniff(struct packet_object *po)
{ {
/* if it was not initialized, no packet are forwardable */ /* if it was not initialized, no packet are forwardable */
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)