Lines Matching defs:nhdrp
328 volatile struct sb_hdr nhdr, *nhdrp;
347 for (bp = buf; bp < bufstop; bp += nhdrp->sbh_totlen) {
363 nhdrp = hdrp;
380 nhdrp = &nhdr;
382 nhdrp->sbh_origlen = ntohl(hdrp->sbh_origlen);
383 nhdrp->sbh_msglen = ntohl(hdrp->sbh_msglen);
384 nhdrp->sbh_totlen = ntohl(hdrp->sbh_totlen);
385 nhdrp->sbh_drops = ntohl(hdrp->sbh_drops);
386 nhdrp->sbh_timestamp.tv_sec =
388 nhdrp->sbh_timestamp.tv_usec =
394 if ((nhdrp->sbh_totlen == 0) ||
395 (bp + nhdrp->sbh_totlen) < bp ||
396 (bp + nhdrp->sbh_totlen) > bufstop ||
397 (nhdrp->sbh_origlen == 0) ||
398 (bp + nhdrp->sbh_origlen) < bp ||
399 (nhdrp->sbh_msglen == 0) ||
400 (bp + nhdrp->sbh_msglen) < bp ||
401 (bp + nhdrp->sbh_msglen) > bufstop ||
402 (nhdrp->sbh_msglen > nhdrp->sbh_origlen) ||
403 (nhdrp->sbh_totlen < nhdrp->sbh_msglen) ||
404 (nhdrp->sbh_timestamp.tv_sec == 0)) {
413 bp - buf, nhdrp->sbh_totlen);
423 if (pktp + nhdrp->sbh_msglen > bufstop) {
425 nhdrp->sbh_msglen = bufstop - pktp;
430 corrupt(pktp, pktp + nhdrp->sbh_msglen, buf, bufstop);
436 nhdrp->sbh_msglen,
437 nhdrp->sbh_origlen)) {
448 proc(nhdrp, pktp, count, flags);
482 nhdrp = &nhdr;
483 nhdrp->sbh_totlen = 0;