*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.74 2002-12-18 08:53:21 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.75 2002-12-18 09:41:15 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
ether_print(p, length, caplen);
/*
- * If "-x" was specified, print stuff past the Ethernet header,
- * if there's anything to print.
+ * If "-x" was specified, print packet data in hex.
*/
- if (xflag && caplen > ETHER_HDRLEN)
- default_print(p + ETHER_HDRLEN, caplen - ETHER_HDRLEN);
+ if (xflag)
+ default_print_packet(p, caplen, ETHER_HDRLEN);
putchar('\n');