summaryrefslogtreecommitdiff
path: root/print-ssh.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-06-23 09:54:14 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-06-23 14:22:19 +0200
commit7217abf41a060c9e9b5cdde30a759e79329a1b00 (patch)
tree67524e1cfa59f11fc44aec2d508e4ed07ca4ba24 /print-ssh.c
parent33152db7441fcd8fcc39bf129b5d3ebef97726ec (diff)
downloadtcpdump-7217abf41a060c9e9b5cdde30a759e79329a1b00.tar.gz
Use nd_print_protocol_caps() to print the protocol name in caps
Diffstat (limited to 'print-ssh.c')
-rw-r--r--print-ssh.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/print-ssh.c b/print-ssh.c
index 0126bd0e..bb983355 100644
--- a/print-ssh.c
+++ b/print-ssh.c
@@ -29,7 +29,6 @@ static int
ssh_print_version(netdissect_options *ndo, const u_char *pptr, u_int len)
{
u_int idx = 0;
- const char *pnp;
if ( GET_U_1(pptr+idx) != 'S' )
return 0;
@@ -86,9 +85,7 @@ trunc:
return -1;
print:
ND_PRINT(": ");
- /* Capitalize the protocol name */
- for (pnp = ndo->ndo_protocol; *pnp != '\0'; pnp++)
- ND_PRINT("%c", ND_TOUPPER((u_char)*pnp));
+ nd_print_protocol_caps(ndo);
ND_PRINT(": %.*s", (int)idx, pptr);
return idx;
}