aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2020-03-03 19:04:05 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2020-03-03 19:04:33 +0100
commite6746da6de45bcacc42010cea828129eae38ba67 (patch)
treeb815db9e25e3c838db662626ea8a6f509500b94e /lib
parent78e4a123bb937bb45f7eaebb0ea475095443bfd0 (diff)
downloadbird-e6746da6de45bcacc42010cea828129eae38ba67.tar.gz
Flowspec: Fix tests
Missing dst no longer generates error.
Diffstat (limited to 'lib')
-rw-r--r--lib/flowspec_test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/flowspec_test.c b/lib/flowspec_test.c
index bff33e7e..b6b4d7b8 100644
--- a/lib/flowspec_test.c
+++ b/lib/flowspec_test.c
@@ -229,11 +229,9 @@ t_validation4(void)
FLOW_TYPE_TCP_FLAGS, 0x80, 0x55,
};
- /* Isn't included destination prefix */
+ /* Empty NLRI */
res = flow4_validate(nlri1, 0);
- bt_assert(res == FLOW_ST_DEST_PREFIX_REQUIRED);
- res = flow4_validate(&nlri1[5], sizeof(nlri1)-5);
- bt_assert(res == FLOW_ST_DEST_PREFIX_REQUIRED);
+ bt_assert(res == FLOW_ST_VALID);
/* Valid / Not Complete testing */
uint valid_sizes[] = {5, 11, 14, 22, 25, 0};