projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1f452
)
Fix slirp udp source address contamination (Jason Wessel)
author
balrog
<balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 26 Apr 2008 15:33:41 +0000
(15:33 +0000)
committer
balrog
<balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 26 Apr 2008 15:33:41 +0000
(15:33 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4259
c046a42c
-6fe2-441c-8c8c-
71466251a162
slirp/udp.c
patch
|
blob
|
history
diff --git
a/slirp/udp.c
b/slirp/udp.c
index c48923b0c90996df408c2998412e3c47427cef49..0dd7da6cde35d2e11c3d85ca09767f28baa033f7 100644
(file)
--- a/
slirp/udp.c
+++ b/
slirp/udp.c
@@
-318,7
+318,8
@@
int udp_output(struct socket *so, struct mbuf *m,
struct sockaddr_in saddr, daddr;
saddr = *addr;
- if ((so->so_faddr.s_addr & htonl(0xffffff00)) == special_addr.s_addr) {
+ if ((so->so_faddr.s_addr & htonl(0xffffff00)) == special_addr.s_addr &&
+ addr->sin_addr.s_addr == htonl(0x7f000001)) {
saddr.sin_addr.s_addr = so->so_faddr.s_addr;
if ((so->so_faddr.s_addr & htonl(0x000000ff)) == htonl(0xff))
saddr.sin_addr.s_addr = alias_addr.s_addr;