"Fossies" - the Fresh Open Source Software Archive  

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

chk_poison.c  (ettercap-0.8.3):chk_poison.c  (ettercap-0.8.3.1)
skipping to change at line 198 skipping to change at line 198
{ {
struct poison_list *p; struct poison_list *p;
/* If the packet is not forwardable we haven't received it /* If the packet is not forwardable we haven't received it
* because of the poisoning * because of the poisoning
*/ */
if (!(po->flags & PO_FORWARDABLE)) if (!(po->flags & PO_FORWARDABLE))
return; return;
/* Check if it's in the poisoning list. If so this poisoning /* Check if it's in the poisoning list. If so this poisoning
* is successfull. * is successful.
*/ */
POISON_LOCK; POISON_LOCK;
SLIST_FOREACH(p, &poison_table, next) { SLIST_FOREACH(p, &poison_table, next) {
if (!ip_addr_cmp(&(po->L3.src), &(p->ip[0])) && !ip_addr_cmp(&(po->L3.dst ), &(p->ip[1]))) if (!ip_addr_cmp(&(po->L3.src), &(p->ip[0])) && !ip_addr_cmp(&(po->L3.dst ), &(p->ip[1])))
p->poison_success[0] = 1; p->poison_success[0] = 1;
if (!ip_addr_cmp(&(po->L3.src), &(p->ip[1])) && !ip_addr_cmp(&(po->L3.dst ), &(p->ip[0]))) if (!ip_addr_cmp(&(po->L3.src), &(p->ip[1])) && !ip_addr_cmp(&(po->L3.dst ), &(p->ip[0])))
p->poison_success[1] = 1; p->poison_success[1] = 1;
} }
POISON_UNLOCK; POISON_UNLOCK;
 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)