]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-aodv.c
ICMPv6: Add the IPv6-Only flag
[tcpdump] / print-aodv.c
index e47ff184fbf1f35ff6aa9d0698585a50d9b129f0..17942bcecf135944b5ed1789da0ebfb9fee0d9da 100644 (file)
@@ -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);
 }