diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2015-02-09 15:29:23 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2015-02-09 15:29:23 +0000 |
commit | dca33d65bd8257e98c6454f959080611ab0552e6 (patch) | |
tree | 870ecaf943d010efc1a13fef3784de96a6f79ffc /src/VBox/Devices/Network/slirp/ip_icmpwin.c | |
parent | 4d368106a8697fe2a5e48cc0e5b0d45e40c5cb62 (diff) | |
download | VirtualBox-svn-dca33d65bd8257e98c6454f959080611ab0552e6.tar.gz |
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.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@54116 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Devices/Network/slirp/ip_icmpwin.c')
-rw-r--r-- | src/VBox/Devices/Network/slirp/ip_icmpwin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/VBox/Devices/Network/slirp/ip_icmpwin.c b/src/VBox/Devices/Network/slirp/ip_icmpwin.c index 12d5efbd0bb..06162c69d2d 100644 --- a/src/VBox/Devices/Network/slirp/ip_icmpwin.c +++ b/src/VBox/Devices/Network/slirp/ip_icmpwin.c @@ -140,8 +140,7 @@ icmpwin_ping(PNATState pData, struct mbuf *m, int hlen) int status; ttl = ip->ip_ttl; - AssertReturnVoid(ttl > 1); /* should've been dealt with in the caller */ - --ttl; + AssertReturnVoid(ttl > 0); reqsize = ip->ip_len - hlen - sizeof(struct icmp_echo); |