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.h276 nlattr hdr;
284 nlattr hdr;
292 nlattr hdr;
299 nlattr hdr;
306 nlattr hdr;
313 nlattr hdr;
320 nlattr hdr;
327 nlattr hdr;
333 nlattr hdr;
DClatUtils.cpp160 nlattr attr; in doTcQdiscClsact()
258 nlattr attr; in tcFilterAddDevBpf()
262 nlattr attr; in tcFilterAddDevBpf()
264 nlattr attr; in tcFilterAddDevBpf()
268 nlattr attr; in tcFilterAddDevBpf()
272 nlattr attr; in tcFilterAddDevBpf()
DXfrmController.cpp186 size_t fillNlAttr(__u16 nlaType, size_t valueSize, nlattr* nlAttr) { in fillNlAttr()
189 nlAttr->nla_len = (__u16)(dataLen + sizeof(nlattr)); in fillNlAttr()
194 size_t fillNlAttrIpAddress(__u16 nlaType, int family, const std::string& value, nlattr* nlAttr, in fillNlAttrIpAddress()
346 void fillXfrmNlaHdr(nlattr* hdr, uint16_t type, uint16_t len) { in fillXfrmNlaHdr()
1388 nlattr ifNameNla; in ipSecAddXfrmInterface()
1391 nlattr linkInfoNla; in ipSecAddXfrmInterface()
1393 nlattr infoKindNla; in ipSecAddXfrmInterface()
1396 nlattr infoDataNla; in ipSecAddXfrmInterface()
1398 nlattr xfrmLinkNla; in ipSecAddXfrmInterface()
1401 nlattr xfrmIfIdNla; in ipSecAddXfrmInterface()
[all …]
DSockDiag.cpp174 nlattr nla; in sendDumpRequest()
497 struct nlattr nla = { in destroySocketsLackingPermission()
499 .nla_len = sizeof(struct nlattr) + bytecodelen, in destroySocketsLackingPermission()
DWakeupController.cpp135 const auto attrHandler = [&args, &parseAgain](const nlattr attr, const Slice payload) { in init()
DXfrmControllerTest.cpp399 const nlattr& attr, const Slice& attr_payload) { in testIpSecAddSecurityAssociation()
572 auto attrHandler = [mark, xfrm_if_id](const nlattr& attr, const Slice& attr_payload) { in parseTunnelNetlinkAttrs()
684 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.cpp271 static size_t nlAttrLen(const nlattr* nla) { in nlAttrLen()
275 static const uint8_t* nlAttrData(const nlattr* nla) { in nlAttrData()
279 static uint32_t nlAttrU32(const nlattr* nla) { in nlAttrU32()
291 struct nlattr* uid_attr = findNlAttr(nh, sizeof(struct genlmsghdr), NFULA_UID); in parseNfPacketMessage()
296 struct nlattr* payload = findNlAttr(nh, sizeof(struct genlmsghdr), NFULA_PAYLOAD); in parseNfPacketMessage()
670 nlattr* NetlinkEvent::findNlAttr(const nlmsghdr* nh, size_t hdrlen, uint16_t attr) { in findNlAttr()
681 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()