/* specification: draft-ietf-sfc-nsh-01 */
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
#include "netdissect.h"
#include "extract.h"
-static const char tstr[] = " [|NSH]";
static const struct tok nsh_flags [] = {
{ 0x20, "O" },
{ 0x10, "C" },
u_int n, vn;
uint8_t ver;
uint8_t flags;
- uint8_t length;
+ u_int length;
uint8_t md_type;
uint8_t next_protocol;
uint32_t service_path_id;
uint8_t tlv_len;
u_int next_len;
+ ndo->ndo_protocol = "nsh";
/* print Base Header and Service Path Header */
if (len < NSH_BASE_HDR_LEN + NSH_SERVICE_PATH_HDR_LEN)
goto trunc;
return;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
}