Lines Matching defs:hdr
371 getNextSignalOption(net_buffer* nbuf, size_t* off, l2cap_cfg_opt_t* hdr,
379 if (len < 0 || len < sizeof(*hdr))
382 gBufferModule->read(nbuf, *off, hdr, sizeof(*hdr));
383 *off += sizeof(*hdr);
384 len -= sizeof(*hdr);
386 hint = L2CAP_OPT_HINT(hdr->type);
387 hdr->type &= L2CAP_OPT_HINT_MASK;
389 switch (hdr->type) {
391 if (hdr->length != L2CAP_OPT_MTU_SIZE || len < hdr->length)
401 if (hdr->length != L2CAP_OPT_FLUSH_TIMO_SIZE || len < hdr->length)
411 if (hdr->length != L2CAP_OPT_QOS_SIZE || len < hdr->length)
426 *off += hdr->length;
444 l2cap_cfg_opt_t hdr;
486 error = getNextSignalOption(buffer, &off, &hdr, &val);
492 switch (hdr.type) {
577 l2cap_cfg_opt_t hdr;
635 error = getNextSignalOption(buffer, &off, &hdr, &val);
641 switch (hdr.type) {