#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.27 2002-12-19 09:39:11 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.28 2003-05-22 16:52:36 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
if (*(p+CHDLC_HDRLEN+1) == 0x81 ||
*(p+CHDLC_HDRLEN+1) == 0x82 ||
*(p+CHDLC_HDRLEN+1) == 0x83)
- isoclns_print(p+CHDLC_HDRLEN+1, length-1, length-1, NULL, NULL);
+ isoclns_print(p+CHDLC_HDRLEN+1, length-1, length-1);
else
- isoclns_print(p+CHDLC_HDRLEN, length, length, NULL, NULL);
+ isoclns_print(p+CHDLC_HDRLEN, length, length);
break;
default:
printf("unknown CHDLC protocol (0x%04x)", proto);
#ifndef lint
static const char rcsid[] =
- "@(#)$Header: /tcpdump/master/tcpdump/print-fr.c,v 1.11 2002-12-19 09:39:12 guy Exp $ (LBL)";
+ "@(#)$Header: /tcpdump/master/tcpdump/print-fr.c,v 1.12 2003-05-22 16:52:37 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
case NLPID_CLNP:
case NLPID_ESIS:
case NLPID_ISIS:
- isoclns_print(p, length, caplen, NULL, NULL);
+ isoclns_print(p, length, caplen);
break;
case NLPID_SNAP:
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-gre.c,v 1.21 2002-10-31 07:17:02 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-gre.c,v 1.22 2003-05-22 16:52:37 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
ip_print(bp, len);
break;
case GREPROTO_ISO:
- isoclns_print(bp, len, len, NULL, NULL);
+ isoclns_print(bp, len, len);
break;
default:
printf("gre-proto-0x%x", prot);
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.83 2003-05-10 16:33:07 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.84 2003-05-22 16:52:37 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
#define ISIS_CSNP_HEADER_SIZE (sizeof(struct isis_csnp_header))
#define ISIS_PSNP_HEADER_SIZE (sizeof(struct isis_psnp_header))
-void isoclns_print(const u_int8_t *p, u_int length, u_int caplen,
- const u_int8_t *esrc, const u_int8_t *edst)
+void isoclns_print(const u_int8_t *p, u_int length, u_int caplen)
{
u_int8_t pdu_type;
const struct isis_common_header *header;
header = (const struct isis_common_header *)p;
pdu_type = header->pdu_type & PDU_TYPE_MASK;
- printf("%sOSI ", caplen < 1 ? "|" : "");
- if (!eflag && esrc != NULL && edst != NULL)
- (void)printf("%s > %s, ",
- etheraddr_string(esrc),
- etheraddr_string(edst));
+ printf("%sOSI", caplen < 1 ? "|" : "");
if (caplen < 1) /* enough bytes on the wire ? */
return;
switch (*p) {
case NLPID_CLNS:
- (void)printf("CLNS, length: %u", length);
+ (void)printf(", CLNS, length %u", length);
break;
case NLPID_ESIS:
break;
case NLPID_NULLNS:
- (void)printf("ISO NULLNS, length: %u", length);
+ (void)printf(", ISO NULLNS, length: %u", length);
break;
default:
- (void)printf("Unknown NLPID 0x%02x, length: %u", p[0], length);
+ (void)printf(", Unknown NLPID 0x%02x, length: %u", p[0], length);
if (caplen > 1)
print_unknown_data(p,"\n\t",caplen);
break;
return;
}
- printf("ES-IS, %s, length: %u",
+ printf(", ES-IS, %s, length %u",
tok2str(esis_values,"unknown type: %u",eh->type & 0x1f),
length);
/* in non-verbose mode just lets print the basic PDU Type*/
if (vflag < 1) {
- printf("IS-IS, %s, length: %u",
+ printf(", IS-IS, %s, length %u",
tok2str(isis_pdu_values,"unknown PDU-Type %u",pdu_type),
length);
return(1);
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-llc.c,v 1.51 2002-11-13 16:08:39 hannes Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-llc.c,v 1.52 2003-05-22 16:52:38 hannes Exp $";
#endif
#ifdef HAVE_CONFIG_H
#endif
if (llc.ssap == LLCSAP_ISONS && llc.dsap == LLCSAP_ISONS
&& llc.llcui == LLC_UI) {
- isoclns_print(p + 3, length - 3, caplen - 3, esrc, edst);
+ isoclns_print(p + 3, length - 3, caplen - 3);
return (1);
}
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-mpls.c,v 1.7 2003-05-08 15:05:41 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-mpls.c,v 1.8 2003-05-22 16:52:38 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
case 0x83:
if (vflag>0) {
printf("\n\t");
- isoclns_print(p, length - (p - bp), length - (p - bp), NULL, NULL);
+ isoclns_print(p, length - (p - bp), length - (p - bp));
}
else printf(", OSI, length: %u",length);
break;
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.48 2003-02-05 02:28:45 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.49 2003-05-22 16:52:38 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
#endif
case BSD_AF_ISO:
- isoclns_print(p, length, caplen, NULL, NULL);
+ isoclns_print(p, length, caplen);
break;
case BSD_AF_APPLETALK:
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.87 2003-05-22 15:54:53 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.88 2003-05-22 16:52:38 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
ipx_print(p, length);
break;
case PPP_OSI:
- isoclns_print(p, length, length, NULL, NULL);
+ isoclns_print(p, length, length);
break;
case PPP_MPLS_UCAST:
case PPP_MPLS_MCAST: