2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 23:15:20 +00:00

[#2227] split suboptions in separate options

This commit is contained in:
Razvan Becheriu
2022-05-06 00:16:48 +03:00
parent 1ac77490bc
commit 95f27c2d93
42 changed files with 511 additions and 145 deletions

View File

@@ -49,7 +49,7 @@ Option6StatusCode::clone() const {
}
void
Option6StatusCode::pack(isc::util::OutputBuffer& buf) const {
Option6StatusCode::pack(isc::util::OutputBuffer& buf, bool) const {
// Pack option header.
packHeader(buf);
// Write numeric status code.
@@ -159,9 +159,9 @@ Option4SlpServiceScope::clone() const {
}
void
Option4SlpServiceScope::pack(isc::util::OutputBuffer& buf) const {
Option4SlpServiceScope::pack(isc::util::OutputBuffer& buf, bool check) const {
// Pack option header.
packHeader(buf);
packHeader(buf, check);
// Write mandatory flag.
buf.writeUint8(static_cast<uint8_t>(getMandatoryFlag() ? 1 : 0));
// If there is any scope list, write it.