diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-17 22:47:40 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-17 22:47:40 +0000 |
commit | e4da1afe8a1ef4ba19b90ddd4d9f0af808ad53f7 (patch) | |
tree | 788d3bcbf8011b9c425df7ab23f040b92252490e /udp.c | |
parent | 427ff8316e2575f3c5c411ab9d524234a505e060 (diff) | |
download | slirp-e4da1afe8a1ef4ba19b90ddd4d9f0af808ad53f7.zip slirp-e4da1afe8a1ef4ba19b90ddd4d9f0af808ad53f7.tar.gz slirp-e4da1afe8a1ef4ba19b90ddd4d9f0af808ad53f7.tar.bz2 |
Slirp UDP fix, by Jason Wessel.v0.9.0release_0_9_0
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2327 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'udp.c')
-rw-r--r-- | udp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -203,8 +203,6 @@ int 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; @@ -215,6 +213,9 @@ int 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; |