]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iproute: Add magic cookie to route dump file
authorPavel Emelyanov <xemul@parallels.com>
Thu, 26 Jul 2012 18:55:41 +0000 (18:55 +0000)
committerStephen Hemminger <shemminger@vyatta.com>
Fri, 7 Sep 2012 16:10:51 +0000 (09:10 -0700)
commit76c61b34a6abbb5643f8e7dc3d45417a38b18ae3
tree44749776d18ac3b144c52595473d7cb3a55c2f5b
parent1b3c149b4101a985ef6bcb4dd1774c1408c8f30f
iproute: Add magic cookie to route dump file

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 <xemul@parallels.com>
ip/iproute.c