commit | 822f5a498b3a21ee990a39d32b644eea947b31bb | [log] [tgz] |
---|---|---|
author | Florin Coras <fcoras@cisco.com> | Tue Jan 29 17:30:29 2019 -0800 |
committer | Damjan Marion <dmarion@me.com> | Wed Jan 30 09:06:56 2019 +0000 |
tree | 0c58c4a02a867aa4640f967c1b14d7c6e8b483fa | |
parent | 4dee8cdb4ebcf7a7c11ae1ca67427d787b7e6cd4 [diff] |
lisp: set reachable flag in map-register Change-Id: I9faaa321113e435844931247f23dbc1d190cc9da Signed-off-by: Florin Coras <fcoras@cisco.com>
diff --git a/src/vnet/lisp-cp/lisp_cli.c b/src/vnet/lisp-cp/lisp_cli.c index 690850c..5cd1834 100644 --- a/src/vnet/lisp-cp/lisp_cli.c +++ b/src/vnet/lisp-cp/lisp_cli.c
@@ -1177,6 +1177,7 @@ &locator.weight)) { locator.local = 1; + locator.state = 1; vec_add1 (locators, locator); } else
diff --git a/src/vnet/lisp-cp/lisp_msg_serdes.c b/src/vnet/lisp-cp/lisp_msg_serdes.c index f45f08f..90afb10 100644 --- a/src/vnet/lisp-cp/lisp_msg_serdes.c +++ b/src/vnet/lisp-cp/lisp_msg_serdes.c
@@ -34,6 +34,7 @@ LOC_MWEIGHT (p) = loc->mweight; LOC_LOCAL (p) = loc->local; LOC_PROBED (p) = loc->probed ? 1 : 0; + LOC_REACHABLE (p) = loc->state ? 1 : 0; lisp_msg_put_gid (b, &loc->address); } }
diff --git a/src/vnet/lisp-cp/one_cli.c b/src/vnet/lisp-cp/one_cli.c index 70d755b..e000c02 100644 --- a/src/vnet/lisp-cp/one_cli.c +++ b/src/vnet/lisp-cp/one_cli.c
@@ -1721,6 +1721,7 @@ &locator.weight)) { locator.local = 1; + locator.state = 1; vec_add1 (locators, locator); } else