X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3d291155a2a10868140d3e8bd7342b9150f42a0f..a909db55ebc50de487e65f19b3250d0b45763d2d:/print-zephyr.c diff --git a/print-zephyr.c b/print-zephyr.c index 8bf7fb52..01e34ed8 100644 --- a/print-zephyr.c +++ b/print-zephyr.c @@ -23,10 +23,10 @@ /* \summary: Zephyr printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include #include @@ -144,7 +144,25 @@ str_to_lower(const char *string) void zephyr_print(netdissect_options *ndo, const u_char *cp, int length) { - struct z_packet z = {0}; + struct z_packet z = { + NULL, /* version */ + 0, /* numfields */ + 0, /* kind */ + NULL, /* uid */ + 0, /* port */ + 0, /* auth */ + 0, /* authlen */ + NULL, /* authdata */ + NULL, /* class */ + NULL, /* inst */ + NULL, /* opcode */ + NULL, /* sender */ + NULL, /* recipient */ + NULL, /* format */ + 0, /* cksum */ + 0, /* multi */ + NULL /* multi_uid */ + }; const char *parse = (const char *) cp; int parselen = length; const char *s;