From: hannes Date: Tue, 22 Mar 2005 08:18:10 +0000 (+0000) Subject: print the optional (payload) CLNP header in ERPDUs X-Git-Tag: tcpdump-3.9.1~188 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/eeb5a51a28f1955979d87801e7910bde6e3d09a0 print the optional (payload) CLNP header in ERPDUs --- diff --git a/print-isoclns.c b/print-isoclns.c index fc2f7013..73ecfb46 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.130 2005-03-21 12:26:04 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.131 2005-03-22 08:18:10 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -802,15 +802,15 @@ static int clnp_print (const u_int8_t *pptr, u_int length) switch (clnp_pdu_type) { + case CLNP_PDU_ER: /* fall through */ case CLNP_PDU_ERP: if (*(pptr) == NLPID_CLNP) { - printf("\n\t-----request packet-----\n\t"); + printf("\n\t-----original packet-----\n\t"); /* FIXME recursion protection */ clnp_print(pptr, length-clnp_header->length_indicator); break; } - case CLNP_PDU_ER: case CLNP_PDU_DT: case CLNP_PDU_MD: case CLNP_PDU_ERQ: