]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-llc.c
ICMPv6: Add the IPv6-Only flag
[tcpdump] / print-llc.c
index bb18603c4c5c6b1b124ead652d039d7417ac2975..e7c5019676b63d47de4f92e0e624f16d92a2de97 100644 (file)
@@ -157,12 +157,12 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
 
        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);
        }
@@ -189,12 +189,12 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
                 * 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);
                }
@@ -368,14 +368,14 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
                                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
@@ -605,14 +605,6 @@ snap_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
        return (0);
 
 trunc:
-       ND_PRINT("[|snap]");
+       nd_print_trunc(ndo);
        return (1);
 }
-
-
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */