diff --git a/print-stp.c b/print-stp.c index a59b22fb..0327ba49 100644 --- a/print-stp.c +++ b/print-stp.c @@ -509,5 +509,5 @@ stp_print(netdissect_options *ndo, const u_char *p, u_int length) return; trunc: - ND_PRINT("[|stp %u]", length); + nd_print_trunc(ndo); } diff --git a/tests/stp-heapoverflow-1.out b/tests/stp-heapoverflow-1.out index 4229c39e..f7cd158a 100644 --- a/tests/stp-heapoverflow-1.out +++ b/tests/stp-heapoverflow-1.out @@ -24,4 +24,4 @@ 0x0000: 3030 3030 30 00000 30:30:30:30:30:30 > 30:30:30:30:30:30, ethertype Unknown (0x3030), length 262144: 0x0000: 3030 3030 30 00000 -[|stp 262127] + [|stp] diff --git a/tests/stp-heapoverflow-2.out b/tests/stp-heapoverflow-2.out index 2e2d5daa..a9b3be41 100644 --- a/tests/stp-heapoverflow-2.out +++ b/tests/stp-heapoverflow-2.out @@ -24,4 +24,4 @@ 0x0000: 3030 3030 3030 000000 30:30:30:30:30:30 > 30:30:30:30:30:30, ethertype Unknown (0x3030), length 262144: 0x0000: 3030 3030 3030 000000 -STP 802.1d[|stp 262127] +STP 802.1d [|stp] diff --git a/tests/stp-heapoverflow-3.out b/tests/stp-heapoverflow-3.out index 08928e61..4f2c28c6 100644 --- a/tests/stp-heapoverflow-3.out +++ b/tests/stp-heapoverflow-3.out @@ -24,4 +24,4 @@ 0x0000: 3030 30 000 30:30:30:30:30:30 > 30:30:30:30:30:30, ethertype Unknown (0x3030), length 262144: 0x0000: 3030 30 000 -[|stp 262127] + [|stp] diff --git a/tests/stp-heapoverflow-4.out b/tests/stp-heapoverflow-4.out index e9888425..ffc3ce1f 100644 --- a/tests/stp-heapoverflow-4.out +++ b/tests/stp-heapoverflow-4.out @@ -24,4 +24,4 @@ 0x0000: 3030 3030 3030 3030 00000000 30:30:30:30:30:30 > 30:30:30:30:30:30, ethertype Unknown (0x3030), length 262144: 0x0000: 3030 3030 3030 3030 00000000 -STP 802.1d, Config, Flags [Learn, Forward][|stp 262127] +STP 802.1d, Config, Flags [Learn, Forward] [|stp] diff --git a/tests/stp-v4-length-sigsegv.out b/tests/stp-v4-length-sigsegv.out index fafddb09..089f5f3e 100644 --- a/tests/stp-v4-length-sigsegv.out +++ b/tests/stp-v4-length-sigsegv.out @@ -1 +1 @@ -STP 802.1aq, Rapid STP, CIST Flags [Learn, Forward], length 262127[|stp 262127] +STP 802.1aq, Rapid STP, CIST Flags [Learn, Forward], length 262127 [|stp]