#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.39 2004-05-01 10:06:55 hannes Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.40 2004-05-26 19:57:57 guy Exp $";
#endif
#ifdef HAVE_CONFIG_H
void
ipx_print(const u_char *p, u_int length)
{
- if (!eflag)
- printf("IPX ");
-
const struct ipxHdr *ipx = (const struct ipxHdr *)p;
+ if (!eflag)
+ printf("IPX ");
+
TCHECK(ipx->srcSkt);
(void)printf("%s.%04x > ",
ipxaddr_string(EXTRACT_32BITS(ipx->srcNet), ipx->srcNode),
#endif
break;
case IPX_SKT_EIGRP:
- eigrp_print(datap,length);
+ eigrp_print(datap, length);
break;
default:
(void)printf("ipx-#%x %d", dstSkt, length);