This avoid some Coccinelle warnings:
CPP-DEFINE: inside function, I treat it as comment
CPP-UNDEF: inside function, I treat it as comment
This also makes the code a bit clearer.
ND_PRINT((ndo, "|[rfc1048]"));
}
ND_PRINT((ndo, "|[rfc1048]"));
}
+#define PRINTCMUADDR(m, s) { ND_TCHECK(cmu->m); \
+ if (cmu->m.s_addr != 0) \
+ ND_PRINT((ndo, " %s:%s", s, ipaddr_string(ndo, &cmu->m.s_addr))); }
+
static void
cmu_print(netdissect_options *ndo,
const u_char *bp)
static void
cmu_print(netdissect_options *ndo,
const u_char *bp)
const struct cmu_vend *cmu;
uint8_t v_flags;
const struct cmu_vend *cmu;
uint8_t v_flags;
-#define PRINTCMUADDR(m, s) { ND_TCHECK(cmu->m); \
- if (cmu->m.s_addr != 0) \
- ND_PRINT((ndo, " %s:%s", s, ipaddr_string(ndo, &cmu->m.s_addr))); }
-
ND_PRINT((ndo, " vend-cmu"));
cmu = (const struct cmu_vend *)bp;
ND_PRINT((ndo, " vend-cmu"));
cmu = (const struct cmu_vend *)bp;
trunc:
ND_PRINT((ndo, "%s", tstr));
trunc:
ND_PRINT((ndo, "%s", tstr));
static char *
client_fqdn_flags(u_int flags)
{
static char *
client_fqdn_flags(u_int flags)
{