/* \summary: Telnet option printer */
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
#include <stdio.h>
#include "netdissect.h"
#include "extract.h"
-static const char tstr[] = " [|telnet]";
#define TELCMDS
#define TELOPTS
{
static char buf[20];
- snprintf(buf, sizeof(buf), "%#x", x);
+ nd_snprintf(buf, sizeof(buf), "%#x", x);
return buf;
}
return sp - osp;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
pktend:
return -1;
#undef FETCH
const u_char *osp;
int l;
+ ndo->ndo_protocol = "telnet";
osp = sp;
ND_TCHECK_1(sp);
}
return;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
}