Home
last modified time | relevance | path

Searched refs:langtagLen (Results 1 – 4 of 4) sorted by relevance

/openbmc/slpd-lite/
H A Dslp_parser.cpp64 uint16_t langtagLen; in parseHeader() local
67 slp::header::SIZE_LANG, (uint8_t*)&langtagLen); in parseHeader()
69 langtagLen = endian::from_network(langtagLen); in parseHeader()
72 if ((slp::header::OFFSET_LANG + langtagLen) > buff.size()) in parseHeader()
74 std::cerr << "Invalid Language Tag Length: " << langtagLen in parseHeader()
80 req.header.langtagLen = langtagLen; in parseHeader()
83 langtagLen); in parseHeader()
121 uint32_t pos = slp::header::MIN_LEN + req.header.langtagLen; in parseSrvTypeRqst()
236 uint32_t pos = slp::header::MIN_LEN + req.header.langtagLen; in parseSrvRqst()
H A Dslp_message_handler.cpp54 uint16_t langtagLen = req.header.langtag.length(); in prepareHeader() local
55 langtagLen = endian::to_network(langtagLen); in prepareHeader()
56 std::copy_n((uint8_t*)&langtagLen, slp::header::SIZE_LANG, in prepareHeader()
437 uint16_t langtagLen = 0; in processError() local
438 std::copy_n((uint8_t*)&langtagLen, slp::header::SIZE_LANG, in processError()
H A Dslp.hpp105 uint16_t langtagLen = 0; member
/openbmc/slpd-lite/test/
H A Dslp_parser_test.cpp110 EXPECT_EQ(req.header.langtagLen, 4); in TEST()
133 EXPECT_EQ(req.header.langtagLen, 2); in TEST()
157 EXPECT_EQ(req.header.langtagLen, 4); in TEST()
221 EXPECT_EQ(req.header.langtagLen, 4); in TEST()
251 EXPECT_EQ(req.header.langtagLen, 2); in TEST()
277 EXPECT_EQ(req.header.langtagLen, 4); in TEST()