+ return (hdr_len);
+}
+
+/*
+ * This is the top level routine of the printer. 'p' is the points
+ * to the TR header of the packet, 'tvp' is the timestamp,
+ * 'length' is the length of the packet off the wire, and 'caplen'
+ * is the number of bytes actually captured.
+ */
+void
+token_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
+{
+ u_int caplen = h->caplen;
+ u_int length = h->len;
+ u_int hdr_len;
+
+ ++infodelay;
+ ts_print(&h->ts);
+
+ hdr_len = token_print(p, length, caplen);
+
+ /*
+ * If "-x" was specified, print stuff past the Token Ring header,
+ * if there's anything to print.
+ */
+ if (xflag && caplen > hdr_len)
+ default_print(p + hdr_len, caplen - hdr_len);
+