summaryrefslogtreecommitdiff
path: root/slirp/ip_input.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:30 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:48 -0500
commit285f7a62e464eac97e472ba6803ddede1e6c459e (patch)
tree978d2607a6776f081b52620cebe5df2450e792b8 /slirp/ip_input.c
parentdf46189412567906312684eb72ba87c6a86a4cdb (diff)
downloadqemu-285f7a62e464eac97e472ba6803ddede1e6c459e.tar.gz
qemu-285f7a62e464eac97e472ba6803ddede1e6c459e.tar.bz2
qemu-285f7a62e464eac97e472ba6803ddede1e6c459e.zip
slirp: Make IP packet ID consistent
Currently, ip_id is always initialized to 0 on slirp startup (despite the broken attempt to derive it from the clock). This is good for reproducibility. But it is not preserved across save/restore. This patch therefore drops the dead initialization code from ip_init and introduces ip_id to the persistent slirp state. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/ip_input.c')
-rw-r--r--slirp/ip_input.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/slirp/ip_input.c b/slirp/ip_input.c
index 0356eb587b..b07d3d5d5d 100644
--- a/slirp/ip_input.c
+++ b/slirp/ip_input.c
@@ -59,7 +59,6 @@ void
ip_init(void)
{
ipq.ip_link.next = ipq.ip_link.prev = &ipq.ip_link;
- ip_id = tt.tv_sec & 0xffff;
udp_init();
tcp_init();
}