Lines Matching refs:ptr
73 const uint8_t* ptr = buf; in GetAttributeImpl() local
75 while (ptr + NLA_HDRLEN <= end_ptr) { in GetAttributeImpl()
76 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in GetAttributeImpl()
78 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in GetAttributeImpl()
83 *attr_start = const_cast<uint8_t*>(ptr); in GetAttributeImpl()
84 *attr_end = const_cast<uint8_t*>(ptr + NLA_ALIGN(header->nla_len)); in GetAttributeImpl()
88 ptr += NLA_ALIGN(header->nla_len); in GetAttributeImpl()
228 const uint8_t* ptr = data_.data() + NLA_HDRLEN; in GetListOfNestedAttributes() local
231 while (ptr + NLA_HDRLEN <= end_ptr) { in GetListOfNestedAttributes()
232 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in GetListOfNestedAttributes()
233 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in GetListOfNestedAttributes()
238 NL80211NestedAttr(vector<uint8_t>(ptr, in GetListOfNestedAttributes()
239 ptr + NLA_ALIGN(header->nla_len)))); in GetListOfNestedAttributes()
243 ptr += NLA_ALIGN(header->nla_len); in GetListOfNestedAttributes()
251 const uint8_t* ptr = data_.data() + NLA_HDRLEN; in DebugLog() local
253 while (ptr + NLA_HDRLEN <= end_ptr) { in DebugLog()
254 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in DebugLog()
255 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in DebugLog()
265 ptr += NLA_ALIGN(header->nla_len); in DebugLog()