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) {
/*