VirtualBox

Changeset 54116 in vbox


Ignore:
Timestamp:
Feb 9, 2015 3:29:23 PM (10 years ago)
Author:
vboxsync
Message:

NAT: icmpwin_ping - don't decrement TTL once again, this is done in
ip_input(), where time exceeded is also handled.

Note, that this is not correct, since time exceeded should not be
generated for packets with TTL 1 that are for "us", i.e. one of the
CTL_ALIAS addresses. But for now just do as the Romans do.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ip_icmpwin.c

    r53624 r54116  
    141141
    142142    ttl = ip->ip_ttl;
    143     AssertReturnVoid(ttl > 1); /* should've been dealt with in the caller */
    144     --ttl;
     143    AssertReturnVoid(ttl > 0);
    145144
    146145    reqsize = ip->ip_len - hlen - sizeof(struct icmp_echo);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette