#include "addrtoname.h"
static const char tstr[] = " [|ahcp]";
-static const char cstr[] = "(invalid)";
+static const char istr[] = " (invalid)";
#define AHCP_MAGIC_NUMBER 43
#define AHCP_VERSION_1 1
return 0;
invalid:
- ND_PRINT((ndo, ": %s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return 0;
trunc:
return 0;
invalid:
- ND_PRINT((ndo, ": %s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return 0;
trunc:
return 0;
invalid:
- ND_PRINT((ndo, ": %s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return 0;
trunc:
return 0;
invalid:
- ND_PRINT((ndo, ": %s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return 0;
trunc:
return 0;
invalid:
- ND_PRINT((ndo, ": %s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return 0;
trunc:
return 0;
invalid:
- ND_PRINT((ndo, ": %s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return 0;
trunc:
return;
invalid:
- ND_PRINT((ndo, " %s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, " %s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, " %s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
#include "ether.h"
static const char tstr[] = " [|aoe]";
-static const char cstr[] = " (invalid)";
+static const char istr[] = " (invalid)";
#define AOE_V1 1
#define ATA_SECTOR_SIZE 512
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
#include "extract.h"
static const char tstr[] = "[|babel]";
+static const char istr[] = " (invalid)";
static void babel_print_v2(netdissect_options *, const u_char *cp, u_int length);
return;
invalid:
- ND_PRINT((ndo, " (invalid)"));
+ ND_PRINT((ndo, "%s", istr));
}
#define ICHECK(i, l) \
return;
invalid:
- ND_PRINT((ndo, " (invalid)"));
+ ND_PRINT((ndo, "%s", istr));
return;
}
#include "addrtoname.h"
static const char tstr[] = " [|loopback]";
-static const char cstr[] = " (invalid)";
+static const char istr[] = " (invalid)";
#define LOOPBACK_REPLY 1
#define LOOPBACK_FWDDATA 2
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return;
trunc:
#include "extract.h"
static const char tstr[] = " [|m3ua]";
-static const char cstr[] = " (invalid)";
+static const char istr[] = " (invalid)";
/* RFC 4666 */
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*buf, size);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*buf, size);
return;
trunc:
return;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*buf, size);
return;
trunc:
#include "openflow.h"
static const char tstr[] = " [|openflow]";
-static const char cstr[] = " (invalid)";
+static const char istr[] = " (invalid)";
#define OFPT_HELLO 0x00
#define OFPT_ERROR 0x01
return cp;
invalid: /* skip the undersized data */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len);
return cp0 + len;
trunc:
return cp;
invalid:
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len);
return cp0 + len;
trunc:
return decoder(ndo, cp, ep, len - 4);
invalid: /* skip the undersized data */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, len);
return cp + len;
trunc:
return decoder(ndo, cp, ep, len - 4);
invalid: /* skip the undersized data */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, len);
return cp + len;
trunc:
return of10_data_print(ndo, cp, ep, len - 4);
invalid: /* skip the undersized data */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, len);
return cp + len;
trunc:
return cp;
invalid: /* skip the undersized trailing data */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
return cp;
invalid: /* skip the rest of queue properties */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
return cp;
invalid: /* skip the rest of queues */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
return cp;
invalid: /* skip the rest of actions */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
return cp;
invalid: /* skip the message body */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
return cp + DESC_STR_LEN;
invalid: /* skip the message body */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, len);
return cp + len;
trunc:
return cp;
invalid: /* skip the rest of flow statistics entries */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
return cp + 4;
invalid: /* skip the message body */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, len);
return cp + len;
trunc:
return cp;
invalid: /* skip the undersized trailing data */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
return cp;
invalid: /* skip the undersized trailing data */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
return cp;
invalid: /* skip the undersized trailing data */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
return of10_packet_data_print(ndo, cp, ep, len - OF_PACKET_OUT_LEN - actions_len);
invalid: /* skip the rest of the message body */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp0, len0);
return cp0 + len0;
trunc:
goto next_message;
invalid: /* skip the message body */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
next_message:
ND_TCHECK2(*cp0, len0 - OF_HEADER_LEN);
return cp0 + len0 - OF_HEADER_LEN;
#include "oui.h"
static const char tstr[] = " [|openflow]";
-static const char cstr[] = " (invalid)";
+static const char istr[] = " (invalid)";
#define OF_VER_1_0 0x01
}
invalid: /* fail current packet */
- ND_PRINT((ndo, "%s", cstr));
+ ND_PRINT((ndo, "%s", istr));
ND_TCHECK2(*cp, ep - cp);
return ep;
trunc: