Revert "git rid of ICMP hack"

This reverts commit 680b0e3e1d.
This commit is contained in:
top master 2018-03-27 15:13:18 +04:30
parent 680b0e3e1d
commit 864c676dce
1 changed files with 2 additions and 4 deletions

View File

@ -115,10 +115,8 @@ void check_icmp_socket(const struct arguments *args, const struct epoll_event *e
icmp->icmp_type, icmp->icmp_code,
s->icmp.id, icmp->icmp_id, icmp->icmp_seq);
//below hack did cause many problems with working server but if the sever sends
// wrong respond that is not our mistake no need to hack
//icmp->icmp_id = s->icmp.id; //hack: restore original ID
// restore original ID
icmp->icmp_id = s->icmp.id;
uint16_t csum = 0;
if (s->icmp.version == 6) {
// Untested