From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH 1/2] iproute: Add magic cookie to route dump file Date: Fri, 27 Jul 2012 09:59:42 -0700 Message-ID: <20120727095942.59798456@nehalam.linuxnetplumber.net> References: <50121F4D.8090606@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Stephen Hemminger , Linux Netdev List To: Pavel Emelyanov Return-path: Received: from mail.vyatta.com ([76.74.103.46]:42980 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751030Ab2G0RAL (ORCPT ); Fri, 27 Jul 2012 13:00:11 -0400 In-Reply-To: <50121F4D.8090606@parallels.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 27 Jul 2012 08:55:41 +0400 Pavel Emelyanov wrote: > In order to somehow verify that a blob contains route dump a > 4-bytes magic is put at the head of the data and is checked > on restore. > > Magic digits are taken from Portland (OR) coordinates :) Is > there any more reliable way of generating such? > > Signed-of-by: Pavel Emelyanov > Any magic number is fine as long as it is non-offensive and unique.