Commit 54fd9cdfb468c1d701ffff168b76a433b73a95c6
1 parent
9dbd25e6
Slirp UDP fix, by Jason Wessel.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2327 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
2 deletions
slirp/udp.c
... | ... | @@ -205,8 +205,6 @@ udp_input(m, iphlen) |
205 | 205 | /* udp_last_so = so; */ |
206 | 206 | so->so_laddr = ip->ip_src; |
207 | 207 | so->so_lport = uh->uh_sport; |
208 | - so->so_faddr = ip->ip_dst; /* XXX */ | |
209 | - so->so_fport = uh->uh_dport; /* XXX */ | |
210 | 208 | |
211 | 209 | if ((so->so_iptos = udp_tos(so)) == 0) |
212 | 210 | so->so_iptos = ip->ip_tos; |
... | ... | @@ -217,6 +215,9 @@ udp_input(m, iphlen) |
217 | 215 | */ |
218 | 216 | } |
219 | 217 | |
218 | + so->so_faddr = ip->ip_dst; /* XXX */ | |
219 | + so->so_fport = uh->uh_dport; /* XXX */ | |
220 | + | |
220 | 221 | iphlen += sizeof(struct udphdr); |
221 | 222 | m->m_len -= iphlen; |
222 | 223 | m->m_data += iphlen; | ... | ... |