From: Francois-Xavier Le Bail Date: Tue, 9 Jun 2020 11:55:07 +0000 (+0200) Subject: TCP: Update style X-Git-Tag: tcpdump-4.99-bp~351 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/eaa6900996c0055969eb6f12ecb642d4579c07ed TCP: Update style [skip ci] --- diff --git a/print-tcp.c b/print-tcp.c index d420382e..a08053b6 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -763,11 +763,9 @@ tcp_print(netdissect_options *ndo, msdp_print(ndo, bp, length); } else if (IS_SRC_OR_DST_PORT(RPKI_RTR_PORT)) { rpki_rtr_print(ndo, bp, length); - } - else if (length > 0 && (IS_SRC_OR_DST_PORT(LDP_PORT))) { + } else if (length > 0 && (IS_SRC_OR_DST_PORT(LDP_PORT))) { ldp_print(ndo, bp, length); - } - else if ((IS_SRC_OR_DST_PORT(NFS_PORT)) && + } else if ((IS_SRC_OR_DST_PORT(NFS_PORT)) && length >= 4 && ND_TTEST_4(bp)) { /* * If data present, header length valid, and NFS port used, @@ -801,12 +799,12 @@ tcp_print(netdissect_options *ndo, } return; - bad: +bad: ND_PRINT("[bad opt]"); if (ch != '\0') ND_PRINT("]"); return; - trunc: +trunc: nd_print_trunc(ndo); if (ch != '\0') ND_PRINT(">");