diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-10 21:17:35 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-10 21:17:35 +0200 |
commit | 6daf3a543ec058d04e78018d0639b0a7c7494bfa (patch) | |
tree | 07a3ebc2c3cfe86e4f00fcd502eb96bdec3faaac /print-ip6.c | |
parent | d880293429991dcafe77f4037bd7a491ba9c72bb (diff) | |
download | tcpdump-6daf3a543ec058d04e78018d0639b0a7c7494bfa.tar.gz |
Add a nd_print_trunc() call
Update the output of a test accordingly.
Moreover:
Add a ndo_protocol reassignment after xxx_print() calls.
Diffstat (limited to 'print-ip6.c')
-rw-r--r-- | print-ip6.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/print-ip6.c b/print-ip6.c index 50374e08..4f0618a3 100644 --- a/print-ip6.c +++ b/print-ip6.c @@ -421,9 +421,12 @@ ip6_print(netdissect_options *ndo, const u_char *bp, u_int length) ND_PRINT("ip-proto-%u %u", nh, len); return; } + + /* ndo_protocol reassignment after xxx_print() calls */ + ndo->ndo_protocol = "ip6"; } return; trunc: - ND_PRINT("[|ip6]"); + nd_print_trunc(ndo); } |