For -q, just print "[telnet]". Without -v, at least print the
negotiation.
}
if (sport == TELNET_PORT || dport == TELNET_PORT) {
- if (!ndo->ndo_qflag && ndo->ndo_vflag)
- telnet_print(ndo, bp, length);
+ telnet_print(ndo, bp, length);
} else if (sport == SMTP_PORT || dport == SMTP_PORT) {
ND_PRINT((ndo, ": "));
smtp_print(ndo, bp, length);
osp = sp;
+ if (ndo->ndo_qflag) {
+ ND_PRINT((ndo, "[telnet]"));
+ return;
+ }
+
while (length > 0 && *sp == IAC) {
l = telnet_parse(ndo, sp, length, 0);
if (l < 0)