]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add more nd_print_trunc() calls
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 17 May 2018 13:09:47 +0000 (15:09 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 18 May 2018 05:17:45 +0000 (07:17 +0200)
Update the output of a test accordingly.

print-aodv.c
tests/hoobr_aodv_extension.out

index 52024dc05e510e3a16e254774bf04af35a6e8aad..17942bcecf135944b5ed1789da0ebfb9fee0d9da 100644 (file)
@@ -202,7 +202,7 @@ aodv_extension(netdissect_options *ndo,
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT(" [|hello]");
+       nd_print_trunc(ndo);
 }
 
 static void
 }
 
 static void
@@ -233,7 +233,7 @@ aodv_rreq(netdissect_options *ndo, const u_char *dat, u_int length)
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT(" [|rreq");
+       nd_print_trunc(ndo);
 }
 
 static void
 }
 
 static void
@@ -261,7 +261,7 @@ aodv_rrep(netdissect_options *ndo, const u_char *dat, u_int length)
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT(" [|rreq");
+       nd_print_trunc(ndo);
 }
 
 static void
 }
 
 static void
@@ -291,7 +291,7 @@ aodv_rerr(netdissect_options *ndo, const u_char *dat, u_int length)
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT("[|rerr]");
+       nd_print_trunc(ndo);
 }
 
 static void
 }
 
 static void
@@ -322,7 +322,7 @@ aodv_v6_rreq(netdissect_options *ndo, const u_char *dat, u_int length)
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT(" [|rreq");
+       nd_print_trunc(ndo);
 }
 
 static void
 }
 
 static void
@@ -350,7 +350,7 @@ aodv_v6_rrep(netdissect_options *ndo, const u_char *dat, u_int length)
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT(" [|rreq");
+       nd_print_trunc(ndo);
 }
 
 static void
 }
 
 static void
@@ -380,7 +380,7 @@ aodv_v6_rerr(netdissect_options *ndo, const u_char *dat, u_int length)
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT("[|rerr]");
+       nd_print_trunc(ndo);
 }
 
 static void
 }
 
 static void
@@ -411,7 +411,7 @@ aodv_v6_draft_01_rreq(netdissect_options *ndo, const u_char *dat, u_int length)
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT(" [|rreq");
+       nd_print_trunc(ndo);
 }
 
 static void
 }
 
 static void
@@ -439,7 +439,7 @@ aodv_v6_draft_01_rrep(netdissect_options *ndo, const u_char *dat, u_int length)
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT(" [|rreq");
+       nd_print_trunc(ndo);
 }
 
 static void
 }
 
 static void
@@ -469,7 +469,7 @@ aodv_v6_draft_01_rerr(netdissect_options *ndo, const u_char *dat, u_int length)
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT("[|rerr]");
+       nd_print_trunc(ndo);
 }
 
 void
 }
 
 void
@@ -536,5 +536,5 @@ aodv_print(netdissect_options *ndo,
        return;
 
 trunc:
        return;
 
 trunc:
-       ND_PRINT(" [|aodv]");
+       nd_print_trunc(ndo);
 }
 }
index 79c81f561cb1861da6611560274edd1f7f800f6b..6a464e20d5d1fc608103ed77addf6528d731415c 100644 (file)
@@ -1,2 +1,2 @@
 IP 48.48.48.48.654 > 48.48.48.48.12336:  aodv rrep 12308  prefix 16 hops 48
 IP 48.48.48.48.654 > 48.48.48.48.12336:  aodv rrep 12308  prefix 16 hops 48
-       dst 48.48.48.48 dseq 808464432 src 48.48.48.48 808464432 ms [|hello]
+       dst 48.48.48.48 dseq 808464432 src 48.48.48.48 808464432 ms [|aodv]