diff options
author | hannes <hannes> | 2004-05-01 09:41:50 +0000 |
---|---|---|
committer | hannes <hannes> | 2004-05-01 09:41:50 +0000 |
commit | b0658cd23400141d93162ca142de7cc3bbcf5d21 (patch) | |
tree | 1577380ddee95cd1d9ac0d76f37197d4a0da9ff7 /print-atalk.c | |
parent | a43d36c6f21fbb802756430b9594602bfb6c0ef2 (diff) | |
download | tcpdump-b0658cd23400141d93162ca142de7cc3bbcf5d21.tar.gz |
add EIGRP support for Appletalk, display cosmetics to better indicate that we are dissecting Appletalk frames
Diffstat (limited to 'print-atalk.c')
-rw-r--r-- | print-atalk.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/print-atalk.c b/print-atalk.c index 68295931..6ea13611 100644 --- a/print-atalk.c +++ b/print-atalk.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-atalk.c,v 1.80 2003-11-16 09:36:13 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-atalk.c,v 1.81 2004-05-01 09:41:50 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -172,6 +172,9 @@ atalk_print(register const u_char *bp, u_int length) register const struct atDDP *dp; u_short snet; + if(!eflag) + printf("AT "); + if (length < ddpSize) { (void)printf(" [|ddp %d]", length); return; @@ -180,7 +183,7 @@ atalk_print(register const u_char *bp, u_int length) snet = EXTRACT_16BITS(&dp->srcNet); printf("%s.%s", ataddr_string(snet, dp->srcNode), ddpskt_string(dp->srcSkt)); - printf(" > %s.%s:", + printf(" > %s.%s: ", ataddr_string(EXTRACT_16BITS(&dp->dstNet), dp->dstNode), ddpskt_string(dp->dstSkt)); bp += ddpSize; @@ -241,6 +244,10 @@ ddp_print(register const u_char *bp, register u_int length, register int t, atp_print((const struct atATP *)bp, length); break; + case ddpEIGRP: + eigrp_print(bp, length); + break; + default: (void)printf(" at-%s %d", tok2str(type2str, NULL, t), length); break; |