if ((const u_char *)(ap + 1) > ndo->ndo_snapend) {
/* Just bail if we don't have the whole chunk. */
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return;
}
if (length < sizeof(*ap)) {
/* ep points to end of available data */
ep = ndo->ndo_snapend;
if ((const u_char *)tp > ep) {
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return;
}
switch (i = np->control & 0xf0) {
case nbpLkUp:
ND_PRINT((ndo, i == nbpLkUp? " nbp-lkup %d:":" nbp-brRq %d:", np->id));
if ((const u_char *)(tp + 1) > ep) {
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return;
}
(void)nbp_name_print(ndo, tp, ep);
register u_int length;
if (cp >= (const char *)ep) {
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return (0);
}
length = *cp++;
}
while ((int)--length >= 0) {
if (cp >= (const char *)ep) {
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return (0);
}
ND_PRINT((ndo, "%c", *cp++));
register const struct atNBPtuple *tpn;
if ((const u_char *)(tp + 1) > ep) {
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return 0;
}
tpn = nbp_name_print(ndo, tp, ep);
return (cp);
trunc:
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return (NULL);
#undef PRINT
kp = (struct krb *)cp;
if ((&kp->type) >= ndo->ndo_snapend) {
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return;
}
return;
trunc:
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
}
void
kp = (struct krb *)dat;
if (dat >= ndo->ndo_snapend) {
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return;
}
}
dh = DOP_NEXT(dh);
if ((u_char *)dh > ndo->ndo_snapend) {
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
break;
}
}
ph = (const struct pkt_hdr *)hdr;
if (len < sizeof(*ph) || (u_char *)(ph + 1) > ndo->ndo_snapend) {
- ND_PRINT((ndo, tstr));
+ ND_PRINT((ndo, "%s", tstr));
return;
}
len -= sizeof(*ph);