Merge pull request #512 from top-master/master

git rid of ICMP response hack
This commit is contained in:
Marcel Bokhorst 2018-03-27 08:36:23 +02:00 committed by GitHub
commit 77ef69955b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -115,8 +115,10 @@ 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);
// restore original ID
icmp->icmp_id = s->icmp.id;
//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
uint16_t csum = 0;
if (s->icmp.version == 6) {
// Untested