-parse_field(netdissect_options *ndo, const char **pptr, int *len, int *truncated)
+parse_field(netdissect_options *ndo, const char **pptr, int *len)
- nd_snprintf(z_buf, sizeof(z_buf), "<%s,%s,%s>", class, inst, recipient);
+ snprintf(z_buf, sizeof(z_buf), "<%s,%s,%s>", class, inst, recipient);
- s = parse_field(ndo, &parse, &parselen, &truncated); \
- if (truncated) goto trunc; \
+ s = parse_field(ndo, &parse, &parselen); \
const char *ackdata = NULL;
PARSE_FIELD_STR(ackdata);
if (!lose && strcmp(ackdata, "SENT"))
const char *ackdata = NULL;
PARSE_FIELD_STR(ackdata);
if (!lose && strcmp(ackdata, "SENT"))
if (!strcmp(z.class, "USER_LOCATE")) {
if (!strcmp(z.opcode, "USER_HIDE"))
if (!strcmp(z.class, "USER_LOCATE")) {
if (!strcmp(z.opcode, "USER_HIDE"))
- if (!lose) ND_PRINT(" %s", z_triple(c, i, r));
+ if (!lose) ZEPHYR_PRINT(" ", z_triple(c, i, r));
- ND_PRINT(" hm_ctl %s", str_to_lower(z.inst));
- ND_PRINT(" %s", str_to_lower(z.opcode));
+ ZEPHYR_PRINT(" hm_ctl ", str_to_lower(z.inst));
+ ZEPHYR_PRINT(" ", str_to_lower(z.opcode));
- ND_PRINT(" wg_ctl %s", str_to_lower(z.inst));
- ND_PRINT(" %s", str_to_lower(z.opcode));
+ ZEPHYR_PRINT(" wg_ctl ", str_to_lower(z.inst));
+ ZEPHYR_PRINT(" ", str_to_lower(z.opcode));
!strcmp(z.opcode, "REALM-ANNOUNCED") ||
!strcmp(z.opcode, "NET-VISIBLE") ||
!strcmp(z.opcode, "NET-ANNOUNCED")) {
!strcmp(z.opcode, "REALM-ANNOUNCED") ||
!strcmp(z.opcode, "NET-VISIBLE") ||
!strcmp(z.opcode, "NET-ANNOUNCED")) {
- ND_PRINT(" to %s", z_triple(z.class, z.inst, z.recipient));
+ ZEPHYR_PRINT(" to ", z_triple(z.class, z.inst, z.recipient));