Skip to content

Commit 078f932

Browse files
committed
FIX: LsAddrPrefix length (test params)
1 parent 4462479 commit 078f932

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/packet/bgp/bgp_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3346,7 +3346,7 @@ func Test_LsAddrPrefix(t *testing.T) {
33463346
// Mandatory TLV missing
33473347
}, "", true, false},
33483348
{[]byte{
3349-
0x00, 0x02, 0x00, 0x65, // Link NLRI, correct length
3349+
0x00, 0x02, 0x00, 0x61, // Link NLRI, correct length
33503350
0x02, // Protocol ISIS Level 2
33513351
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ID
33523352
0x01, 0x00, 0x00, 0x22, // Local Node Desc
@@ -3362,7 +3362,7 @@ func Test_LsAddrPrefix(t *testing.T) {
33623362
0x01, 0x02, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, // LinkID TLV, Local: 1, Remote: 2
33633363
}, "NLRI { LINK { LOCAL_NODE: 0102.0304.0506 REMOTE_NODE: 0605.0403.0201 LINK: 1->2} }", false, true},
33643364
{[]byte{
3365-
0x00, 0x02, 0x00, 0x69, // Link NLRI, correct length
3365+
0x00, 0x02, 0x00, 0x65, // Link NLRI, correct length
33663366
0x02, // Protocol ISIS Level 2
33673367
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ID
33683368
0x01, 0x00, 0x00, 0x22, // Local Node Desc
@@ -3379,7 +3379,7 @@ func Test_LsAddrPrefix(t *testing.T) {
33793379
0x01, 0x04, 0x00, 0x04, 0x02, 0x02, 0x02, 0x02, // IPv4 Neighbor Addr TLV: 2.2.2.2
33803380
}, "NLRI { LINK { LOCAL_NODE: 0102.0304.0506 REMOTE_NODE: 0605.0403.0201 LINK: 1.1.1.1->2.2.2.2} }", false, true},
33813381
{[]byte{
3382-
0x00, 0x02, 0x00, 0x81, // Link NLRI, correct length
3382+
0x00, 0x02, 0x00, 0x7d, // Link NLRI, correct length
33833383
0x02, // Protocol ISIS Level 2
33843384
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ID
33853385
0x01, 0x00, 0x00, 0x22, // Local Node Desc
@@ -3396,7 +3396,7 @@ func Test_LsAddrPrefix(t *testing.T) {
33963396
0x01, 0x06, 0x00, 0x10, 0x20, 0x01, 0x0d, 0xb8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xDE, 0xAD, // IPv6 Interface Addr TLV: 2001:db8::dead
33973397
}, "NLRI { LINK { LOCAL_NODE: 0102.0304.0506 REMOTE_NODE: 0605.0403.0201 LINK: 2001:db8::beef->2001:db8::dead} }", false, true},
33983398
{[]byte{
3399-
0x00, 0x02, 0x00, 0x59, // Link NLRI, correct length
3399+
0x00, 0x02, 0x00, 0x55, // Link NLRI, correct length
34003400
0x02, // Protocol ISIS Level 2
34013401
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ID
34023402
0x01, 0x00, 0x00, 0x22, // Local Node Desc
@@ -3411,7 +3411,7 @@ func Test_LsAddrPrefix(t *testing.T) {
34113411
0x02, 0x03, 0x00, 0x06, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01, // TLV IGP Router ID: 0605.0403.0201
34123412
}, "NLRI { LINK { LOCAL_NODE: 0102.0304.0506 REMOTE_NODE: 0605.0403.0201 LINK: UNKNOWN} }", false, true},
34133413
{[]byte{
3414-
0x00, 0x02, 0x00, 0x33, // Link NLRI, correct length
3414+
0x00, 0x02, 0x00, 0x2f, // Link NLRI, correct length
34153415
0x02, // Protocol ISIS Level 2
34163416
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ID
34173417
0x01, 0x00, 0x00, 0x22, // Local Node Desc

0 commit comments

Comments
 (0)