/* \summary: Internet Control Message Protocol (ICMP) printer */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
const char *str;
const uint8_t *obj_tptr;
u_int hlen;
- char buf[MAXHOSTNAMELEN + 100];
+ char buf[512];
struct cksum_vec vec[1];
ndo->ndo_protocol = "icmp";
break;
}
idp = (const struct id_rdiscovery *)&dp->icmp_data;
- while (num > 0) {
+ while (num != 0) {
(void)snprintf(cp, sizeof(buf) - (cp - buf), " {%s %u}",
GET_IPADDR_STRING(idp->ird_addr),
GET_BE_U_4(idp->ird_pref));