Lines Matching defs:offset
36 #define GET_CONTAINER(m, i) ((i) < (m)->n_containers ? (struct rtattr*)((uint8_t*)(m)->hdr + (m)->containers[i].offset) : NULL)
175 int offset;
183 /* get offset of the new attribute */
184 offset = m->hdr->nlmsg_len;
190 message_length = offset + RTA_ALIGN(rta_length);
199 rta = (struct rtattr *) ((uint8_t *) m->hdr + offset);
203 GET_CONTAINER(m, i)->rta_len += message_length - offset;
226 return offset;
470 m->containers[m->n_containers ++].offset = r;
501 m->containers[m->n_containers ++].offset = r;
531 if(!attribute->offset)
534 rta = (struct rtattr*)((uint8_t *) m->hdr + attribute->offset);
751 if (attributes[type].offset)
754 attributes[type].offset = (uint8_t *) rta - (uint8_t *) m->hdr;