Lines Matching full:len
183 wb_id(const struct pkt_id *id, u_int len)
192 if (len < sizeof(*id) || (u_char *)(id + 1) > snapend)
194 len -= sizeof(*id);
205 len -= sizeof(*io) * nid;
208 if ((u_char *)cp + len <= snapend) {
210 (void)fn_print((u_char *)cp, (u_char *)cp + len);
228 wb_rreq(const struct pkt_rreq *rreq, u_int len)
231 if (len < sizeof(*rreq) || (u_char *)(rreq + 1) > snapend)
244 wb_preq(const struct pkt_preq *preq, u_int len)
247 if (len < sizeof(*preq) || (u_char *)(preq + 1) > snapend)
258 wb_prep(const struct pkt_prep *prep, u_int len)
265 if (len < sizeof(*prep)) {
343 wb_rrep(const struct pkt_rrep *rrep, u_int len)
348 if (len < sizeof(*rrep) || (u_char *)(rrep + 1) > snapend)
350 len -= sizeof(*rrep);
367 wb_drawop(const struct pkt_dop *dop, u_int len)
370 if (len < sizeof(*dop) || (u_char *)(dop + 1) > snapend)
372 len -= sizeof(*dop);
391 wb_print(register const void *hdr, register u_int len)
396 if (len < sizeof(*ph) || (u_char *)(ph + 1) > snapend) {
400 len -= sizeof(*ph);
411 if (wb_id((struct pkt_id *)(ph + 1), len) >= 0)
416 if (wb_rreq((struct pkt_rreq *)(ph + 1), len) >= 0)
421 if (wb_rrep((struct pkt_rrep *)(ph + 1), len) >= 0)
426 if (wb_drawop((struct pkt_dop *)(ph + 1), len) >= 0)
431 if (wb_preq((struct pkt_preq *)(ph + 1), len) >= 0)
436 if (wb_prep((struct pkt_prep *)(ph + 1), len) >= 0)