#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.22 2000-10-11 04:04:33 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.23 2001-09-09 02:04:18 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
if (caplen < 1) {
printf("[|iso-clns] ");
- if (!eflag)
+ if (!eflag && esrc != NULL && edst != NULL)
printf("%s > %s",
etheraddr_string(esrc),
etheraddr_string(edst));
case NLPID_CLNS:
printf("iso clns");
- if (!eflag)
+ if (!eflag && esrc != NULL && edst != NULL)
(void)printf(" %s > %s",
etheraddr_string(esrc),
etheraddr_string(edst));
case NLPID_ESIS:
printf("iso esis");
- if (!eflag)
+ if (!eflag && esrc != NULL && edst != NULL)
(void)printf(" %s > %s",
etheraddr_string(esrc),
etheraddr_string(edst));
case NLPID_ISIS:
printf("iso isis");
- if (!eflag) {
+ if (!eflag && esrc != NULL && edst != NULL) {
if(pdu_type != PTP_IIH)
(void)printf(" %s > %s",
etheraddr_string(esrc),
case NLPID_NULLNS:
printf("iso nullns");
- if (!eflag)
+ if (!eflag && esrc != NULL && edst != NULL)
(void)printf(" %s > %s",
etheraddr_string(esrc),
etheraddr_string(edst));
default:
printf("iso clns %02x", p[0]);
- if (!eflag)
+ if (!eflag && esrc != NULL && edst != NULL)
(void)printf(" %s > %s",
etheraddr_string(esrc),
etheraddr_string(edst));
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.63 2001-09-09 01:38:32 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.64 2001-09-09 02:04:19 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
static void
handle_ppp(u_int proto, const u_char *p, int length)
{
- int save_eflag;
-
switch (proto) {
case PPP_LCP:
case PPP_IPCP:
ipx_print(p, length);
break;
case PPP_OSI:
- save_eflag = eflag;
- eflag = 1; /* set the eflag indicating to isoclns_print()
- that this packet was _not_ captured over an
- ethernet circuit - hence no need to print
- mac-addresses - send bogus addresses for
- source & dest mac
-
- XXX - this needs to be handled better. */
- isoclns_print(p, length, length, "000000", "000000");
- eflag = save_eflag;
+ isoclns_print(p, length, length, NULL, NULL);
break;
default:
break;