mirror of
https://github.com/M66B/NetGuard.git
synced 2025-03-10 14:14:31 +00:00
Merge pull request #512 from top-master/master
git rid of ICMP response hack
This commit is contained in:
commit
77ef69955b
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue