summaryrefslogtreecommitdiffstats
path: root/tests/isisd
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-07-26 22:53:08 +0200
committerChristian Franke <chris@opensourcerouting.org>2018-08-03 13:25:39 +0200
commit321c1bbb940d813735883bfc80cc5bdabb3543c9 (patch)
tree5551f5c8f24e08175445d4627908eb686910ec6c /tests/isisd
parentisisd: don't infer spftree from address family (diff)
downloadfrr-321c1bbb940d813735883bfc80cc5bdabb3543c9.tar.xz
frr-321c1bbb940d813735883bfc80cc5bdabb3543c9.zip
isisd: make spf code dst-src aware
Take the source-prefix sub-TLV into consideration when running SPF and support creation/deletion of dst-src routes as result. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'tests/isisd')
-rw-r--r--tests/isisd/test_isis_vertex_queue.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/isisd/test_isis_vertex_queue.c b/tests/isisd/test_isis_vertex_queue.c
index fe528203a..3e31b8335 100644
--- a/tests/isisd/test_isis_vertex_queue.c
+++ b/tests/isisd/test_isis_vertex_queue.c
@@ -17,21 +17,21 @@ static size_t vertex_count;
static void setup_test_vertices(void)
{
union isis_N nid, nip = {
- .prefix.family = AF_UNSPEC
+ .ip.dest.family = AF_UNSPEC
};
vertices = XMALLOC(MTYPE_TMP, sizeof(*vertices) * 16);
- nip.prefix.family = AF_INET;
- nip.prefix.prefixlen = 24;
- inet_pton(AF_INET, "192.168.1.0", &nip.prefix.u.prefix4);
+ nip.ip.dest.family = AF_INET;
+ nip.ip.dest.prefixlen = 24;
+ inet_pton(AF_INET, "192.168.1.0", &nip.ip.dest.u.prefix4);
vertices[vertex_count] = isis_vertex_new(&nip, VTYPE_IPREACH_TE);
vertices[vertex_count]->d_N = 20;
vertex_count++;
- nip.prefix.family = AF_INET;
- nip.prefix.prefixlen = 24;
- inet_pton(AF_INET, "192.168.2.0", &nip.prefix.u.prefix4);
+ nip.ip.dest.family = AF_INET;
+ nip.ip.dest.prefixlen = 24;
+ inet_pton(AF_INET, "192.168.2.0", &nip.ip.dest.u.prefix4);
vertices[vertex_count] = isis_vertex_new(&nip, VTYPE_IPREACH_TE);
vertices[vertex_count]->d_N = 20;
vertex_count++;
@@ -48,9 +48,9 @@ static void setup_test_vertices(void)
vertices[vertex_count]->d_N = 15;
vertex_count++;
- nip.prefix.family = AF_INET;
- nip.prefix.prefixlen = 24;
- inet_pton(AF_INET, "192.168.3.0", &nip.prefix.u.prefix4);
+ nip.ip.dest.family = AF_INET;
+ nip.ip.dest.prefixlen = 24;
+ inet_pton(AF_INET, "192.168.3.0", &nip.ip.dest.u.prefix4);
vertices[vertex_count] = isis_vertex_new(&nip, VTYPE_IPREACH_TE);
vertices[vertex_count]->d_N = 20;
vertex_count++;