ec_tcp.c (ettercap-0.8.3) | : | ec_tcp.c (ettercap-0.8.3.1) | ||
---|---|---|---|---|
skipping to change at line 176 | skipping to change at line 176 | |||
* don't have valid checksums as presented to the machine's packet-capt ure | * don't have valid checksums as presented to the machine's packet-capt ure | |||
* mechanism, as those packets are wrapped around internally rather | * mechanism, as those packets are wrapped around internally rather | |||
* than being captured after passing through the network interface, as | * than being captured after passing through the network interface, as | |||
* the OS doesn't bother computing the checksum and adding it to the pa cket | * the OS doesn't bother computing the checksum and adding it to the pa cket | |||
* it leaves that up to the network interface. | * it leaves that up to the network interface. | |||
* (taken from a bug report by Guy Harris - libpcap engi neer) | * (taken from a bug report by Guy Harris - libpcap engi neer) | |||
* | * | |||
* For Windows at least, TCP checksum off-loading can be disabled with a | * For Windows at least, TCP checksum off-loading can be disabled with a | |||
* registry setting. | * registry setting. | |||
* | * | |||
* Same for Linux, but sometimes even ethtool doesnt turn this feature off. | * Same for Linux, but sometimes even ethtool doesn't turn this feature off. | |||
* | * | |||
* if the source is the ettercap host, don't display the message | * if the source is the ettercap host, don't display the message | |||
*/ | */ | |||
if (ip_addr_is_ours(&PACKET->L3.src) == E_FOUND) | if (ip_addr_is_ours(&PACKET->L3.src) == E_FOUND) | |||
return NULL; | return NULL; | |||
#endif | #endif | |||
if (EC_GBL_CONF->checksum_warning) | if (EC_GBL_CONF->checksum_warning) | |||
USER_MSG("Invalid TCP packet from %s:%d : csum [%#x] should be (%#x) \n", ip_addr_ntoa(&PACKET->L3.src, tmp), | USER_MSG("Invalid TCP packet from %s:%d : csum [%#x] should be (%#x) \n", ip_addr_ntoa(&PACKET->L3.src, tmp), | |||
ntohs(tcp->sport), ntohs(tcp->csum), checksu m_shouldbe(tcp->csum, sum)); | ntohs(tcp->sport), ntohs(tcp->csum), checksu m_shouldbe(tcp->csum, sum)); | |||
return NULL; | return NULL; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |