slirp: Make IP packet ID consistent
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 24 Jun 2009 12:42:30 +0000 (14:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jun 2009 13:52:48 +0000 (08:52 -0500)
commit285f7a62e464eac97e472ba6803ddede1e6c459e
tree978d2607a6776f081b52620cebe5df2450e792b8
parentdf46189412567906312684eb72ba87c6a86a4cdb
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>
slirp/ip_input.c
slirp/slirp.c