Home
last modified time | relevance | path

Searched refs:nlmsghdr (Results 1 – 25 of 27) sorted by relevance

12

/hardware/interfaces/automotive/can/1.0/default/libnl++/include/libnl++/
DMessageMutator.h35 MessageMutator(nlmsghdr* buffer, size_t totalLen);
37 nlmsghdr* operator->() const;
38 operator Buffer<nlmsghdr>() const;
58 iterator(const MessageMutator& container, Buffer<nlmsghdr>::iterator current);
66 Buffer<nlmsghdr>::iterator mCurrent;
72 nlmsghdr* mMutableBuffer;
75 Buffer<nlmsghdr> constBuffer() const;
76 MessageMutator fragment(Buffer<nlmsghdr> buf) const;
DMessage.h37 class Message : public Buffer<nlmsghdr> {
45 static std::optional<Message<T>> parse(Buffer<nlmsghdr> buf) { in parse()
65 static std::optional<Message<T>> parse(Buffer<nlmsghdr> buf, in parse()
80 const nlmsghdr& header;
97 Message(Buffer<nlmsghdr> buffer, const nlmsghdr& nlHeader, const T& dataHeader, in Message()
99 : Buffer<nlmsghdr>(buffer), header(nlHeader), data(dataHeader), attributes(attributes) {} in Message()
DSocket.h101 bool send(const Buffer<nlmsghdr>& msg, const sockaddr_nl& sa);
110 bool send(const Buffer<nlmsghdr>& msg, uint32_t destination);
121 std::optional<Buffer<nlmsghdr>> receive(size_t maxSize = defaultReceiveSize);
134 std::pair<std::optional<Buffer<nlmsghdr>>, sockaddr_nl> receiveFrom(
240 const Buffer<nlmsghdr>& operator*() const;
245 Buffer<nlmsghdr>::iterator mCurrent;
261 std::optional<Buffer<nlmsghdr>> receive(const std::set<nlmsgtype_t>& msgtypes, size_t maxSize);
DMessageFactory.h31 static nlattr* add(nlmsghdr* msg, size_t maxLen, nlattrtype_t type, const void* data,
33 static void closeNested(nlmsghdr* msg, nlattr* nested);
45 nlmsghdr header;
69 nlmsghdr& header;
91 std::optional<Buffer<nlmsghdr>> build() const { in build()
Dtypes.h23 typedef decltype(nlmsghdr::nlmsg_type) nlmsgtype_t;
Dprinter.h35 std::string toString(const Buffer<nlmsghdr> hdr, int protocol, bool printPayload = true);
DBuffer.h203 inline size_t Buffer<nlmsghdr>::declaredLengthImpl() const { in declaredLengthImpl()
/hardware/interfaces/automotive/can/1.0/default/libnl++/
DMessageMutator.cpp21 MessageMutator::MessageMutator(nlmsghdr* buffer, size_t totalLen) in MessageMutator()
23 CHECK(totalLen >= sizeof(nlmsghdr)); in MessageMutator()
26 nlmsghdr* MessageMutator::operator->() const { in operator ->()
30 Buffer<nlmsghdr> MessageMutator::constBuffer() const { in constBuffer()
34 MessageMutator::operator Buffer<nlmsghdr>() const { in operator Buffer<nlmsghdr>()
55 MessageMutator MessageMutator::fragment(Buffer<nlmsghdr> buf) const { in fragment()
59 const auto writeableBuffer = reinterpret_cast<nlmsghdr*>(uintptr_t(mMutableBuffer) + *offset); in fragment()
75 Buffer<nlmsghdr>::iterator current) in iterator()
DSocket.cpp61 bool Socket::send(const Buffer<nlmsghdr>& msg, const sockaddr_nl& sa) { in send()
82 bool Socket::send(const Buffer<nlmsghdr>& msg, uint32_t destination) { in send()
97 std::optional<Buffer<nlmsghdr>> Socket::receive(size_t maxSize) { in receive()
101 std::pair<std::optional<Buffer<nlmsghdr>>, sockaddr_nl> Socket::receiveFrom(size_t maxSize) { in receiveFrom()
120 Buffer<nlmsghdr> msg(reinterpret_cast<nlmsghdr*>(mReceiveBuffer.data()), bytesReceived); in receiveFrom()
150 std::optional<Buffer<nlmsghdr>> Socket::receive(const std::set<nlmsgtype_t>& msgtypes, in receive()
222 const Buffer<nlmsghdr>& Socket::receive_iterator::operator*() const { in operator *()
DMessageFactory.cpp24 static nlattr* tail(nlmsghdr* msg) { in tail()
28 nlattr* MessageFactoryBase::add(nlmsghdr* msg, size_t maxLen, nlattrtype_t type, const void* data, in add()
47 void MessageFactoryBase::closeNested(nlmsghdr* msg, nlattr* nested) { in closeNested()
Dprinter.cpp157 static void toStream(std::stringstream& ss, const Buffer<nlmsghdr> hdr, int protocol, in toStream()
218 std::string toString(const Buffer<nlmsghdr> hdrs, int protocol, bool printPayload) { in toString()
/hardware/interfaces/automotive/can/1.0/default/libnl++/include/libnl++/generic/
DFamilyTracker.h42 std::optional<Message<genlmsghdr>> parseNl80211(Buffer<nlmsghdr> msg);
59 bool track(const Buffer<nlmsghdr>& msg);
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/generic/
DFamilyTracker.cpp23 bool FamilyTracker::track(const Buffer<nlmsghdr>& buffer) { in track()
44 std::optional<Message<genlmsghdr>> FamilyTracker::parseNl80211(Buffer<nlmsghdr> msg) { in parseNl80211()
DCtrl.h28 void track(const Buffer<nlmsghdr> hdr) override;
DCtrl.cpp63 void Ctrl::track(const Buffer<nlmsghdr> hdr) { in track()
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/
DMessageDefinition.h151 virtual void dataToStream(std::stringstream& ss, const Buffer<nlmsghdr> hdr) const = 0;
158 virtual void track(const Buffer<nlmsghdr> hdr);
189 void dataToStream(std::stringstream& ss, const Buffer<nlmsghdr> hdr) const override { in dataToStream()
DMessageDefinition.cpp70 void MessageDescriptor::track(const Buffer<nlmsghdr> /* hdr */) {} in track() argument
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_Netlink.cpp429 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; in ipa_nl_decode_rtm_link()
433 buflen -= sizeof(struct nlmsghdr); in ipa_nl_decode_rtm_link()
446 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_addr()
451 buflen -= sizeof(struct nlmsghdr); in ipa_nl_decode_rtm_addr()
487 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_neigh()
492 buflen -= sizeof(struct nlmsghdr); in ipa_nl_decode_rtm_neigh()
535 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_route()
540 buflen -= sizeof(struct nlmsghdr); in ipa_nl_decode_rtm_route()
611 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; in ipa_nl_decode_nlmsg()
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Netlink.cpp429 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; in ipa_nl_decode_rtm_link()
433 buflen -= sizeof(struct nlmsghdr); in ipa_nl_decode_rtm_link()
446 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_addr()
451 buflen -= sizeof(struct nlmsghdr); in ipa_nl_decode_rtm_addr()
487 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_neigh()
492 buflen -= sizeof(struct nlmsghdr); in ipa_nl_decode_rtm_neigh()
535 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_route()
540 buflen -= sizeof(struct nlmsghdr); in ipa_nl_decode_rtm_route()
611 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; in ipa_nl_decode_nlmsg()
DIPACM_ConntrackListener.cpp1250 struct nlmsghdr *nl_header; in readConntrack()
1296 nl_header = (struct nlmsghdr *)buffer; in readConntrack()
/hardware/google/pixel/thermal/utils/
Dthermal_watcher.cpp58 struct nlmsghdr *nlh = nlmsg_hdr(msg); in nlFinishHandle()
68 struct nlmsghdr *nlh = nlmsg_hdr(msg); in nlAckHandle()
78 struct nlmsghdr *nlh = nlmsg_hdr(msg); in nlSeqCheckHandle()
190 struct nlmsghdr *nlh = nlmsg_hdr(n); in handleEvent()
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/
Dwifilogger_diag.h133 struct nlmsghdr nlh; // Netlink Header
Dwifi_hal.cpp1594 static int validate_cld80211_msg(nlmsghdr *nlh, int family, int cmd) in validate_cld80211_msg()
1622 static int validate_genl_msg(nlmsghdr *nlh, int family, int cmd) in validate_genl_msg()
1746 struct nlmsghdr *nlh = (struct nlmsghdr *)ctrl_msg->data; in register_monitor_sock()
2103 struct nlmsghdr *nlh = nlmsg_hdr(msg); in internal_valid_message_handler()
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/
Dwifilogger_diag.h133 struct nlmsghdr nlh; // Netlink Header
Dwifi_hal.cpp1679 static int validate_cld80211_msg(nlmsghdr *nlh, int family, int cmd) in validate_cld80211_msg()
1707 static int validate_genl_msg(nlmsghdr *nlh, int family, int cmd) in validate_genl_msg()
1831 struct nlmsghdr *nlh = (struct nlmsghdr *)ctrl_msg->data; in register_monitor_sock()
2202 struct nlmsghdr *nlh = nlmsg_hdr(msg); in internal_valid_message_handler()

12