Home
last modified time | relevance | path

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

/system/connectivity/wificond/net/
Dnl80211_attribute.cpp45 nlattr* header = reinterpret_cast<nlattr*>(data_.data()); in InitHeaderAndResize()
51 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetAttributeId()
59 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in IsValid()
76 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in GetAttributeImpl()
104 auto our_header = reinterpret_cast<nlattr*>(data_.data()); in Merge()
107 reinterpret_cast<const nlattr*>(other_attr.GetConstData().data()); in Merge()
138 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetValue()
160 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetValue()
184 nlattr* header = reinterpret_cast<nlattr*>(data_.data()); in AddAttribute()
194 nlattr* flag_header = in AddFlagAttribute()
[all …]
Dnl80211_attribute.h92 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in IsValid()
203 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in GetListOfAttributeValues()
241 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in GetListOfAttributes()
Dnl80211_packet.cpp184 nlattr* flag_header = in AddFlagAttribute()
185 reinterpret_cast<nlattr*>(data_.data() + data_.size() - NLA_HDRLEN); in AddFlagAttribute()
223 auto header = reinterpret_cast<const nlattr*>(ptr); in GetAllAttributes()
241 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in DebugLog()
/system/netd/server/
DWakeupControllerTest.cpp103 nlattr uidAttr; in TEST_F()
105 nlattr gidAttr; in TEST_F()
107 nlattr tsAttr; in TEST_F()
109 nlattr prefixAttr; in TEST_F()
153 nlattr uidAttr; in TEST_F()
155 nlattr gidAttr; in TEST_F()
157 nlattr tsAttr; in TEST_F()
159 nlattr prefixAttr; in TEST_F()
161 nlattr packetHeaderAttr; in TEST_F()
163 nlattr hardwareAddrAttr; in TEST_F()
[all …]
DXfrmController.h277 nlattr hdr;
285 nlattr hdr;
293 nlattr hdr;
300 nlattr hdr;
307 nlattr hdr;
314 nlattr hdr;
321 nlattr hdr;
328 nlattr hdr;
334 nlattr hdr;
DOffloadUtils.cpp165 nlattr attr; in doTcQdiscClsact()
277 nlattr attr; in tcFilterAddDevBpf()
281 nlattr attr; in tcFilterAddDevBpf()
283 nlattr attr; in tcFilterAddDevBpf()
287 nlattr attr; in tcFilterAddDevBpf()
291 nlattr attr; in tcFilterAddDevBpf()
DXfrmController.cpp185 size_t fillNlAttr(__u16 nlaType, size_t valueSize, nlattr* nlAttr) { in fillNlAttr()
188 nlAttr->nla_len = (__u16)(dataLen + sizeof(nlattr)); in fillNlAttr()
193 size_t fillNlAttrIpAddress(__u16 nlaType, int family, const std::string& value, nlattr* nlAttr, in fillNlAttrIpAddress()
345 void fillXfrmNlaHdr(nlattr* hdr, uint16_t type, uint16_t len) { in fillXfrmNlaHdr()
1386 nlattr ifNameNla; in ipSecAddXfrmInterface()
1389 nlattr linkInfoNla; in ipSecAddXfrmInterface()
1391 nlattr infoKindNla; in ipSecAddXfrmInterface()
1394 nlattr infoDataNla; in ipSecAddXfrmInterface()
1396 nlattr xfrmLinkNla; in ipSecAddXfrmInterface()
1399 nlattr xfrmIfIdNla; in ipSecAddXfrmInterface()
[all …]
DSockDiag.cpp175 nlattr nla; in sendDumpRequest()
499 struct nlattr nla = { in destroySocketsLackingPermission()
500 .nla_len = sizeof(struct nlattr) + bytecodelen, in destroySocketsLackingPermission()
DWakeupController.cpp135 const auto attrHandler = [&args, &parseAgain](const nlattr attr, const Slice payload) { in init()
DXfrmControllerTest.cpp398 const nlattr& attr, const Slice& attr_payload) { in testIpSecAddSecurityAssociation()
571 auto attrHandler = [mark, xfrm_if_id](const nlattr& attr, const Slice& attr_payload) { in parseTunnelNetlinkAttrs()
683 auto attrHandler = [&usertmpl, &mark, &xfrm_if_id](const nlattr& attr, in TEST_P()
/system/netd/libnetdutils/
DNetlink.cpp39 const std::function<void(const nlattr&, const Slice)>& onAttr) { in forEachNetlinkAttribute() argument
41 while (tail.size() >= sizeof(nlattr)) { in forEachNetlinkAttribute()
42 nlattr hdr = {}; in forEachNetlinkAttribute()
69 std::ostream& operator<<(std::ostream& os, const nlattr& attr) { in operator <<()
/system/netd/libnetdutils/include/netdutils/
DNetlink.h43 const std::function<void(const nlattr&, const Slice)>& onAttr);
52 std::ostream& operator<<(std::ostream& os, const nlattr& attr);
/system/extras/iotop/
Dtaskstats.cpp66 static pid_t ParseAggregateTaskStats(nlattr* attr, int attr_size, in ParseAggregateTaskStats()
94 nlattr* attr = genlmsg_attrdata(gnlh, 0); in ParseTaskStats()
102 nlattr* nested_attr = static_cast<nlattr*>(nla_data(attr)); in ParseTaskStats()
/system/core/libsysutils/src/
DNetlinkEvent.cpp296 static size_t nlAttrLen(const nlattr* nla) { in nlAttrLen()
300 static const uint8_t* nlAttrData(const nlattr* nla) { in nlAttrData()
304 static uint32_t nlAttrU32(const nlattr* nla) { in nlAttrU32()
316 struct nlattr* uid_attr = findNlAttr(nh, sizeof(struct genlmsghdr), NFULA_UID); in parseNfPacketMessage()
321 struct nlattr* payload = findNlAttr(nh, sizeof(struct genlmsghdr), NFULA_PAYLOAD); in parseNfPacketMessage()
699 nlattr* NetlinkEvent::findNlAttr(const nlmsghdr* nh, size_t hdrlen, uint16_t attr) { in findNlAttr()
710 nlattr* nla = (nlattr*)hdr; in findNlAttr()
/system/core/libsysutils/include/sysutils/
DNetlinkEvent.h67 struct nlattr* findNlAttr(const nlmsghdr* nl, size_t hdrlen, uint16_t attr);
/system/extras/taskstats/
Dtaskstats.c51 void parse_aggregate_task_stats(struct nlattr* attr, int attr_size, in parse_aggregate_task_stats()
73 struct nlattr* attr = genlmsg_attrdata(gnlh, 0); in parse_task_stats()