Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/ldpd First send initialize and keep alive after tha...



details:   https://anonhg.NetBSD.org/src/rev/1e8c1b55900b
branches:  trunk
changeset: 786741:1e8c1b55900b
user:      kefren <kefren%NetBSD.org@localhost>
date:      Wed May 08 08:57:45 2013 +0000

description:
First send initialize and keep alive after that. Fixes inter-operability
issues regarding session initialization.

diffstat:

 usr.sbin/ldpd/socketops.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 97a1f24076cf -r 1e8c1b55900b usr.sbin/ldpd/socketops.c
--- a/usr.sbin/ldpd/socketops.c Wed May 08 08:24:13 2013 +0000
+++ b/usr.sbin/ldpd/socketops.c Wed May 08 08:57:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: socketops.c,v 1.26 2013/02/04 20:28:24 kefren Exp $ */
+/* $NetBSD: socketops.c,v 1.27 2013/05/08 08:57:45 kefren Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -1144,8 +1144,8 @@
                        }
 
                        if (!p->master) {
+                               send_initialize(p);
                                keep_alive(p);
-                               send_initialize(p);
                        } else {
                                p->state = LDP_PEER_ESTABLISHED;
                                p->established_t = time(NULL);



Home | Main Index | Thread Index | Old Index