From 285f7a62e464eac97e472ba6803ddede1e6c459e Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:30 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- slirp/ip_input.c | 1 - 1 file changed, 1 deletion(-) (limited to 'slirp/ip_input.c') 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(); } -- cgit v1.2.1