qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 25/41] slirp: Make IP packet ID consistent


From: Filip Navara
Subject: Re: [Qemu-devel] [PATCH 25/41] slirp: Make IP packet ID consistent
Date: Wed, 24 Jun 2009 16:34:10 +0200

On Wed, Jun 24, 2009 at 2:42 PM, Jan Kiszka<address@hidden> wrote:
> 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 <address@hidden>
> ---
>
>  slirp/ip_input.c |    1 -
>  slirp/slirp.c    |    8 +++++++-
>  2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/slirp/ip_input.c b/slirp/ip_input.c
> index 0356eb5..b07d3d5 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;

You removed the ip_id initialization and now it's never initialized in
the code. That sounds wrong.

Best regards,
Filip Navara




reply via email to

[Prev in Thread] Current Thread [Next in Thread]