"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plug-ins/nbns_spoof/nbns_spoof.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.

nbns_spoof.c  (ettercap-0.8.3):nbns_spoof.c  (ettercap-0.8.3.1)
skipping to change at line 255 skipping to change at line 255
/* strip apart the line */ /* strip apart the line */
if (!parse_line(line, lines, &ipstr, &name)) if (!parse_line(line, lines, &ipstr, &name))
continue; continue;
/* create the entry */ /* create the entry */
SAFE_CALLOC(d, 1, sizeof(struct nbns_spoof_entry)); SAFE_CALLOC(d, 1, sizeof(struct nbns_spoof_entry));
/* convert IP string into ip_addr struct */ /* convert IP string into ip_addr struct */
if (ip_addr_pton(ipstr, &d->ip) != E_SUCCESS) { if (ip_addr_pton(ipstr, &d->ip) != E_SUCCESS) {
USER_MSG("%s:%d Invalid IP addres\n", ETTER_NBNS, lines); USER_MSG("%s:%d Invalid IP address\n", ETTER_NBNS, lines) ;
SAFE_FREE(d); SAFE_FREE(d);
continue; continue;
} }
d->name = strdup(name); d->name = strdup(name);
/* insert to list */ /* insert to list */
SLIST_INSERT_HEAD(&nbns_spoof_head, d, next); SLIST_INSERT_HEAD(&nbns_spoof_head, d, next);
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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