return (length);
}
if (!ND_TTEST_LEN(bp, sizeof(*lp))) {
- ND_PRINT(" [|llap]");
+ nd_print_trunc(ndo);
return (0); /* cut short by the snapshot length */
}
lp = (const struct LAP *)bp;
ap = (const struct aarp *)bp;
if (!ND_TTEST_SIZE(ap)) {
/* Just bail if we don't have the whole chunk. */
- ND_PRINT(" [|aarp]");
+ nd_print_trunc(ndo);
return;
}
if (length < sizeof(*ap)) {
}
/* print a counted string */
-static const char *
+static const u_char *
print_cstring(netdissect_options *ndo,
- const char *cp, const u_char *ep)
+ const u_char *cp, const u_char *ep)
{
u_int length;
- if (cp >= (const char *)ep) {
+ if (cp >= ep) {
nd_print_trunc(ndo);
return (0);
}
return (0);
}
while (length != 0) {
- if (cp >= (const char *)ep) {
+ if (cp >= ep) {
nd_print_trunc(ndo);
return (0);
}
nbp_name_print(netdissect_options *ndo,
const struct atNBPtuple *tp, const u_char *ep)
{
- const char *cp = (const char *)tp + nbpTupleSize;
+ const u_char *cp = (const u_char *)tp + nbpTupleSize;
ND_PRINT(" ");