diff options
author | Matthieu Boutier <boutier@pps.jussieu.fr> | 2012-01-28 10:35:12 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-03-25 17:06:53 +0100 |
commit | 69394543597a0fd8c161c5c8a0d25c8b1cfa8a93 (patch) | |
tree | 9e13b75ac01d607d4006db15fd14db811b9310e0 /babeld/babeld.c | |
parent | 210f6f66287c40f247c1a4ff983aae85b9e42e2c (diff) |
babeld: state-file was loaded too early. Initial seqno too.
Diffstat (limited to 'babeld/babeld.c')
-rw-r--r-- | babeld/babeld.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c index d69662c0..33b5d9e1 100644 --- a/babeld/babeld.c +++ b/babeld/babeld.c @@ -173,7 +173,9 @@ babel_read_protocol (struct thread *thread) static int babel_init_routing_process(struct thread *thread) { + myseqno = (random() & 0xFFFF); babel_get_myid(); + babel_load_state_file(); debugf(BABEL_DEBUG_COMMON, "My ID is : %s.", format_eui64(myid)); babel_initial_noise(); babel_main_loop(thread);/* this function self-add to the t_update thread */ |