Update per-neighbor GTSM options on config reload.
authorrenato <renato@openbsd.org>
Fri, 15 Jul 2016 17:03:10 +0000 (17:03 +0000)
committerrenato <renato@openbsd.org>
Fri, 15 Jul 2016 17:03:10 +0000 (17:03 +0000)
usr.sbin/ldpd/ldpd.c

index 51ef17d..48f98ad 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ldpd.c,v 1.56 2016/07/01 23:29:55 renato Exp $ */
+/*     $OpenBSD: ldpd.c,v 1.57 2016/07/15 17:03:10 renato Exp $ */
 
 /*
  * Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
@@ -1011,6 +1011,8 @@ merge_nbrps(struct ldpd_conf *conf, struct ldpd_conf *xconf)
                        nbrp_changed = 0;
 
                nbrp->keepalive = xn->keepalive;
+               nbrp->gtsm_enabled = xn->gtsm_enabled;
+               nbrp->gtsm_hops = xn->gtsm_hops;
                nbrp->auth.method = xn->auth.method;
                strlcpy(nbrp->auth.md5key, xn->auth.md5key,
                    sizeof(nbrp->auth.md5key));