}
if (ndo->ndo_eflag) {
- ND_PRINT("IPOIB");
+ nd_print_protocol_caps(ndo);
if (print_encap_header != NULL)
(*print_encap_header)(encap_header_arg);
ipoib_hdr_print(ndo, p, length);
optr = pptr;
if (!ndo->ndo_eflag)
- ND_PRINT("CLNP");
+ nd_print_protocol_caps(ndo);
/*
* Sanity checking of the header.
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;
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;
}
u_char token[MAX_TOKEN+1];
const char *cmd;
int print_this = 0;
- const char *pnp;
if (cmds != NULL) {
/*
print_this = 1;
}
- /* 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);
if (print_this) {
/*