diff options
author | 2021-05-03 23:17:15 +0200 | |
---|---|---|
committer | 2021-05-15 20:25:36 +0200 | |
commit | e0781b9663a80448f0aa5fefe5c14d6f0ad195e6 (patch) | |
tree | 49814856fadf109de7db95e051228a9b92052fd0 /net-misc/radvd/files | |
parent | dev-libs/libical: Drop 3.0.8 (diff) | |
download | gentoo-e0781b9663a80448f0aa5fefe5c14d6f0ad195e6.tar.gz gentoo-e0781b9663a80448f0aa5fefe5c14d6f0ad195e6.tar.bz2 gentoo-e0781b9663a80448f0aa5fefe5c14d6f0ad195e6.zip |
net-misc/radvd: Drop 2.17 and 2.18, EAPI6--
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'net-misc/radvd/files')
-rw-r--r-- | net-misc/radvd/files/radvd-2.17-nd_opt_6co.patch | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/net-misc/radvd/files/radvd-2.17-nd_opt_6co.patch b/net-misc/radvd/files/radvd-2.17-nd_opt_6co.patch deleted file mode 100644 index 09fb29f9e318..000000000000 --- a/net-misc/radvd/files/radvd-2.17-nd_opt_6co.patch +++ /dev/null @@ -1,48 +0,0 @@ -nd_opt_6co: fix serialization - -Bug: https://github.com/reubenhwk/radvd/issues/77 -Bug: https://bugs.gentoo.org/637958 ---- a/radvd.h -+++ b/radvd.h -@@ -261,5 +261,3 @@ struct nd_opt_6co { - uint8_t nd_opt_6co_context_len; -- uint8_t nd_opt_6co_res : 3; -- uint8_t nd_opt_6co_c : 1; -- uint8_t nd_opt_6co_cid : 4; -+ uint8_t nd_opt_6co_res_c_cid; /* [ res=3-bits | c=1-bit | cid=4-bits ] */ - uint16_t nd_opt_6co_reserved; ---- a/send.c -+++ b/send.c -@@ -621,5 +621,5 @@ static void add_ra_option_lowpanco(struct safe_buffer *sb, struct AdvLowpanCo co - co.nd_opt_6co_context_len = lowpanco->ContextLength; -- co.nd_opt_6co_c = lowpanco->ContextCompressionFlag; -- co.nd_opt_6co_cid = lowpanco->AdvContextID; -- co.nd_opt_6co_valid_lifetime = lowpanco->AdvLifeTime; -+ co.nd_opt_6co_res_c_cid = ((lowpanco->ContextCompressionFlag ? 1 : 0) << 4) -+ | (lowpanco->AdvContextID & 0x0F); -+ co.nd_opt_6co_valid_lifetime = htons(lowpanco->AdvLifeTime); - co.nd_opt_6co_con_prefix = lowpanco->AdvContextPrefix; -@@ -637,5 +637,5 @@ static void add_ra_option_abro(struct safe_buffer *sb, struct AdvAbro const *abr - abro.nd_opt_abro_len = 3; -- abro.nd_opt_abro_ver_low = abroo->Version[1]; -- abro.nd_opt_abro_ver_high = abroo->Version[0]; -- abro.nd_opt_abro_valid_lifetime = abroo->ValidLifeTime; -+ abro.nd_opt_abro_ver_low = htons(abroo->Version[1]); -+ abro.nd_opt_abro_ver_high = htons(abroo->Version[0]); -+ abro.nd_opt_abro_valid_lifetime = htons(abroo->ValidLifeTime); - abro.nd_opt_abro_6lbr_address = abroo->LBRaddress; ---- a/test/send.c -+++ b/test/send.c -@@ -311,6 +311,5 @@ START_TEST(test_add_ra_option_lowpanco) - unsigned char expected[] = { -- 0x22, 0x03, 0x32, 0x48, 0x00, 0x00, 0xe8, 0x03, 0x00, 0x00, 0x00, 0x00, -+ 0x22, 0x03, 0x32, 0x14, 0x00, 0x00, 0x03, 0xe8, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - }; -- - ck_assert_int_eq(sb.used, sizeof(expected)); -@@ -336,3 +335,3 @@ START_TEST(test_add_ra_option_abro) - unsigned char expected[] = { -- 0x23, 0x03, 0x0a, 0x00, 0x02, 0x00, 0x02, 0x00, 0xfe, 0x80, 0x00, 0x00, -+ 0x23, 0x03, 0x00, 0x0a, 0x00, 0x02, 0x00, 0x02, 0xfe, 0x80, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xa2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, |