mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 12:21:25 +00:00
[tests:bgp] Further tests for 0 sized as_path segments
2008-02-23 Paul Jakma <paul.jakma@sun.com> * aspath_test.c: Test for 0-ASN sequences that still have data.
This commit is contained in:
parent
c7350c4846
commit
d38e8d63fd
@ -1,3 +1,7 @@
|
||||
2008-02-23 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
* aspath_test.c: Test for 0-ASN sequences that still have data.
|
||||
|
||||
2007-12-22 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
* bgp_capability_test.c: Test for empty capabilities.
|
||||
|
@ -402,6 +402,24 @@ static struct test_segment {
|
||||
"8466 3 52737 4096 3456 {7099,8153}",
|
||||
6, 0, NOT_ALL_PRIVATE, 4096, 4, 8466 },
|
||||
},
|
||||
{ /* 25 */
|
||||
"zero-size overflow",
|
||||
"#ASNs = 0, data = seq(8466 3 52737 4096 3456)",
|
||||
{ 0x2,0x0, 0x21,0x12, 0x00,0x03, 0xce,0x01, 0x10,0x00, 0x0d,0x80 },
|
||||
12,
|
||||
{ "", "",
|
||||
0, 0, 0, 0, 0, 0 },
|
||||
},
|
||||
{ /* 26 */
|
||||
"zero-size overflow + valid segment",
|
||||
"seq(#AS=0:8466 3 52737),seq(4096 3456)",
|
||||
{ 0x2,0x0, 0x21,0x12, 0x00,0x03, 0xce,0x01,
|
||||
0x2,0x2, 0x10,0x00, 0x0d,0x80 },
|
||||
14
|
||||
,
|
||||
{ "", "",
|
||||
0, 0, 0, 0, 0, 0 },
|
||||
},
|
||||
{ NULL, NULL, {0}, 0, { NULL, 0, 0 } }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user