Skip to content

Commit a0d44a5

Browse files
committed
routes: make the prefix field variable-length.
Signed-off-by: y-kzm <[email protected]>
1 parent 283e816 commit a0d44a5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

test/send.c

+5-4
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,11 @@ START_TEST(test_add_ra_options_route)
162162
ck_assert_msg(0, "\n%s", (char*)&buf);
163163
#else
164164
unsigned char expected[] = {
165-
0x18, 0x03, 0x30, 0x18, 0x00, 0x00, 0x27, 0x10, 0xfe, 0x80, 0x00, 0x0f, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
166-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x03, 0x28, 0x08, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x80, 0x00, 0x0f,
167-
0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x03, 0x20, 0x00, 0x00, 0x00,
168-
0x0b, 0xb8, 0xfe, 0x80, 0x00, 0x0f, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
165+
0x18, 0x02, 0x30, 0x18, 0x00, 0x00, 0x27, 0x10, 0xfe, 0x80, 0x00, 0x0f, 0x00, 0x01, 0x00, 0x00,
166+
0x18, 0x02, 0x28, 0x08, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x80, 0x00, 0x0f, 0x00, 0x02, 0x00, 0x00,
167+
0x18, 0x02, 0x20, 0x00, 0x00, 0x00, 0x0b, 0xb8, 0xfe, 0x80, 0x00, 0x0f, 0x00, 0x02, 0x00, 0x00,
168+
0x18, 0x03, 0x80, 0x00, 0x00, 0x00, 0x0b, 0xb8, 0xfe, 0x80, 0x00, 0x0f, 0x00, 0x02, 0x00, 0x00,
169+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
169170
};
170171

171172
ck_assert_int_eq(sizeof(expected), sb.used);

test/test1.conf

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ interface eth0 {
4242
route fe80:f:2::/32 {
4343
};
4444

45+
route fe80:f:2::/128 {
46+
};
47+
4548
DNSSL office.branch.example.com branch.example.com example.com {
4649
AdvDNSSLLifetime 1000;
4750
};

0 commit comments

Comments
 (0)