Home
last modified time | relevance | path

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

/openbmc/phosphor-networkd/test/
H A Dmock_syscall.cpp77 void appendRTAttr(std::string& msgBuf, unsigned short type, in appendRTAttr() argument
80 const auto rta_begin = msgBuf.size(); in appendRTAttr()
81 msgBuf.append(RTA_SPACE(data.size()), '\0'); in appendRTAttr()
82 auto& rta = *reinterpret_cast<rtattr*>(msgBuf.data() + rta_begin); in appendRTAttr()
86 msgBuf.data() + rta_begin + RTA_LENGTH(0)); in appendRTAttr()
97 std::string msgBuf; in sendmsg_link_dump() local
98 msgBuf.reserve(8192); in sendmsg_link_dump()
101 if (msgBuf.size() > 4096) in sendmsg_link_dump()
103 msgs.emplace(std::move(msgBuf)); in sendmsg_link_dump()
105 const auto nlbegin = msgBuf.size(); in sendmsg_link_dump()
[all …]