Lines Matching refs:section
86 LIST_FOREACH_SAFE(section, s, n, m->sections)
269 tlv_section *section, *tail;
284 r = tlv_section_new(§ion);
290 section->type = ntohs(t) >> 9;
291 section->length = ntohs(t) & 0x01ff;
293 if (section->type == LLDP_TYPE_END || section->type >=_LLDP_TYPE_MAX) {
294 tlv_section_free(section);
300 if (section->type == LLDP_TYPE_PRIVATE &&
301 section->length >= LLDP_OUI_LEN + 1) {
302 section->oui = p;
304 section->subtype = *p++;
306 section->length -= LLDP_OUI_LEN + 1;
310 section->data = p;
312 LIST_FIND_TAIL(section, m->sections, tail);
313 LIST_INSERT_AFTER(section, m->sections, tail, section);
315 p += section->length;
316 l += (section->length + 2);
328 LIST_FOREACH(section, s, m->sections)
351 LIST_FOREACH(section, s, m->sections) {