- register u_int length = h->len;
- register u_int caplen = h->caplen;
- u_int hdr_len;
-
- ++infodelay;
- ts_print(&h->ts);
-
- /*
- * Some printers want to get back at the link level addresses,
- * and/or check that they're not walking off the end of the packet.
- * Rather than pass them all the way down, we set these globals.
- */
- packetp = p;
- snapend = p + caplen;
-
- hdr_len = pppoe_print(p, length);
-
- /*
- * If "-x" was specified, print stuff past the PPPoE and PPP headers,
- * if there's anything to print.
- */
- if (xflag && caplen > hdr_len)
- default_print(p + hdr_len, caplen - hdr_len);
-
- putchar('\n');
-
- --infodelay;
- if (infoprint)
- info(0);