]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add a nd_print_trunc() call
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 23 May 2018 07:32:27 +0000 (09:32 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 23 May 2018 07:55:36 +0000 (09:55 +0200)
Moreover:
Rename a function with _print like in most similar cases

print-egp.c

index a868150bac8a448618626c6d1962b2a7eacc39c4..1f171bc7f9c34ca8516c74e13bd0f3278d691a50 100644 (file)
@@ -132,7 +132,7 @@ static const char *egp_reasons[] = {
 };
 
 static void
-egpnrprint(netdissect_options *ndo,
+egpnr_print(netdissect_options *ndo,
            const struct egp_packet *egp, u_int length)
 {
        const uint8_t *cp;
@@ -242,7 +242,7 @@ egpnrprint(netdissect_options *ndo,
        }
        return;
 trunc:
-       ND_PRINT("[|]");
+       nd_print_trunc(ndo);
 }
 
 void
@@ -375,7 +375,7 @@ egp_print(netdissect_options *ndo,
                       EXTRACT_U_1(egp->egp_intgw),
                       EXTRACT_U_1(egp->egp_extgw));
                if (ndo->ndo_vflag)
-                       egpnrprint(ndo, egp, length);
+                       egpnr_print(ndo, egp, length);
                break;
 
        case EGPT_ERROR: