"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ec_set.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_set.c  (ettercap-0.8.3):ec_set.c  (ettercap-0.8.3.1)
skipping to change at line 75 skipping to change at line 75
EC_GBL_PCAP->promisc = 0; EC_GBL_PCAP->promisc = 0;
} }
void set_reversed(void) void set_reversed(void)
{ {
EC_GBL_OPTIONS->reversed = 1; EC_GBL_OPTIONS->reversed = 1;
} }
void set_plugin(char *name) void set_plugin(char *name)
{ {
struct plugin_list *plugin; struct plugin_list *plugin, *tmp;
if(!strcasecmp(name, "list")) { if(!strcasecmp(name, "list")) {
plugin_list(); plugin_list();
clean_exit(0); clean_exit(0);
} }
/* check if plugin name is a duplicate */
LIST_FOREACH_SAFE(plugin, &EC_GBL_OPTIONS->plugins, next, tmp)
if (!strcmp(plugin->name, name))
return;
SAFE_CALLOC(plugin, 1, sizeof(struct plugin_list)); SAFE_CALLOC(plugin, 1, sizeof(struct plugin_list));
plugin->name = strdup(name); plugin->name = strdup(name);
plugin->exists = true; plugin->exists = true;
LIST_INSERT_HEAD(&EC_GBL_OPTIONS->plugins, plugin, next); LIST_INSERT_HEAD(&EC_GBL_OPTIONS->plugins, plugin, next);
} }
void set_plugin_list(char *list)
{
char *tmp, *p, *plugin;
p = list;
while((plugin = ec_strtok(p, ",", &tmp))) {
if (plugin) {
set_plugin(plugin);
p = NULL;
}
else
break;
}
SAFE_FREE(list);
}
void set_proto(char *proto) void set_proto(char *proto)
{ {
EC_GBL_OPTIONS->proto = strdup(proto); EC_GBL_OPTIONS->proto = strdup(proto);
} }
void set_iface(char *iface) void set_iface(char *iface)
{ {
EC_GBL_OPTIONS->iface = strdup(iface); EC_GBL_OPTIONS->iface = strdup(iface);
} }
 End of changes. 3 change blocks. 
1 lines changed or deleted 24 lines changed or added

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