projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17eb587
)
slirp: fix pinging the virtual ipv4 DNS server
author
Samuel Thibault
<samuel.thibault@ens-lyon.org>
Sat, 29 Apr 2017 12:37:09 +0000
(14:37 +0200)
committer
Samuel Thibault
<samuel.thibault@ens-lyon.org>
Sat, 29 Apr 2017 16:29:58 +0000
(18:29 +0200)
so that people do not think it is not working at least basically.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
slirp/ip_icmp.c
patch
|
blob
|
history
diff --git
a/slirp/ip_icmp.c
b/slirp/ip_icmp.c
index 5ffc7a683d46792c17a99c0824d5c8d28317808e..0b667a429ad6109d678f5e2b43f16c1671af42a4 100644
(file)
--- a/
slirp/ip_icmp.c
+++ b/
slirp/ip_icmp.c
@@
-152,8
+152,9
@@
icmp_input(struct mbuf *m, int hlen)
switch (icp->icmp_type) {
case ICMP_ECHO:
ip->ip_len += hlen; /* since ip_input subtracts this */
- if (ip->ip_dst.s_addr == slirp->vhost_addr.s_addr) {
- icmp_reflect(m);
+ if (ip->ip_dst.s_addr == slirp->vhost_addr.s_addr ||
+ ip->ip_dst.s_addr == slirp->vnameserver_addr.s_addr) {
+ icmp_reflect(m);
} else if (slirp->restricted) {
goto freeit;
} else {