Skip to content

Commit

Permalink
Add LLRP Probe Request PDU, fix the length flags bug
Browse files Browse the repository at this point in the history
(cherry picked from commit e9dd374)
  • Loading branch information
peternewman committed Mar 16, 2024
1 parent 35f14cc commit cc2da45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/acn/LLRPProbeRequestPDU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void LLRPProbeRequestPDU::PrependPDU(ola::io::IOStack *stack,
(known_uids.Size() * UID::LENGTH)));
uint8_t vector = HostToNetwork(VECTOR_PROBE_REQUEST_DATA);
stack->Write(reinterpret_cast<uint8_t*>(&vector), sizeof(vector));
PrependFlagsAndLength(stack);
PrependFlagsAndLength(stack, VFLAG_MASK | HFLAG_MASK | DFLAG_MASK, true);
}
} // namespace acn
} // namespace ola
2 changes: 1 addition & 1 deletion libs/acn/LLRPProbeRequestPDUTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void LLRPProbeRequestPDUTest::testPrepend() {
OLA_ASSERT(stack.Read(buffer, length));

const uint8_t expected_data[] = {
0xf0, 0x23, 1,
0xf0, 0x00, 0x24, 1,
0, 0, 0, 0, 0, 0,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x00, 0x00,
Expand Down

0 comments on commit cc2da45

Please sign in to comment.