X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/90528d4c391d02bb61ad3bfc3f38586b40126608..cc2d4cbd8ca150504127f375d8b51b194958d95b:/print-aodv.c diff --git a/print-aodv.c b/print-aodv.c index e47ff184..17942bce 100644 --- a/print-aodv.c +++ b/print-aodv.c @@ -202,7 +202,7 @@ aodv_extension(netdissect_options *ndo, return; trunc: - ND_PRINT(" [|hello]"); + nd_print_trunc(ndo); } static void @@ -233,7 +233,7 @@ aodv_rreq(netdissect_options *ndo, const u_char *dat, u_int length) return; trunc: - ND_PRINT(" [|rreq"); + nd_print_trunc(ndo); } static void @@ -261,7 +261,7 @@ aodv_rrep(netdissect_options *ndo, const u_char *dat, u_int length) return; trunc: - ND_PRINT(" [|rreq"); + nd_print_trunc(ndo); } static void @@ -291,7 +291,7 @@ aodv_rerr(netdissect_options *ndo, const u_char *dat, u_int length) return; trunc: - ND_PRINT("[|rerr]"); + nd_print_trunc(ndo); } static void @@ -322,7 +322,7 @@ aodv_v6_rreq(netdissect_options *ndo, const u_char *dat, u_int length) return; trunc: - ND_PRINT(" [|rreq"); + nd_print_trunc(ndo); } static void @@ -350,7 +350,7 @@ aodv_v6_rrep(netdissect_options *ndo, const u_char *dat, u_int length) return; trunc: - ND_PRINT(" [|rreq"); + nd_print_trunc(ndo); } static void @@ -380,7 +380,7 @@ aodv_v6_rerr(netdissect_options *ndo, const u_char *dat, u_int length) return; trunc: - ND_PRINT("[|rerr]"); + nd_print_trunc(ndo); } static void @@ -411,7 +411,7 @@ aodv_v6_draft_01_rreq(netdissect_options *ndo, const u_char *dat, u_int length) return; trunc: - ND_PRINT(" [|rreq"); + nd_print_trunc(ndo); } static void @@ -439,7 +439,7 @@ aodv_v6_draft_01_rrep(netdissect_options *ndo, const u_char *dat, u_int length) return; trunc: - ND_PRINT(" [|rreq"); + nd_print_trunc(ndo); } static void @@ -469,7 +469,7 @@ aodv_v6_draft_01_rerr(netdissect_options *ndo, const u_char *dat, u_int length) return; trunc: - ND_PRINT("[|rerr]"); + nd_print_trunc(ndo); } void @@ -478,6 +478,7 @@ aodv_print(netdissect_options *ndo, { uint8_t msg_type; + ndo->ndo_protocol = "aodv"; /* * The message type is the first byte; make sure we have it * and then fetch it. @@ -535,5 +536,5 @@ aodv_print(netdissect_options *ndo, return; trunc: - ND_PRINT(" [|aodv]"); + nd_print_trunc(ndo); }