ndo->ndo_protocol = "llc";
if (caplen < 3) {
- ND_PRINT("[|llc]");
+ nd_print_trunc(ndo);
ND_DEFAULTPRINT((const u_char *)p, caplen);
return (caplen);
}
if (length < 3) {
- ND_PRINT("[|llc]");
+ nd_print_trunc(ndo);
ND_DEFAULTPRINT((const u_char *)p, caplen);
return (length);
}
* 2 bytes...
*/
if (caplen < 4) {
- ND_PRINT("[|llc]");
+ nd_print_trunc(ndo);
ND_DEFAULTPRINT((const u_char *)p, caplen);
return (caplen);
}
if (length < 4) {
- ND_PRINT("[|llc]");
+ nd_print_trunc(ndo);
ND_DEFAULTPRINT((const u_char *)p, caplen);
return (length);
}
return (hdrlen);
}
if (caplen < 1) {
- ND_PRINT("[|llc]");
+ nd_print_trunc(ndo);
if (caplen > 0)
ND_DEFAULTPRINT((const u_char *)p, caplen);
return (hdrlen);
}
if (EXTRACT_U_1(p) == LLC_XID_FI) {
if (caplen < 3 || length < 3) {
- ND_PRINT("[|llc]");
+ nd_print_trunc(ndo);
if (caplen > 0)
ND_DEFAULTPRINT((const u_char *)p, caplen);
} else
return (0);
trunc:
- ND_PRINT("[|snap]");
+ nd_print_trunc(ndo);
return (1);
}
-
-
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */