Lines Matching defs:header
45 nlattr* header = reinterpret_cast<nlattr*>(data_.data());
46 header->nla_type = attribute_id;
47 header->nla_len = NLA_HDRLEN + payload_length;
51 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data());
52 return header->nla_type;
59 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data());
60 return NLA_ALIGN(header->nla_len) == data_.size();
72 // Skip the top level attribute header.
76 const nlattr* header = reinterpret_cast<const nlattr*>(ptr);
77 if (header->nla_type == attr_id) {
78 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) {
84 *attr_end = const_cast<uint8_t*>(ptr + NLA_ALIGN(header->nla_len));
88 ptr += NLA_ALIGN(header->nla_len);
138 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data());
141 data_.data() + header->nla_len);
160 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data());
161 size_t str_length = header->nla_len - NLA_HDRLEN;
184 nlattr* header = reinterpret_cast<nlattr*>(data_.data());
187 header->nla_len += append_data.size();
191 // We only need to append a header for flag attribute.
232 const nlattr* header = reinterpret_cast<const nlattr*>(ptr);
233 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) {
239 ptr + NLA_ALIGN(header->nla_len))));
243 ptr += NLA_ALIGN(header->nla_len);
254 const nlattr* header = reinterpret_cast<const nlattr*>(ptr);
255 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) {
259 LOG(INFO) << "Have attribute with nla_type=" << header->nla_type
260 << " and nla_len=" << header->nla_len;
261 if (header->nla_len == 0) {
265 ptr += NLA_ALIGN(header->nla_len);