Lines Matching defs:seqlen
138 ssize_t seqlen;
149 seqlen = sdp_datalen(&req, &len);
150 if (seqlen < 3 || len < seqlen)
152 len -= seqlen;
154 while (seqlen)
155 if (sdp_svc_match(sdp, &req, &seqlen))
157 } else if (sdp_svc_match(sdp, &req, &seqlen))
246 ssize_t seqlen;
273 seqlen = sdp_datalen(&req, &len);
274 if (seqlen < 3 || len < seqlen)
276 len -= seqlen;
278 while (seqlen)
279 if (sdp_attr_match(record, &req, &seqlen))
281 } else if (sdp_attr_match(record, &req, &seqlen))
373 ssize_t seqlen;
388 seqlen = sdp_datalen(&req, &len);
389 if (seqlen < 3 || len < seqlen)
391 len -= seqlen;
393 while (seqlen)
394 if (sdp_svc_match(sdp, &req, &seqlen))
396 } else if (sdp_svc_match(sdp, &req, &seqlen))
408 seqlen = sdp_datalen(&req, &len);
409 if (seqlen < 3 || len < seqlen)
411 len -= seqlen;
413 while (seqlen)
414 if (sdp_svc_attr_match(sdp, &req, &seqlen))
416 } else if (sdp_svc_attr_match(sdp, &req, &seqlen))
445 seqlen = len;
456 if (seqlen == len)
458 else if (seqlen >= 3 && seqlen < max) {
459 lst[seqlen - 3] = SDP_DTYPE_SEQ | SDP_DSIZE_NEXT2;
460 lst[seqlen - 2] = (len - seqlen) >> 8;
461 lst[seqlen - 1] = (len - seqlen) & 0xff;