diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-11-04 16:21:58 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-11-04 16:28:36 +0100 |
commit | 10ac942adc5988e9dd17f4189cd08fc2dd1e6650 (patch) | |
tree | 705d66a86a296d33fadb5ea834996ed45995971b /print-ospf6.c | |
parent | 1bcd37991fa57d9e966a6f96e7cbff59b16c28bd (diff) | |
download | tcpdump-10ac942adc5988e9dd17f4189cd08fc2dd1e6650.tar.gz |
OSPFv3: Use %zu to print sizeof values
Moreover:
Fix indentation.
Diffstat (limited to 'print-ospf6.c')
-rw-r--r-- | print-ospf6.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/print-ospf6.c b/print-ospf6.c index 29014d74..1b862b30 100644 --- a/print-ospf6.c +++ b/print-ospf6.c @@ -391,11 +391,11 @@ ospf6_print_lshdr(netdissect_options *ndo, if ((const u_char *)(lshp + 1) > dataend) goto trunc; - ND_PRINT("\n\t Advertising Router %s, seq 0x%08x, age %us, length %u", - GET_IPADDR_STRING(lshp->ls_router), - GET_BE_U_4(lshp->ls_seq), - GET_BE_U_2(lshp->ls_age), - GET_BE_U_2(lshp->ls_length)-(u_int)sizeof(struct lsa6_hdr)); + ND_PRINT("\n\t Advertising Router %s, seq 0x%08x, age %us, length %zu", + GET_IPADDR_STRING(lshp->ls_router), + GET_BE_U_4(lshp->ls_seq), + GET_BE_U_2(lshp->ls_age), + GET_BE_U_2(lshp->ls_length)-sizeof(struct lsa6_hdr)); ospf6_print_ls_type(ndo, GET_BE_U_2(lshp->ls_type), &lshp->ls_stateid); |