summaryrefslogtreecommitdiff
path: root/print-arp.c
diff options
context:
space:
mode:
authorguy <guy>2003-01-25 23:27:09 +0000
committerguy <guy>2003-01-25 23:27:09 +0000
commit54db98a0e7e5ced4f4fd8565e241ab2bbbf91842 (patch)
tree6553b0d2963efbf5e226d1a6de6388cb4a8624ac /print-arp.c
parentbcd506b0a6b27f66b5f44f6dbc623cb6ccec8784 (diff)
downloadtcpdump-54db98a0e7e5ced4f4fd8565e241ab2bbbf91842.tar.gz
Don't use "sa_len" as a variable name - it causes problems on Irix,
where <sys/socket.h> #defines sa_len.
Diffstat (limited to 'print-arp.c')
-rw-r--r--print-arp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/print-arp.c b/print-arp.c
index dcfa13f1..cee79469 100644
--- a/print-arp.c
+++ b/print-arp.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-arp.c,v 1.60 2002-12-11 07:13:57 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-arp.c,v 1.61 2003-01-25 23:27:09 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -158,15 +158,15 @@ struct atmarp_pkthdr {
static u_char ezero[6];
static void
-atmarp_addr_print(const u_char *ha, u_int ha_len, const u_char *sa,
- u_int sa_len)
+atmarp_addr_print(const u_char *ha, u_int ha_len, const u_char *srca,
+ u_int srca_len)
{
if (ha_len == 0)
(void)printf("<No address>");
else {
(void)printf("%s", linkaddr_string(ha, ha_len));
- if (sa_len != 0)
- (void)printf(",%s", linkaddr_string(sa, sa_len));
+ if (srca_len != 0)
+ (void)printf(",%s", linkaddr_string(srca, srca_len));
}
}