aboutsummaryrefslogtreecommitdiff
path: root/slirp/udp.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-17 22:47:40 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-17 22:47:40 +0000
commit54fd9cdfb468c1d701ffff168b76a433b73a95c6 (patch)
tree4ac3b6b23ed6655709982f105a4444384580e8c6 /slirp/udp.c
parent9dbd25e664955f3b936fa7f98818324d36b8b92b (diff)
downloadqemu-arm-54fd9cdfb468c1d701ffff168b76a433b73a95c6.tar.gz
Slirp UDP fix, by Jason Wessel.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2327 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/udp.c')
-rw-r--r--slirp/udp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/slirp/udp.c b/slirp/udp.c
index 0d70970270..8cf4cbd315 100644
--- a/slirp/udp.c
+++ b/slirp/udp.c
@@ -205,8 +205,6 @@ udp_input(m, iphlen)
/* udp_last_so = so; */
so->so_laddr = ip->ip_src;
so->so_lport = uh->uh_sport;
- so->so_faddr = ip->ip_dst; /* XXX */
- so->so_fport = uh->uh_dport; /* XXX */
if ((so->so_iptos = udp_tos(so)) == 0)
so->so_iptos = ip->ip_tos;
@@ -217,6 +215,9 @@ udp_input(m, iphlen)
*/
}
+ so->so_faddr = ip->ip_dst; /* XXX */
+ so->so_fport = uh->uh_dport; /* XXX */
+
iphlen += sizeof(struct udphdr);
m->m_len -= iphlen;
m->m_data += iphlen;