Fix tests/aspathtest.c again, this time by including a NEXT_HOP
attribute (which is out of correct order with AS_PATH, but that doesn't
matter here.) This satisfies bgp_attr_check(), which after 1a211cb
refuses updates without nexthop attribute.
Fixes: 1a211cb ("one more fix for tightening of check for missing well-known
attributes")
Cc: Paul Jakma <[email protected]>
Signed-off-by: David Lamparter <[email protected]>
---
tests/aspath_test.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tests/aspath_test.c b/tests/aspath_test.c
index 71a3102..0aa3e47 100644
--- a/tests/aspath_test.c
+++ b/tests/aspath_test.c
@@ -457,8 +457,11 @@ static struct test_segment {
BGP_ATTR_FLAG_TRANS, \
BGP_ATTR_ORIGIN, \
1, \
- BGP_ORIGIN_EGP
-#define COMMON_ATTR_SIZE 4
+ BGP_ORIGIN_EGP, \
+ BGP_ATTR_FLAG_TRANS, \
+ BGP_ATTR_NEXT_HOP, \
+ 4, 192, 0, 2, 0
+#define COMMON_ATTR_SIZE 11
/* */
static struct aspath_tests {
--
2.0.4
_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev