summaryrefslogtreecommitdiff
path: root/slirp/udp.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:27 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:44 -0500
commit753a5f170d6ea9dd577067721a0ccbce69fc191c (patch)
treef795963577109287a6f3e1f053f0085cb555398f /slirp/udp.c
parentc18a2c360e3100bbd71162cf922dcd8c429a8b71 (diff)
downloadqemu-753a5f170d6ea9dd577067721a0ccbce69fc191c.tar.gz
qemu-753a5f170d6ea9dd577067721a0ccbce69fc191c.tar.bz2
qemu-753a5f170d6ea9dd577067721a0ccbce69fc191c.zip
slirp: Drop redundant lines from udp_input
The socket faddr/fport is already updated a few lines below, so these are completely redundant. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/udp.c')
-rw-r--r--slirp/udp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/slirp/udp.c b/slirp/udp.c
index 11e78cddd5..ba9d5c92ba 100644
--- a/slirp/udp.c
+++ b/slirp/udp.c
@@ -173,8 +173,6 @@ udp_input(register struct mbuf *m, int iphlen)
for (tmp = udb.so_next; tmp != &udb; tmp = tmp->so_next) {
if (tmp->so_lport == uh->uh_sport &&
tmp->so_laddr.s_addr == ip->ip_src.s_addr) {
- tmp->so_faddr.s_addr = ip->ip_dst.s_addr;
- tmp->so_fport = uh->uh_dport;
so = tmp;
break;
}