/*
* Decode and print Zephyr packets.
*
- * http://web.mit.edu/zephyr/doc/protocol
+ * https://web.mit.edu/zephyr/doc/protocol
*
* All rights reserved.
/* \summary: Zephyr printer */
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include "netdissect-ctype.h"
+
#include "netdissect.h"
struct z_packet {
zb_string = z_buf;
while (*zb_string) {
- *zb_string = tolower((unsigned char)(*zb_string));
+ *zb_string = ND_ASCII_TOLOWER(*zb_string);
zb_string++;
}
int lose = 0;
int truncated = 0;
+ ndo->ndo_protocol = "zephyr";
/* squelch compiler warnings */
#define PARSE_STRING \
return;
trunc:
- ND_PRINT(" [|zephyr] (%d)", length);
- return;
+ nd_print_trunc(ndo);
}