Lines Matching refs:header
45 nlattr* header = reinterpret_cast<nlattr*>(data_.data()); in InitHeaderAndResize() local
46 header->nla_type = attribute_id; in InitHeaderAndResize()
47 header->nla_len = NLA_HDRLEN + payload_length; in InitHeaderAndResize()
51 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetAttributeId() local
52 return header->nla_type; in GetAttributeId()
59 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in IsValid() local
60 return NLA_ALIGN(header->nla_len) == data_.size(); in IsValid()
76 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in GetAttributeImpl() local
77 if (header->nla_type == attr_id) { in GetAttributeImpl()
78 if (ptr + NLA_ALIGN(header->nla_len) > end_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()
138 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetValue() local
141 data_.data() + header->nla_len); in GetValue()
160 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetValue() local
161 size_t str_length = header->nla_len - NLA_HDRLEN; in GetValue()
184 nlattr* header = reinterpret_cast<nlattr*>(data_.data()); in AddAttribute() local
187 header->nla_len += append_data.size(); in AddAttribute()
232 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in GetListOfNestedAttributes() local
233 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in GetListOfNestedAttributes()
239 ptr + NLA_ALIGN(header->nla_len)))); in GetListOfNestedAttributes()
243 ptr += NLA_ALIGN(header->nla_len); in GetListOfNestedAttributes()
254 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); in DebugLog() local
255 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in DebugLog()
259 LOG(INFO) << "Have attribute with nla_type=" << header->nla_type in DebugLog()
260 << " and nla_len=" << header->nla_len; in DebugLog()
261 if (header->nla_len == 0) { in DebugLog()
265 ptr += NLA_ALIGN(header->nla_len); in DebugLog()