Use the ndo->ndo_protocol field to print a " [|protocol]" message.
extern int nextproto6_cksum(netdissect_options *, const struct ip6_hdr *, const uint8_t *, u_int, u_int, u_int);
/* Utilities */
+extern void nd_print_trunc(netdissect_options *);
+
extern int mask2plen(uint32_t);
extern int mask62plen(const u_char *);
unsigned_relts_print(ndo, secs);
}
+/* Print the truncated string */
+void nd_print_trunc(netdissect_options *ndo)
+{
+ ND_PRINT(" [|%s]", ndo->ndo_protocol);
+}
+
/*
* this is a generic routine for printing unknown data;
* we pass on the linefeed plus indentation string to