]> The Tcpdump Group git mirrors - tcpdump/commit
RT6: Update some printings for coherency
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 10 Sep 2020 13:49:09 +0000 (15:49 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 10 Sep 2020 15:19:52 +0000 (17:19 +0200)
commit8a776c2410fb4ff349d982fcf187924351c4b9b0
tree233846b27a1c677dabf38f9321242112e81e2ec5
parent49894b4155621ddab434d74d40378e3602fbb212
RT6: Update some printings for coherency

s/srcrt/RT6/
In upper case (like 'IP6'), via a nd_print_protocol_caps() call.

Before: srcrt (len=48, type=0, segleft=48 [|rt6]
After:  RT6 (len=48, type=0, segleft=48 [|rt6]

rt6 choosen because it's in file name (print-rt6.c), function name
(rt6_print) and set in ndo->ndo_protocol ("rt6").

Moreover:
Print the protocol name even if the packet is truncated at the beginning.
Use nd_print_trunc().
print-rt6.c
tests/hoobr_rt6_print.out
tests/ipv6-routing-header.out
tests/ipv6-rthdr-oobr.out
tests/ipv6-srh-ext-header.out
tests/ipv6-srh-insert-cksum.out
tests/ipv6-srh-ipproto-ether-ev.out
tests/ipv6-srh-ipproto-ether-v.out