#include "config.h"
#endif
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
#include "netdissect.h"
#include "extract.h"
#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;